NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set global status for multiple sockets

I'm running multiple sockets in batch mode and would like to be able to display progress to the operator, however, the progress only shows up in the local thread progress bar. Is there a global progress bar? How can I set it?

 

Also, is there a way to make the current thread the active one whenever execution switches from one thread to another?

0 Kudos
Message 1 of 5
(3,252 Views)

Hi Steve,

 

I'm not sure what progress bar you are using. Did you make a custom progress bar?

 

About switching the execution view from one socket to another, you can basically send a UI Message whenever you want to switch the Execution View, either from the client sequence file or from the process model. Then you can register for and catch this UI Message in your Operator Interface, and send the thread info to the ExecutionViewMgr. 

 

Hope this helps! 

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 5
(3,226 Views)

In my search I found this thread:

 

http://forums.ni.com/ni/board/message?board.id=330&message.id=21287

 

Essentially you mentioned the same thing, however, I want to be able to do this without having to modify the Operator Interface. I tried to find an activex class for the ExecutionViewMgr, but was not able to. Do you know if this functionallity is somewhere else in the activex? Thanks.

0 Kudos
Message 3 of 5
(3,221 Views)

Steve,

 

I think the UIMsg_OpenWindows code will work for you:

UIMsg_OpenWindows–(Value: 22) Post this message to the user interface to instruct it to open a file in a window. If the file or execution is already open, the application brings the file to the front. A file can be specified by a pathname in stringDataParam or by a PropertyObjectFile object in activeXDataParam. An execution can be specified by an Execution object in activeXDataParam. A list of files and/or executions can be specified by an array of references to PropertyObjectFile and Execution objects in activeXDataParam. For sequence files, stringDataParam may also contain a '|' separator followed by the name of a sequence to display. If you specify the sequence file in activeXDataParam, you can specify just the sequence name in stringDataParam.

UIMsg_GotoLocation might also work.  See here for explanation and more codes: http://zone.ni.com/reference/en-XX/help/370052G-01/tsapiref/reftopics/uimessagecodes/

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 4 of 5
(3,207 Views)
This appears to be working. I'll keep you posted.
0 Kudos
Message 5 of 5
(3,201 Views)