LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In LV, using TS API, how do I specify the VI module for a Pass/Fail step?

I am writing a LabView VI which will let a user write a TestStand sequence. Each step in the seq is the same type, a Pass/Fail test. I need to specify for each step the LabView VI module location, and an input buffer. I am having difficulty finding out how to specify the module for the step using the TestStand API in LabView. How to do this????
0 Kudos
Message 1 of 3
(2,844 Views)
Drew,

When you're in TestStand, you first select the LabVIEW prototype adapter. Then to insert the test step, right click and choose Insert Step>Tests>Pass/Fail Test. Once the step is in the sequence, you can then highlight the step, right click, and choose specify module. You would then specify the path to the VI and choose Input Buffer under the optional parameters (personally I think using the sequence context is better than the input buffer though).

If you don't know what a VI requires to interface to TestStand, you can click the Create VI button to get a VI with all of the required inputs and outputs. A VI that uses the input buffer must have on the front panel LabVIEW Test - Input Buffer.ctl, the LabVIEW Test - Test Data cluster, and an error
out cluster. The input buffer and test data cluster should all be available on your TestStand controls palette.

p.s. There is a dedicated TestStand forum that you might want to post additional questions to in the future.
0 Kudos
Message 2 of 3
(2,844 Views)
Hi Drew,
I think Dennis might have come at this from the wrong angle.
Have a look at the example that ships with TestStand under
\Examples\SequenceBuilderTool\LabVIEW
This might give some clues, but I'd suggest posting this question over to the TestStand discussion Forum as suggested by Dennis.
There'll be a few more people there who can help a bit more in-depth
My personal suggestion is to create a custom step type that calls the .vi's and then you can create the steps in a new sequence file using your tool easily. This could be cumbersome for you if you already have a lot of steps setup.
Better then to create a resource to get the steps out of to clone them by creating a sequence file which is full of your steps. When you have a handl
e to a cloned step, you can change properties about it in memory, before putting it into the sequence (i.e. change it's name and stuff)
Otherwise you need to get the type and create a new step of this type.
If all you're stugling with is the module to call, then for the step you have a handle to, change the
you can either change the "Step.TS.SData.ViPath" as a string (TestStand set property value String with a reference to the sequence_context) or if you wanted to bring up the specify module dialog, if you have a handle to the step itself, call the method SpecifyModule.

Hope that helps

Sacha.
// it takes almost no time to rate an answer Smiley Wink
Message 3 of 3
(2,844 Views)