10-19-2023 05:05 AM
There is a consistent error occurrence (85) for the Parse Data Frame.VI . It appears that the scan from string function cannot convert the data that is incoming from the Data Frame Input. The Frame input data is {B\s+013.22\s+041.03\s+0.0001\
Solved! Go to Solution.
11-06-2023 03:03 AM - edited 11-06-2023 03:04 AM
Hi John,
@johnsnowysnow wrote:
It appears that the scan from string function cannot convert the data that is incoming from the Data Frame Input. The Frame input data is {B\s+013.22\s+041.03\s+0.0001\
s+0.0001\s+0.1000\s+0000.002\ s\s\s\s\sN2\r}. How can i solve this?
For me ScanFromString is perfectly fine with your input data:
11-06-2023 03:26 AM - edited 11-06-2023 03:26 AM
@GerdW wrote:For me ScanFromString is perfectly fine with your input data:
But while you use a German locale setting you explicitly specify in the format string to use decimal points. The driver in question seems to have forgotten to add that to the format strings!
If the OP uses a locale that specifies a decimal comma as standard decimal indicator, the driver has to fail in parsing the responses correctly.
Quick fix would be to go into the LabVIEW configuration settings and disable under General the settings "Use localized decimal point" and restart LabVIEW. This will however mess with every single string formatting that does not explicitly select a specific decimal point, so if you then write something to a text file and try to load it into Excel the number will be misinterpreted as Excel uses the localized decimal point.
Proper fix is to prepend all format strings in the driver with a %.; for any Scan From String and Format into String that contains at least one floating point parameter.
11-06-2023 03:40 AM
We changed the scans from %f to %f %s. Now it works fine, thank you for your input.
11-06-2023 04:52 AM
Hi John,
@johnsnowysnow wrote:
We changed the scans from %f to %f %s. Now it works fine,
This sounds like a workaround,but not like a solution… 😄
08-13-2024 01:24 PM
Hi i am also working with the same Alicat MFC. Just started to build. Can you share your both block diagram and front panel vi, if possible. It would be very help full. Thanks