LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan from string

Solved!
Go to solution

Hi myadav,

 

the error message is quite clear!

 

What we don't know is the content of the string to be parsed and the format used to parse it. Mind to attach relevant VI and data?

 

ScanFromString has an error output. You can use it to react on parsing errors in your VI - but apparently you didn't do this so far…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 17
(1,533 Views)

Hi Gerdw,

Please find the subvi and input value when i got no error and when i got error.

0 Kudos
Message 12 of 17
(1,516 Views)

Hi myadav,

 

so you wonder, why you get an error when trying to parse "T*" with a format string of "%f%s"?

 

Come on: use the error output of ScanFromString to catch these errors on your own!

(Or catch the upstream error where this "T*" is generated…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 17
(1,510 Views)

Hi GerdW,

 

What is the formate of  "T*"?

From  error output I not got any useful information.

0 Kudos
Message 14 of 17
(1,493 Views)

Hi myadav,

 

What is the formate of  "T*"?

It's your device you're reading data from, so you should know why you receive "T*" from it!

 

From  error output I not got any useful information.

Well, it's very useful to know that ScanFromString couldn't parse the string. You can handle that error programmatically…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 17
(1,476 Views)

Hi GerdW,

 

"T*" this indicates that target volume is achived. 

So i got erroer after completion of target  volume, But my aim is after completion of target we have to move in another condition. But due to pop  error our program stuck sfter completion of target.

 

Please suggest me how I remove this error?

 

Thanks. 

0 Kudos
Message 16 of 17
(1,427 Views)
Again: use the error output to detect any problems with string parsing - this is called error handling...
Again: check your read string for T* when you want to react on that message!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 17
(1,420 Views)