05-31-2010 10:58 AM
Hi, I am doing an editor for customizing some sequence parameters (for example "run mode). I'd like to import into a LV tree control all the test sequence maintaining the same structure of the original one. I mean, each step is an item of the tree (Test A, Test C..), while each subsequence call is a node of the tree (Test B, Test B_3), the parent of some children. Using TS API, I can go thru the Main sequence and all the subsequence but I cannot find the link between the subsequence and its call. I can find that Test B is a sequence call but not what subsequence is calling.
If help, I can post part of the code.
Thanks a lot.
Solved! Go to Solution.
06-01-2010 07:54 AM
logatto,
In order to get the information about the sequence call step that you want, you'll need to use the TestStand Adapter API. You should get the Step.Module object from the sequence call step, and then cast it to a SequenceCallModule object. You can then get the properties you want.
You can see how the TestStand classes fit together here: http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/infotopics/using_teststand_api_objects/
There are also several helpful KBs out there, if you search for some combination of TestStand/LabVIEW/Adapter API/Module/etc. Here's one I found: http://digital.ni.com/public.nsf/allkb/ADC6909C20E27D4886256E94005424E3
Hope this helps!
P.S. To 'cast' in LabVIEW, use the "Variant To Data" node. Be sure to close all references!
06-01-2010 08:22 AM
This might help. I did a similar project with using a Tree Control and TestStand.
First obtain the refnum to the step using Get Step.
Next check if the Step is a sequence call via the 'IsSequenceCall' property and also obtain the Module. The attached VI is how I obtain the name of the subsequence called.
Thanks,
PH
06-01-2010 10:28 AM
Thanks, this is exactly what I was looking for.
Bye