NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read runtime value of TS variable in LabVIEW?

Solved!
Go to solution

Hi,

I ahve already posted a query related to TS and LV data sharing but this is very specific question and hence posting here.

I have an application wherein I want to read the runtime value of the TS variable in my LabVIEW interface.

I am able to read the default value of variable but not the run time value.

I guess for reading the run time value , i need a active "This Context" reference of TS sequence in LabVIEW.

How can i  access this reference in LabVIEW?

 

0 Kudos
Message 1 of 5
(3,908 Views)
Solution
Accepted by LV_user1

If the end goal is to get variable values during an execution in your user interface, you should look into doing this with a UI Message. You can post the UI Message from your sequence file or code module, and then handle the UI Message event in the OI to get the data of interest.

 

Hope this helps,

Trent

https://www.linkedin.com/in/trentweaver
Message 2 of 5
(3,897 Views)

Can you please post a small code helping me to understand how the UI messages work?

I am not sure how to use them to get the runtime variables values from TS to LV

0 Kudos
Message 3 of 5
(3,852 Views)

TestStand installs a shipping example on UI Messages in this directory:

%TestStandPublic%\Examples\Modifying User Interfaces\Handling UI Messages\LabVIEW

 

Take a look at the UserMessage Event Callback in the LabVIEW project, as well as the UI Message Example.seq in the parent directory.

 

I'd still recommend reading the link in my last post. The shipping example doesn't do exactly what you want, but it explains how to use UI messages.

 

-Trent

https://www.linkedin.com/in/trentweaver
Message 4 of 5
(3,827 Views)

Thanks for the help.

I got my project working now .

And yes I am using UI messages to transfer the data between LV and TS during runtime.

0 Kudos
Message 5 of 5
(3,794 Views)