NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I display step info in User Interface with Tracing Disabled?

I'm trying to modify the CVI Operator Interface application to update the execute panel with some step information during the execution of the program. i.e. I want to display the measurement, high & low limits during the run WHEN TRACING IS DISABLED. (Doing this, when tracing is enabled is easy, all you do is access the step record that's been constructed (I can cope with that!))

I've successfully implemented a User defined execution event to signal the User Interface application when the current step is a result (using TS_UIMsg_UserMessageBase etc. I'm posting a UI Message in the Process Model under the ProcessModelPostStep so that I will only display if its a result step.) I've added a user defined
entry in the execute.c module execution event switch statement which will call a function in the exedisp.c module to update the display. However, I don't have a context to the step that I can use. (I can't use e.g. the exeRec record since this is only completed with the context if tracing is enabled.) I've got a handle to the correct panel to write the information to, but how do I get the context to the current step when tracing is disabled?

Regards,

Brian
0 Kudos
Message 1 of 6
(4,007 Views)
Try using the PostUIMessageEx - it allows you to add in an ActiveX reference (you can use the reference to the step that you have inside ProcessModelPostStep) then in the same way as you get the numeric or string data from the UI Message in CVI, you can get the ActiveX reference too. (Don't forget to discard it afterwards)

Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 6
(4,007 Views)
Wow! That was quick! Thank You! (Unfortunately I've been looking at this using Teststand 1.0.2. The function only seems available in TestStand 2.0 (Never mind, however, the target project is in TS 2.0!)
0 Kudos
Message 3 of 6
(4,006 Views)
Hi,
no problem - btw, if you wanted to acheive this in TS 1.x, you could always write to a local variable with the ActiveX reference for the step concerned, and then use the msg reference that you have in the OI within the UI Message handler, to dig through to the Execution ->Sequence File->Sequence->Locals, or Execution->Thread->SequenceContext (and you can get almost anywhere from that).

Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 4 of 6
(4,006 Views)
Are these calls (i.e., PostUIMessageEx and TS_UIMsg_UserMessageBase) made from TestStand or CVI?  I'm trying to do something similar with LabVIEW (I'm also working with the LabVIEW version of the TestStand3.5 OI) and I'm not sure how these commands translate.
0 Kudos
Message 5 of 6
(3,796 Views)

Mr. Bean,

Refer to this post: http://forums.ni.com/ni/board/message?board.id=330&message.id=13995&jump=true

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 6 of 6
(3,780 Views)