NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating of TestStand data from CVI Callback

How do I update the variables in TestStand from a callback function in LabWindows. In the attached file the use must press the pass or fail button. This action is received in the callback function in CVI where I call the TS_PropertySetValBoolean method in TestStand. The variables are updated and the notification is processed but only when the close button is pressed. If the update conditions are removed the Notification event is sent correctly (when either pass/fail is pressed).
0 Kudos
Message 1 of 3
(3,054 Views)
Hi Steven,

Not sure I understand your problem.

When you press the Pass button the Pass/Fail step passes and when you press the Fail button the Pass/Fail step fails. (therefore your FileGlobals is being updated correctly).
Don't know why you have the Set Notification after the Pass/Fail step as you have nothing running waiting on this action.
The MainSequence is then left waiting to complete and this does happen until you close the new thread by closing your GUI.

Regards

Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,054 Views)
Hi Ray

Thanks for the reply.

I noticed the “problem” by placing the TestStand variable in the watch window and indicated that the step must break if the variable changes. This only occurred after the panel was closed. When I ran the sequence again (the next day) there was no problem. I can’t explain what happened.

Regards,
Steven
0 Kudos
Message 3 of 3
(3,054 Views)