NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving Notification from LabVIEW

We have some LabVIEW tests that we kickoff from TestStand that are somewhat asynchronous in nature.  They require that TestStand 'poll' LabVIEW or LV notifies TestStand (either one, I guess) when a certain event has occurred.  Is there a good way to accomplish this?
0 Kudos
Message 1 of 4
(3,165 Views)
 

Hi Mr. Bean,

There is a Developer Zone article on Using Default and Custom UIMessages  that should be what you are looking for. 

 

Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 2 of 4
(3,142 Views)

Hi Mr. Bean,

You can make your asynchronous LabVIEW VI write to a shared variable when the event occurs.  Then, in your sequence, you can call another VI that checks the status of that shared variable.  In this way, TestStand can "poll" LabVIEW.

Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 3 of 4
(3,119 Views)

One time I was able to use both the UIMessages and teststands SyncManager so TestStand didn't have to Poll for a result from LV.  Check out this post where I answered my own question.

Basicly what I did was use a UIMessage and event to tell LabVEIW that TestStand was waiting for a serial number.  The UIMessage passed name of the wait notification into LabVIEW.  TestStand then waited for a notification.  Then when LabVIEW had the serial number from the operator, it used the sync manager to set the notification plus some data in the notification.

I used this in a custion Operator Interface where the serial number entry was not a popup but part of the interface.

0 Kudos
Message 4 of 4
(3,089 Views)