NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan barcode with teststand

Hi , 

 

I am wanting to scan a barcode from a scanner and I want that stored in a local. I used a message dialog box and tried passing the response string to my local but seems like the scanned value does not come up in that local but as a separate number by itself. How do I go about this?

 

Please help

0 Kudos
Message 1 of 5
(4,118 Views)

Hi,

 

could you post an example with the Messagebox and the local variable?

 

Regards

 

Juergen 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 5
(4,111 Views)

Are you using the Message Popup Options to Enable Response Text Box and then using the Message Popup step's result response to save the post expression to your local variable?  Please post your sequence.

 

Locals.YourBarcodeString = RunState.Sequence.Main["Message Popup Step Name"].Result.Response

0 Kudos
Message 3 of 5
(4,095 Views)

Refer this example:

 

\Examples\MessagePopupsGetUsersResponse.seq

0 Kudos
Message 4 of 5
(4,078 Views)

I think what you can do is to pass the value into a global variable so that any other sequence can read the value. If you pass the value to a local variable, it is stored only in that sequence and other sequences cannot have access to it. I had similar issue but I was able to resolve it. Let me know if you need further help.

 

Stan.

0 Kudos
Message 5 of 5
(3,932 Views)