NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

break all treads in batch model

Hi,

 

I am using labwindows/cvi 8.5 and TestStand 4.2.1 for my developement.

 

I am using the customized version of the simple operator interface in batch execution, where in I am looking for a feature to break all the threads(Not the thread) upon clicking the Break button. Is there any sample code for doing this kind of action.

 

Thanks in advance.

 

Regards,

Ramjee

0 Kudos
Message 1 of 8
(3,446 Views)

Engine.BreakAll

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 8
(3,439 Views)

Hi,

 

Thanks a lot for your response.

 

This really worked for me. Now i have one more question. Now if i want to resume all the threads what is the API need to be called. I tried for Engine.ResumeAll. But i failed to find the API. please suggest me.

 

Regards,

Ramjee V

0 Kudos
Message 3 of 8
(3,432 Views)

Executions.ResumeAll

 

To find this, press F1 in TestStand, go to the Search tab, type 'Resume' and press enter.

CTA, CLA, MTFBWY
0 Kudos
Message 4 of 8
(3,430 Views)

Hi,

 

I tried using this. But some reason i am getting an error "Unknown variable or property name 'Executions'.
Error accessing item 'Executions'."

 

Please help me.

 

Regards,

Ramjee V

0 Kudos
Message 5 of 8
(3,427 Views)

If you look at the result returned in the Help window after searching for 'Resume' you'll see that 'Executions' is underlined. Click on it and you will see how to gain access to the Execusions object using the ApplicationMgr.

CTA, CLA, MTFBWY
0 Kudos
Message 6 of 8
(3,425 Views)

Hi,

 

I am trying to resume all the threads from CVI simple operator interface using "tsErrChk(TSUISUPP_CommandConnectionSetKind(gMainWindow.applicationMgr, &errorInfo, TSUISUPPConst_CommandKind_ResumeAll))". But some reason i am getting an error saying that "No such interface supported."

 

What could be the problem for this?

 

please help me.

0 Kudos
Message 7 of 8
(3,373 Views)

It's been a while since I've done any OI customization but I believe you need to call the ConnectCommand to bind a particular command to a button on your UI. Search for ConnectCommand in the Help.

CTA, CLA, MTFBWY
0 Kudos
Message 8 of 8
(3,370 Views)