NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ASCII String to HEX String

Hello

I habe a vi (testVI.vi) that gives me an Result in an ASCII String like "det5ht".
In TestStand I have made an String Value Test that gets the Result from that vi.

 

I have set  the String Value Test Module Type to ASCII String.
In TestStand I have an Measurement "det5ht" -> this is correct !

 

What I now want to see in TestStand is not the ASCII Sting "det5ht"

I'd like to see it as an HEX String like "64\65\74\35\68\74 ".

 

I have tryed to switch the String Value Test Module Type to Binary String.
In TestStand I have an Measurement "E@=3@J60100hUL;93]a=0X1008:2@?"
Waht is this String ? "E@=3@J60100hUL;93]a=0X1008:2@?" Ihave no clue ?

 

I dont want to convert the ASCII Sting to a HEX String in the VI.
I want to convert the ASCII String in TestStand.
Because this VI is used in other Tests.

 

Is there a way to convert that ACII String to HEX String in TestStand

(I habe made a simple Test.seq File)

 

Would be great getting Response
Greets Martin

0 Kudos
Message 1 of 3
(4,141 Views)

You could write a loop which does this using an expression like:

 

Locals.stringResult += "\\" + Str(Asc(Mid(Locals.MyOriginalString, Locals.loopIndex, 1)))

 

Or write a utility labview VI which does something similar and call it from teststand.

 

-Doug

0 Kudos
Message 2 of 3
(4,130 Views)

How would you do this in labview because I don't know that language very well

0 Kudos
Message 3 of 3
(3,923 Views)