NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass Hex data from teststand to LabVIEW

Solved!
Go to solution

Hi,

Is it possible to pass Hex data from Teststand to a LabView VI.

 

In the "Type" column of the Module tab on the step, i only have "ASCII String" or "Binary String"options.

 

Do i have to modify my VI to take hex data, or can I modify the Type in TestStand so that i can enter Hex data

when I enter the Hex data directly in the VI it works fine.

 

Thanks 

0 Kudos
Message 1 of 3
(4,108 Views)
Your data in TestStand is just a collection of ASCII charters that you understand as a hex number. You need to some place convert the collection of hex digits to the actual number they represent. Either on the TestStand side or the LabVIEW side. An A needs to be converted to 10 and a F needs to be converted to 15. I would pass the text string into LabVIEW through the Sting control and convert it to the number needed on the LabVIEW side. When you enter the Hex data directly in the VI I assume you mean you are typing the digits from the key board. That is not the same as passing text string of digits. Omar
Omar
Message 2 of 3
(4,101 Views)
Solution
Accepted by topic author LG_LabVIEW

Sound advice from Omar! If you do decide to follow this method, here is a useful KB...

 

How to Convert Between Hexadecimal and ASCII in LabVIEW

http://digital.ni.com/public.nsf/allkb/894CF5FE064971BF8625758400014993?OpenDocument

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/
0 Kudos
Message 3 of 3
(4,081 Views)