NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

[TS->LV] How to read local variable after execution ?

Hello,

 

my sequence have a local variable named 'Txt_uut_out'

that holds a scanned serial number read from within the

sequence flow. However, I'd like to read that given local

variable from Labview.

 

I have access the the folowwing contexts :

 

Engine

Sequence

Sequence context

Sequence model

Execution

 

I tried the two (three) following methods, but none of them

works like expected :

 

Clipboard_20150827_115648.png

 

Clipboard_20150827_115555.png

 

Any idea ?

 

David Koch

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

Hi David,

 

It is hard to try anything without the code. I would suggest looking at TestStand's built-in examples. They are typically installed in a location such as: "C:\Users\Public\Documents\National Instruments\TestStand 2014\Examples" If you look into the folder "StructPassing\LabVIEW" and open the "Cluster Passing to LV VI.seq" file, this will provide a good example of how to pass data between LabVIEW code module steps. In each action step, you can see that TestStand is calling a LabVIEW code module and passing it local variables as inputs and storing the outputs of the VI call in other local variables. The values stored in these local variables are saved between steps.

 

You can also find usefull information here :

Using Functional Global Variables to share data between the TestStand Operator Interface and Code mo...

Pass Container in a Queue from TestStand to LabVIEW

How to pass sync steps from TestStand to LabVIEW?

 

Thanks,

M-Junior

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

Thanks for the input.

 

Somewhere within the sequence, I fill a local variable

named 'Txt_uut_out' and I just want to read it at the end

of the sequence execution.

 

Obviously I might have missed the right Sequence

context and I'm wondering which one I have to read,

the one provided at the beginning of the execution

or the one you could get from Thread[0] and call the

GetSequenceContext method.

 

I provided the code as screenshots.

 

David Koch

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