NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How could OI pass data to TestStand Engine

I am modifying the TestStand OI (CVI version) to include the serial number entry. I use UIMessage to notify the OI to prompt user and receive user respond, while I could not pass the serial number back to sequence.

Please help.
0 Kudos
Message 1 of 3
(3,134 Views)
***DUPLICATE RESPONSE***

Hello,

For your specific purposes, the best approach would be to modify the PreUUT callback sequence inside of the model, that has the code to display the serial number dialog. You could add your custom code inside of this callback to display your custom dialog, and then write the value back to Parameters.UUT.SerialNumber. Once you have populated this variable, you can then call PostUIMessageEx to post the value of the serial number dialog to the OI. Now you have the value inside of the model, as well as inside of the OI. Let me know if this helps.


Ryan R.
NI
0 Kudos
Message 2 of 3
(3,134 Views)
Thanks for your reply first.

Actually My design is to input the serial number in the O.I, and pass to teststand engine. I knew PostUIMessage could be used to pass data from teststand to O.I., while i don't know the reverse way.
could you tell me about that?
0 Kudos
Message 3 of 3
(3,134 Views)