The error is generated when input string
does not contain the information expected by the Scan String. You can define the Scan String by right clicking the Scan From String
function, and selecting Edit Scan String
When a file includes a string that contains spaces, the Scan From File function interprets a space character as the end of the string. Thus, LabVIEW starts scanning for the next output in the middle of the string rather than at its end, which causes this error.
You can fix this by using multiple format specifiers to individually scan each part of the string that precedes or follows a space in your file, as the Scan From File function interprets spaces as the end of the string.
As the following block diagram illustrates, this workaround requires a different format string than one used with the Format Into File function to format data as text and save it to a file. You then can concatenate the strings to match the original string.
If you are trying to communicate with an instrument through VISA functions, ensure that the string being sent to the instrument is in the instrument's intended format, and that you are using the proper GPIB or serial cable.