05-17-2007 07:35 PM
05-18-2007 09:29 AM
You can set the value of the local string to be:
"\xAA\xBB\xCC\xDD\xEE\xFF\x00\x01\x02\x03\x04\x05\x06"
Below I have pasted the Description for string constants supplied by the expression browser...
Enclose string constants in quotes.
You can use the following escape sequences in string constants:
\\ Backslash
\n Line Feed
\r Carriage Return
\xNN Hexadecimal character code
\NN LabVIEW style hexadecimal character code
\" Quote
\t Tab
05-18-2007 10:09 AM
06-06-2007 08:32 AM
06-06-2007 09:32 AM
Chroma,
I gave this a try again and noticed that if you define the string as a local (as I suggested) it doesn't account for the escape characters as I thought.
It only accepts escape characters in the statement step or other expressions.
If you create a statement step and set the statement to be:
Locals.string = "\xAA\xBB\xCC\xDD\xEE\xFF\x00\x01\x02\x03\x04\x05\x06"
The string will equal the hex values. So, the solution I origionaly proposed is not exactly correct and adding an extra step to format it is not as clean as hoped.
Another option I just came up with is to convert an array of numbers to a string. What I did was to set a statement step that converts one character at a time and then loop it with the loop options tab. I'll attach it...
06-06-2007 11:12 AM
06-06-2007 12:41 PM
Chroma,
I did a search and it looks like Teststand doesn't like NULL characters in a string. See this article...
http://digital.ni.com/public.nsf/allkb/0B1D4EFE0D2B529D86256BC100737142