06-21-2011 10:06 AM
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
06-21-2011 11:41 AM
Engine.BreakAll
06-21-2011 02:20 PM
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
06-21-2011 02:22 PM
Executions.ResumeAll
To find this, press F1 in TestStand, go to the Search tab, type 'Resume' and press enter.
06-21-2011 02:43 PM
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
06-21-2011 02:47 PM
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.
07-06-2011 04:50 PM
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.
07-06-2011 04:57 PM
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.