NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get indicator from HandleUIMessage vi to Top Level.vi

I want to custumize Simple user interface for testand (Labview). 

 

I read all of this:

http://www.ni.com/product-documentation/52367/en/

 

At the : "Handling additional events" there shows how to create callback vi so that we can do some event handling code when UI message comes:

Untitled.png But If I put some boolean indicator here inside and connect it to connector pane to be used for example to indicate some event is done, i get broken Wire:

 

Untitle2d.png

Why this is happening and how to get this indicator to the top level vi?

 

 

0 Kudos
Message 1 of 5
(2,087 Views)

I have some presentations for this in our TestStand user group.  Hope these help:

 

Presentation: https://forums.ni.com/t5/Utahns-Using-TestStand-UUT/TestStand-User-Interfaces-pptx/gpm-p/3537676

 

Source code: https://forums.ni.com/t5/Utahns-Using-TestStand-UUT/UpdateChartUI-zip/gpm-p/3537677

 

The key is that you need to pass a reference to your FP object into the callback VI.  The User Parameter has to match so you don't have a broken callback wire.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 5
(2,076 Views)

The presentation is ok, but I have some additional questions since I cannot realize it...

 

I will use TS Simple UI. 

 

1. First I create Chart indicator on the top level VI front panel like this and create reference of this chart:

1.png

2. Second I drag and drop Chart reference created in step 1 into UI Type Def. inside of visible controls section (see red arrow):

2.png

 

3. Then I connect Waveform chart reference into initialization cluster:

3.png

4. When I create UserMessage Event Callback, I get broken wire, it says thath TestStand UI Data cluster contains an error:

4.png

 

What I'm doing wrong here?

0 Kudos
Message 3 of 5
(2,056 Views)

The presentation is ok, but I have some additional questions since I cannot realize it...

 

I will use TS Simple UI. 

 

1. First I create Chart indicator on the top level VI front panel like this and create reference of this chart:

1.png

2. Second I drag and drop Chart reference created in step 1 into UI Type Def. inside of visible controls section (see red arrow):

2.png

 

3. Then I connect Waveform chart reference into initialization cluster:

3.png

4. When I create UserMessage Event Callback, I get broken wire, it says thath TestStand UI Data cluster contains an error:

4.png

 

What I'm doing wrong here?

0 Kudos
Message 4 of 5
(2,056 Views)

It looks like you just need to reconnect the control to the type def.  In fact I would make it a strict type def if it were me.

 

One way to reconnect it is just replace it.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 5
(2,047 Views)