NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get in a LV tree ctrl a sequence structure

Solved!
Go to solution

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 meaneach 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.

 

 

 

 

0 Kudos
Message 1 of 4
(4,048 Views)
Solution
Accepted by topic author logatto

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!

 

Josh W.
Certified TestStand Architect
Formerly blue
Message 2 of 4
(4,024 Views)

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

Message 3 of 4
(4,016 Views)

Thanks, this is exactly what I was looking for.

 

Bye

0 Kudos
Message 4 of 4
(4,001 Views)