06-18-2015
08:38 AM
- last edited on
12-30-2024
01:46 PM
by
Content Cleaner
Hi!
I´m using this OI in my projectsince it has (almost) all we need:
However, I´m having a hard time understanding how to add stuff on the interface. The only thing i need is four LED:s for four specific test step results. I was thinking about using Fileglobals and the get property vi but how do I get the seqcontext for that inside the top-level vi of the OI? If anyone could supply a specific example for that I´d be very grateful!
Thanks!
Solved! Go to Solution.
06-22-2015 11:35 AM
Do you want the 4 LEDs on the VI in the subpanel or on the actual UI frontpanel?
It will change how that is done.
06-22-2015 12:06 PM
06-22-2015
01:38 PM
- last edited on
12-30-2024
01:47 PM
by
Content Cleaner
You need to use UI Messages. Here is document describing them. Let me know if you have any questions as it can be somewhat tricky at first.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x3tWCAQ&l=en-US
Regards,
06-30-2015 01:16 AM
Thank you for your responses! I´ve followed the tutorial and the callback vi seems to be getting the value from teststand. I sent a simple 1 and 0. Whats the best way to get that value onto the ui frontpanel? Is a global variable the way to go or is there a more proper solution?
/Magnus
06-30-2015
08:46 AM
- last edited on
12-30-2024
01:48 PM
by
Content Cleaner
I would use a Functional Global Variable (FGV) to store a reference to the control on the frontpanel. Then in the callback VI you can call the FGV and set the control to the desired value.
Or you can explicitly pass the reference to the front panel control around and as a parameter to the callback.
This example kind of shows it but it's a little hard to follow: https://www.ni.com/docs/en-US/bundle/teststand/page/handling-ui-messages-labview.html
Hope this helps,