NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

String parameter from TestStand to LabVIEW

I have developed a serial communication write/read VI in LabVIEW. The function of the VI is determined by a string control. I want to perform a series of tests on my hardware. I think the best option in this case is to use a list of string commands sent to the hardware one after the other (or maybe just one string parameter, for starters!) .
 
I would like to know how to send a string value from a TestStand sequence/step/variable to the control/indicator of a LabVIEW VI?
 
I am using LabVIEW 8.5 and TestStand 4.
 
Cheers,
Ahmed.
 
0 Kudos
Message 1 of 6
(4,109 Views)
Hi Ahmed,
did you create a SubVI and define its input and output connectors,
and can you see the VI and the in-/outputs in your TestStand Step settings pane?
 
Regards,
gedi
Regards,
gedi
0 Kudos
Message 2 of 6
(4,101 Views)

Hi Jedi,

I think i managed somehow. Please have a look on the attachments and advise if you think it is a safe way of doing what I wanted at the beginning.

Thanks,
Ahmed.

Download All
0 Kudos
Message 3 of 6
(4,096 Views)

Hi Ahmed,

Have you ever took a look on the examples that are shipped with Testand?
If not, i would recommend C:\Programme\National Instruments\TestStand 4.0\Examples\Demo\LabVIEW\Auto\Auto.seq

Using SequneceContext is well, but if you are using just one Local in your vi,
i would use the variable direcly as parameter in LabView.
You can do it for output in the same way.

See step"Engine CM" for more details

Greetings

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 6
(4,080 Views)

Hi,

that's right juergen and about what I wanted to say...Smiley Wink

Ahmed, your sequence and VI are working, but it is better just to pass only the variable (so the data) that is needed, not a whole bunch of data which you don't need in the end - you may run into problems when looking for errors in large projects.

So set up your VI input for receiving a string value, create a SubVI (assign connectors), then load this as the required test step into TestStand. TS will recognize the valid data types of in-/outputs by itself, you don't need to do that. Just pass the desired data / variables to that in-/outputs and have fun ... Smiley Happy

 

Regards,
gedi
Message 5 of 6
(4,073 Views)

Thanks alot gedi and juergen. I have just tried it with your method. It is much simplerSmiley Happy

I still have alot to learn about the different settings though.. Thanks again.

Ahmed.

0 Kudos
Message 6 of 6
(4,058 Views)