NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Byte Array Conversion into ASCII format

Hi everyone,

 

Is there a way in Test Stand to convert a Byte Array into concatenated ASCII format?

 

Thanks!

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

Hi testdesign,

 

Do you want to convert your array into a string? If so, using the Str function would provide you with the functionality you're looking for.

Here is the help document on the function: http://zone.ni.com/reference/en-XX/help/370052N-01/tsfundamentals/infotopics/str/

Message 2 of 4
(5,154 Views)

If you have an array of numbers in teststand that correspond to ascii values you can convert that to the corresponding string by writing a loop which does something like the following:

 

 

Locals.myString += Chr(Locals.myNumberArray[Locals.myLoopIndex])

 

Chr() converts ascii values to characters in TestStand expressions.

 

Hope this helps,

-Doug

Message 3 of 4
(5,138 Views)

Thanks guys.  That'll work for me Smiley Wink

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