NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make use of the results of one step at the other step in the same sequence

Hello
I am new to the Teststand.
I am using labview8.0 with teststand 3.1
 
Plz get me solution for the below
 
I am configuring the serial port resources like resource name, baud rate etc..,I made the initialization using setup task.I made serial port write and serial port read as independant vi's in labview and called them from teststand as steps.Now i need the same resource name appear in some other steps in the sequence .how can i get them using teststand commands instead of specfying them at each step.
 
Also how to pass values or results obtained from one step to some other step in the same sequence using teststand commands.
 
Also help me in parameter passing
 
Regards
 Kiran
 
0 Kudos
Message 1 of 8
(3,958 Views)
Hi Kiran,

You can use a variable defined in the SequenceContext.Locals list to specify the resource name. Just define the variable in the locals tab by right clicking in the main pane and selecting Insert Local -> String. Then you can reference this variable via SequenceContext.Locals.VariableName in the setup of your step.

Furthermore, you can save the output of your previous step to another local variable in a similar fashion to access data between steps.

Regards,
Message 2 of 8
(3,929 Views)

hi

Here the data type of visa resource name  is LabviewIOControl

This container consists of Device name(string) and session number(U32)

Can u suggest me ,how to insert the loacls variable now and then pass the result (visa resource name out to the next step.

If possible plz append some examples and material regarding parameter passing and using local variables

Thanks

Kiran

0 Kudos
Message 3 of 8
(3,923 Views)
Hi Kiran,

There is a great knowledge base on our website that discusses this exact issue:
How do I make I/O parameters or locals for passing I/O types between LabVIEW VIs in TestStand?

Regards,
0 Kudos
Message 4 of 8
(3,894 Views)

Hi James

I followed the procedure given in that link to create the local Labview IOControl.It's fine.

I have given the resourcename through set property value teststand utility available in labview in the initialisation section.

But..........

Now when i tried to collect the local through Get property value ,i can't able to do that.

I am not possible to select the LabviewIOControl in the select type available with get property value node.And when i select string in selct type it showing data type mismatch error.

Plz suggest how to collect this local value in the steps.

Kiran

0 Kudos
Message 5 of 8
(3,882 Views)
Hi Kiran,

I wrote some example code that demonstrates what you are trying to do. The sequence file relies on a local variable named visa_resource of type LabVIEWIOControl.

Regards,
0 Kudos
Message 6 of 8
(3,851 Views)
Hi
I am using labview8.0 with teststand 3.1
So, It is showing error when i tried to open the examples attached by you.(i.e, vi's are incompatible).
Plz suggest me some other examples compatible with the above versions.
0 Kudos
Message 7 of 8
(3,828 Views)
Hi Kiran,

Sorry about that. Here are the files re-saved LV8.0 and TS3.1.

Regards,
0 Kudos
Message 8 of 8
(3,814 Views)