01-30-2015 03:44 PM
Hi everyone,
Is there a way in Test Stand to convert a Byte Array into concatenated ASCII format?
Thanks!
02-02-2015 01:44 PM
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/
02-03-2015 08:47 AM - edited 02-03-2015 08:48 AM
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
02-03-2015 10:01 AM - edited 02-03-2015 10:01 AM
Thanks guys. That'll work for me