Hello All:
I have an issue with a bar code scanner, specifically Unitech AS-10U.
Now my problem is this, I'm trying to create a sub.vi that takes the input from a bar code scanner as if its input from the keyboard, verify that the information is the right length and move on to the next step in the sequence. When I use "Bar Code Scanner.vi" (see attached vi) as a standalone vi it works fine no problem, however when I embed this sub.vi into my main.vi it stops working (even if I paste the entire contents of the sub.vi into the main.vi). I have found that using the "Highlight Execution" button in the block diagram and probing the input string magically makes it show up, however without doing this the input string remains blank (this works in all cases).
So I tried hitting the forums and I came accross "Prompt User for Input" and it worked beautifully, only down side was that now I have to click the okay button to get it to accept the Serial Number I'm trying to input, so I modified it to measure the length of the string and use that as the acceptence criteria for terminating the while loop (see attached vi). Then bam same problem, now it wont work unless I probe it.
Can someone help me and tell me what I'm doing wrong, I've tried looking on the forums and havent been able to find someone who had the same issue I did.
Thanks for taking the time to read my post, I appreciate it.