cancel
Showing results for 
Search instead for 
Did you mean: 

String Error(85) with ALICAT MASS FLOW Controllers

SOLVED
johnsnowysnow
Member
Solved!

String Error(85) with ALICAT MASS FLOW Controllers

Message contains an attachment

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\s+0.0001\s+0.1000\s+0000.002\s\s\s\s\sN2\r}. How can i solve this? I have attached the VI below

5 REPLIES 5
GerdW
Knight of NI

Re: String Error(85) with ALICAT MASS FLOW Controllers

Message contains an image Message contains an attachment

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:

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
rolfk
Knight of NI
Solution

Re: String Error(85) with ALICAT MASS FLOW Controllers


@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.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Highlighted
johnsnowysnow
Member

Re: String Error(85) with ALICAT MASS FLOW Controllers

We changed the scans from  %f  to %f %s. Now it works fine, thank you for your input.

GerdW
Knight of NI

Re: String Error(85) with ALICAT MASS FLOW Controllers

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019

Re: String Error(85) with ALICAT MASS FLOW Controllers

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