NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load programmatically from CVI the specific sequence file in TestStand 3.1

I am trying to implement TestStand from Windows/CVI 3.1. I need to insert a specific sequence file in TestStand, with all other sequences unloaded. I used TSUI_ApplicationMgrCloseAllSequenceFiles() and TSUI_ApplicationMgrOpenSequenceFile(), but after Username/Password prompt, the TestStand loaded all the old sequences. How to eliminate this?
0 Kudos
Message 1 of 3
(3,331 Views)
Hello,

I created a function that calls those two methods. When I made a simple CVI button and in a callback for it, I call my function, it does successfully close all open sequencefiles and then load the one I specified; however, it does not work when I call the function just before the call to RunUserInterface! I am very surprised by this and will be bringing it up with our R&D department. There is a simple work-around. Instead of closing all open sequencefiles at the beginning of the OI, close them at the end instead. I have modified the full-featured OI for you and tagged in the code where I made changes. This should do exactly what you want (you may want to change the code around to make it a little cleaner...I left more in code in than I needed for instructive purposes). Please let me know if you have any questions about this. Take care!

Regards,

Aaron B.
National Instruments
0 Kudos
Message 2 of 3
(3,317 Views)
Before calling ApplicationMgr.Start(), set the ApplicationMgr.ReloadSequenceFilesOnStart property to false.
0 Kudos
Message 3 of 3
(3,311 Views)