08-22-2011 03:59 AM
Hello all
Newbie question coming up.
I am implementing a state machine to control the initial part of a test sequence. I need to scan a barcode and then look up the number from a spreadsheet to get the associated parts list. I then need to scan several of the assembly parts barcodes and check them off the list (in any order).
Currently I have this mostly working, but I have got stuck
Solved! Go to Solution.
08-22-2011 04:21 AM
Sorry, not sure what happened to the rest of the post.
This is mostly working, but when the scanned input string contains text, I cannot get this text to be cleared when the state ("Get top level part number") is next entered. I have a feeling it is to do with the timings of the loops, but I cannot see why my method as shown is not working.
Any help would be much appreciated.
Ray
08-22-2011 06:41 AM
What's exactly the problem? I don't see any error in your code and in fact the Scanned input control is properly cleared in my quick test.
08-22-2011 07:02 AM
Run the program in Highlight execution and Retain Values active. It should work but there might be something we're missing.
/Y
08-22-2011 07:44 AM
Thanks for the responses. I now realise that the problem was limited to when I clicked the return key - this entered the data, but the scanned input string did not clear. However, if I clicked the OK button, this did clear the box. I then set the OK button Key Navigation Toggle "Set focus on toggle" check box and this has fixed the issue.
I have now turned this into a sub VI and it is all working OK.
Thanks for the advice,
Ray