NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean indicator showing fileglobals

Solved!
Go to solution

Hi!

I´m using this OI in my projectsince it has (almost) all we need:

http://www.ni.com/example/31278/en/

 

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!

0 Kudos
Message 1 of 6
(4,368 Views)

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.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 6
(4,322 Views)
It will be four, or more, testcaseresults on the actual ui front panel showing some of the main tests as the test goes on. The suboanel will show the tests labviewfrontpanel. The last bit seems to work fine, it's just me who can't figure out where t get the sequence context for, for instance, the get property vi when using it on the ui:s block diagram.

/Magnus
0 Kudos
Message 3 of 6
(4,316 Views)
Solution
Accepted by topic author MagnusAF

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.

 

http://www.ni.com/tutorial/4532/en/

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 6
(4,311 Views)

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

0 Kudos
Message 5 of 6
(4,262 Views)

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: http://zone.ni.com/reference/en-XX/help/370052N-01/tsexamples/infotopics/handleuimessage_labview/

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 6 of 6
(4,241 Views)