12-15-2017 10:57 AM
12-15-2017 11:06 AM
Select the sequence you want to run and click the Run <sequence> button. See attached image.
Regards,
12-17-2017 01:42 AM
Hi Jigg,
Thanks, which example is this? can you pls send me the block diagram. I need to know the teststand API to invoke particular sequence.
12-17-2017 09:38 PM
That example is actually from the full-featured UI that ships with TestStand. It would be easy to add it to the simple UI though. Basically you connect a button to the SequenceFileView Manager using an invoke node. Use the run current sequence command kind.
Attached is an example.
Hope this helps,
12-17-2017 11:02 PM
Hi Jigg,
That's good solution.
My requirement quite different. I have a menu options, when I click on any submenu I should invoke particular sequence/steps. I have to handle this in event structure . I have written the code but it is not working , PFA for snap shot.
Any issue with below code? Basically I need to call sequence from menu, Not through button control. Please check the snapshot.
Regards,
Anand
12-18-2017 12:01 AM
Do you want them to run the currently selected sequence or open any sequence from any file?
Just attach your SequenceView Manager to an invoke node and call the run method:
http://zone.ni.com/reference/en-XX/help/370052R-01/tsuiref/reftopics/sequencefileviewmgr_run_m/
12-18-2017 12:46 AM
Hi Jigg,
I need to call a sequence from a sequence file(This sequence file does not have main sequence-- created sequence file and deleted main).
User have options in menu like --
Logs
-- test log
-- result log
When user click the test logs , it has to invoke a sequence in sequence file. the sequence will be calling the VI to show the test log .
I tried using Tools menu of teststand , it has an option to add submenu to call sequence , but when we run the user interface , I am seeing the default Tools options , which I don't want to show it to user and I couldn't get how to hide the default tools menu options. That's the reason the I took the approach of the snapshot I shared.
By the way, in the Run method of the sequence file view manager , how to pass sequence file name and sequence name of the sequence I want to run. what value I need to pass editargsvalue.
Regards,
Anand
12-18-2017 05:05 PM - edited 12-18-2017 05:06 PM
If your sequence is just calling a VI then why not just call that VI directly from your event structure?
The best way to do this is from the tools menu. In 2014 the tools menu is stored in ToolMenu.ini. You can just remove all the entries from it and add yours. Then deploy that with your deployment.
12-18-2017 09:30 PM
Hi Jigg,
I did calling VI directly from event structure. I have code with me for that.
As you said the best method is to call from tool menu. But if I change Toolmenu.ini, then Teststand sequence editor will not show the default options. So what I am trying is the default and customized tools Menu options should be seen in the Teststand sequence editor and in Teststand full feature user interface I should see only customized tools options.
Any way to do it programmatically.
Regards,
Anand
I
Regards,
Anand
12-19-2017 06:29 AM
Hi Jigg,
I tried the way you told. Deleted all the Default tools menu and retained customized steps and ran Teststand user interface.But seeing the display has "The expression cannot be empty" in Tools Menu. Pls see the attached doc.
Any solution for this.
Regards,
Anand