01-24-2012 01:00 PM
Hi All
My scan from string suddenly stopped working and started giving me this error. The string that is read ends up being something like 2.86E-4 or the like. When I run in highlighted mode everything works fine and it interprets the number fine but when it isn't in highlighted mode it returns an error. Not sure why since it's a simple number to convert. Any help? I've attached the error and the highlighted mode version. Thanks!
Solved! Go to Solution.
01-24-2012 01:06 PM
First guess: timing issue. Especially since you said it works in highlight mode. Specifically, when you are not running in highlight mode you're probably not waiting long enough before trying to read, and the loop immediately detects no bytes on the serial port. That delay function in there will not guarantee a 1 second delay between write and read . There is no data dependency - a rookie mistake. Either use a sequence frame or use the Time Delay VI to have error clusters to wire through to establish data dependency.
01-24-2012 01:09 PM
Spaghetti ![]()
01-24-2012 01:19 PM
Yep, that did it. I wired in a Time Delay.