Hello GDTestEng,
Thanks for contacting National Instruments.
I'm not exactly sure how your run options for are set for the Load and Unload of each step that calls your CVI DLL in your TestStand sequence. If you set those options for each step to these values, the DLL is loaded/unloaded for each sequence execution (i.e. for each UUT iteration through the sequence):
Load = Preload when execution begins
Unload = Unload after sequence executes
However, if you set the Unload option for the LAST step that calls this DLL to "Unload after sequence file is closed", then the DLL is not loaded/unloaded between sequence executions.
As for the problem of not stopping execution at the RunUserInterface call at subsequent iterations... I'm not sure
, so I'm attaching a zipfile containing a small CVI 6.0 DLL application and TestStand 2.0.1 sequence that I think accomplishes what you're trying to do.
I hope this helps with the problems you've run into!
Regards,
David McClelland
National Instruments - Applications Engineering