From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-07-2010 11:20 AM
A couple years ago we created a template for all of our TestStand sequences which included the "Setup" and "Cleanup" using discrete subsequence calls and to simplify and add functionality I've created a new Master Initialize and Cleanup
OLD FORMAT: NEW FORMAT:
Setup: Setup:
Initialize Network Master Initialize
Initialize Database
Record Tester Information
(More exist here as well)
Main: Main:
(Specific Test) (Specific Test)
Cleanup: Cleanup:
Report Test Status Master Cleanup
Close Database
Close Network
End End
Also, the original templates did NOT include the required Locals.ResultList variable (the author deleted this from all of the templates, and thus from all of the tests). We've changed from a home grown XML reporting (problematic) to use the existing TestStand HTML reporting and this variable is required.
So I need to update all of the test sequences that we have to:
1. Replace the existing Startup steps with the new "Master Initialize".
2. Replace the existing Cleanup steps with the new "Master Cleanup".
3. Add the Locals.ResultList variable back into the scripts.
Problem is that I have nearly 700 test sequences to update with these 3 changes.
I have considered changing the first sequence in Setup to call the Master Init a and similar to the Cleanup to call the Master Cleanup and make all of the others basically null calls (exit immedately), but we may need these some other functions and I still need to add in the Locals.ResultList variable anyway.
SO the question is:
Is there an easier way to update these 700 sequences besides doing the necessary:
Delete Setup
Paste New Setup
Delete Cleanup
Paste New Cleanup
Paste Locals.ResultList variable
Mike
07-08-2010 04:28 AM
You can use a simple program to automate this for you. You will have to call the TestStand API to do these copy paste and delete work for you.
Are you using LabVIEW...? What is you exact requirement...? From your post what I understand is you have to delete few steps in the setup and cleanup and insert sequence call steps there. Is that correct...?
Thanks,
Sathish
07-29-2013 03:26 AM
Hello,
I want to do the same as you. Did you find the way to do it?
Thanks
Cyril
07-29-2013 11:23 AM
Use the TestStand API to programmtically modify the sequence files. See the help for the TestStand API for more details.
-Doug
07-31-2013 04:17 PM
I felt that the investment of time to write the script vs doing it manually wasn't worth it. I opted to do it manually.
I did groups of about 20 files at a time, deleted those that I didn't need and copy/pasted the new ones.
You may be a better programmer than I am, and it might be worthwhile to try.
Mike