NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I work with binary string?

How do I specify binary string as a parameter value? Do I put that in quotes?

Let's say 0x21,0x02,0x27,0x01. I tried "0x21", "\0x21", "\21" etc. Keep getting "invalid escape character" error.

What should be a corresponding control in my VI? Should it be a string type?

How do I define a binary array as a local TS parameter? It seems I can create an array of 64 bit signed or unsigned integers. I'd need 8 bit unsigned or can I use string?

Thanks

CT

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

Hi,

 

You should also know that there is a known issue with binary strings and LabVIEW adapter settings in TestStand 2010 and 2010 SP1. You can take a look at the list of known issues here.

Rohama K.
0 Kudos
Message 2 of 3
(4,739 Views)

I think the easiest thing for you to do is write a VI which returns the binary string as a parameter, check the checkbox in teststand when specifying that vi to say the parameter is a binary string, and run the sequence to get the string into teststand. Then you can see the format of the string and have a copy of it already in teststand that you can copy and paste if you so desire.

 

-Doug

0 Kudos
Message 3 of 3
(4,727 Views)