NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

NewExecution sequenceArgsParam

Solved!
Go to solution

Hi all,

 

I have a problem with the function in the subject. I am able to call the NewExecutiion() function from TS, but the parameters in the sequenceArgsParam will not be passed.

Can anybody tell me, what I do wrong?

 

The Action in the NewCall sequence should call the "Set Power Supply" sequence, which has one parameter, an array of strings.

 

 

 

 

0 Kudos
Message 1 of 13
(5,138 Views)

You need to put the array in a container in your Locals:

 

 

From the TestStand Help:

sequenceArgsParam As Variant

[In] [Optional] Pass a PropertyObject object that contains the arguments to the sequence you want to execute. Each subproperty of the PropertyObject object represents a parameter to the sequence. The subproperties must appear in the same order as the sequence parameters.


jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 13
(5,126 Views)

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 13
(5,124 Views)
Solution
Accepted by topic author mitulatbati

Forgot the attachment last time.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 13
(5,117 Views)

Thanks jiggawax.

 

For my understanding a single local variable is also a property object, but it seems not to be the case. But now it is working.

 

mitulatbati

0 Kudos
Message 5 of 13
(5,105 Views)

Everthing in TestStand (well almost everything) is a property object.  It's called inheritance.  Basically almost everything inherits from the Property Object class.  A sequence file is a property object, a sequence is a property object, a step is a property object, etc...

 

The point is for that method you needed to pass a property object where each subproperty represents 1 parameter in the parameter list.  They also have to be ordered correctly.  So if you have a sequence with 2 strings and a number then you would have to pass it a propety object with 2 strings and a number as the subproperties.

 

Hope that helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 6 of 13
(5,096 Views)

Hi jiggawax~ , 

 

I like your posts here... (but I have another question if you are still subscribed to this post....)

What if the New Execution is made in LabVIEW, and I would like to send some data... say a Number to the Execution... how can I create a property object out of the data in LabVIEW ?

 

 

Amitai.

0 Kudos
Message 7 of 13
(4,434 Views)

Amitai,

 

Are you talking about the sequenceArgsParam?  You can just pass a Variant in LabVIEW?

 

If you need to convert to a PO then you can use the Variant to Data function and wire an Automation Refnum that points to the PropertyObject class into the top of it.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 8 of 13
(4,430 Views)
Jiggawax,

Thanks for your prompt reply,
(Btw... TS 2014, LV 2013 SP1)

I'm starting an interactive execution (MainSequence) using Labview, so If I'll convert some Double into a Variant, and connect that to the sequenceArgsParam... How can this Double be retrieved at the execution in Teststand?

Should I add a Double Parameter to the MainSequence?
There is no Variant datatype...
Should I convert the Double into a PO and then pass it?

amitai
0 Kudos
Message 9 of 13
(4,424 Views)

If you already have an engine then you can use Temporary Globals.  Read the TestStand help on how to use them and what they are.

 

The other thing you can do is use a Queue.  If the name of your Queue begins with an * then anything in TestStand can access it.  It basically becomes a global queue.

 

I would not change the prototype of MainSequence (i.e. add parameters).  Because the process model calls it as well.  If it won't ever be used by the process model then use a different name for the sequence and in that case you can add parameters.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 10 of 13
(4,420 Views)