09-29-2005 01:28 PM
10-01-2005 01:44 PM
Hello Bob,
Once you have a path to a sequence file, you can use the TestStand API to load the sequence file and execute a sequence in that file. If you are new to using the TestStand API, I recommend referring to the TestStand API Reference Help in the TestStand Help and specifically to the “Using TestStand API Objects” help topic. The methods you will use to load and execute a sequence are:
Engine.GetSequenceFileEx to load the sequence file;
Engine.NewExecution to execute a sequence in the loaded sequence file; and
Engine.ReleaseSequenceFileEx to unload the sequence file once the execution is complete.
You will want to refer to the corresponding help topics for details on the expected parameters for these methods.
You can invoke methods of the TestStand Engine from within your LabVIEW VI using invoke nodes. To get a reference to the TestStand Engine in your VI, there are a couple of options. If the VI you are using is being called from TestStand, you can pass the SequenceContext to the VI and use a property node to get a reference to the Engine from the SequenceContext. If the VI is running on its own, you can use an Automation Refnum and Automation Open to open a reference to the TestStand Engine. If you use Automation Open, be sure to use Close Reference to close the reference to the Engine after invoking the ReleaseSequenceFileEx method.
Regards,
Eric
10-03-2005 08:14 AM
Eric,
Thanks. That is exactly what I was looking for. I have lots of experience with LabVIEW but only a little experience with TestStand. I have created lots of sequences but I haven't gone any deeper than that so far. This will be a good chance to delve into the API.
Thanks again for showing me the right direction.
Bob Young
10-03-2005 09:04 AM
You are welcome! This does sound like a good opportunity to dive into the TestStand API. Once you begin to get familiar with it, I think you will be pleased at the power you have when using the API.
I am glad I could help.
Regards,
Eric
04-24-2007 04:23 AM
Hi Bob (and Eric),
I am having more or less the same necessity posted by you Bob but unfortunately, I am new to labview and teststand. So, if you may post some examples extracted from your application where I can pull out knowledge to solve this matter I will be grateful with you.
Thanks
JLM
04-25-2007 10:31 AM
04-27-2007 04:26 AM
04-27-2007 10:04 AM
04-27-2007 10:35 AM
Hi Andy,
don't worry about your example, I've just took what was useful for me from that. In fact I am using an Operator Interface, the LV simple OI one. When I open it, it requires the Login&Password (needed in my application) and then, I would like to allow the user to select from which directory (dir_00 or dir_01 or dir_02, etc.) he has to work running the test sequences. In the attached vi, I would use (if possible) the slider to select the dir to work on.
Thanks
JLM
04-27-2007 04:15 PM