LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you get a handle to a TestStand API SequenceCallModule Object?

I am trying to programatically specify the SequenceName for a sub sequence, created using the TestStand API called from LabView.  SequenceName is a property of the SequenceCallModule object but I cant see how to get the object handle.
 
Can anyone help?
 
Regards
 
Steve
There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 1 of 7
(3,739 Views)
Hello,
its better to look next time in TestStand-Board next time.
 
But to your question:
You have to get the step-reference of the SequenceCall (or the SequenceContext) inside your own CodeModule. Then you can set the SubSequenceName by (Step).TS.SData.SeqName!
You can look for this Properties inside the SequenceEditor by activating the "ShowHiddenProperties" at the Station Options.. (By the way the TestStand developer 'like' to change these properties in a newer version of TestStand)
 
Ciao TPoint
Message 2 of 7
(3,728 Views)
I forgot you can set the path by (Step.)TS.SData.SFPath...
 
TPoint
Message 3 of 7
(3,722 Views)

Thanks for the prompt reply, I tried what you suggested and it works fine.  It doesn't use the SequenceCallModule object though, do you know how to get a handle to object to the SequenceCallModule for the Step being processed?  I am a little concerned about doing it using the method you specified as any future modifcations, by NI, to the properties is going to give me problems.

Thanks again

Steve

Message Edited by SercoSteve on 01-05-2006 07:19 AM

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 4 of 7
(3,715 Views)
I don't know any other way to do this. (By the way, I coded a own TestStand-Editor (called PROGRESS http://www.goepel.com/content/html_en/article.php?site=auto&level1=auto&level2=&article_file=1126705...) an I got every time problems by upgrading TestStand to a higher Version. You can not  avoid this.) That's live..
 
Ciao TPoint
0 Kudos
Message 5 of 7
(3,710 Views)

Hi,

  you can actually do this. I was speaking to Steve yesterday on this :

starting with the handle to the appropriate step (I've done it in the attached sequence file in TS, but should translate nicely to LV)

so I use the sequence to get the step by name

I can then get the step.module

then using the TESTAND ADAPTER API (and not the Teststand API)
I can use the module returned above with the SequenceCallModule class from the TestStand AdapterAPI then. (you have to know ahead of time what the appropriate module / adapter type is otherwise it will have problems)

Hope that helps

Sacha Emery
National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
Message 6 of 7
(3,700 Views)

Thanks for your responses guys, most helpful.

Sacha, your sequence was easy to translate into LabView and my sequence creator is now generating correctly formated TestStand Sub Sequence calls without the need for hard coded lookups,  nice.

Thanks again

Steve

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 7 of 7
(3,697 Views)