11-11-2016 04:01 PM
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?
Solved! Go to Solution.
11-11-2016
04:42 PM
- last edited on
12-31-2024
01:36 PM
by
Content Cleaner
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
11-13-2016 01:28 PM
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
11-14-2016 03:58 PM
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
11-18-2016 12:26 PM
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.