NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie question, how to define an in/out parameter for a step type using the labview adapter?

I want to create a steptype from a vi, the vi should get a string (SourceCode) as input parameter containing all settings for the controls on the frontpanel.

The vi parses this string and puts all controls into a state conform the settings of the string.

After editing the controls on the frontpanel in edit mode, the vi creates the string (SourceCode) again and this string has to be returned to TestStand.

SourceCode should be an in/out parameter for the step type.

 

Basically I want to wire in Labview the same variable to an input of the vi connector and also to an output of the connector.

This because when I arrive in the vi I have the SourceCode and after editing the same SourceCode (updated of course) should be given back to TestStand.

Such a variable type is an input/output parameter for TestStand, or I want to give a variable by reference from TestStand to LabView and vice versa.

 

Does anyone know how to do this or have some ideas where to start? 

 

Best regards

0 Kudos
Message 1 of 3
(3,482 Views)

Teststand documentation related to "Using Labview and LABwindows/CVI with teststand" will help you.

 

Link : http://digital.ni.com/manuals.nsf/websearch/C1D0581AA1BF1B148625757C0073F493

 

0 Kudos
Message 2 of 3
(3,477 Views)

With LabVIEW you don't have in/out parameters instead you generally have an input on the left side of the VI connector pane (and the left side of your code diagram), and a corresponding output on the right hand side of the connector pane (and the right side of your code diagram). This follows the data flow paradigm that LabVIEW programming uses where your execution is a flow of data from one location to another, in this case, you get your input from the left, do some processing on it and wire it up to the output on the right. The execution of the code in your VI thus flows from the input to the output. In TestStand you can then pass the same variable for both the input and the output.

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 3
(3,438 Views)