NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass a property value from one Sequence to another?

Hello

I need to pass a property value from a sequence(TestSeq1.seq) to SequentialModel.seq present in the "Test Stand Models".
I am able to use properties within a Sequence File containing 2 or more sequences, but i am not able to access a property from two different sequences.

Regards
Kulwant Singh
0 Kudos
Message 1 of 9
(4,958 Views)
Hi Kulwant,
 
 
juergen
 
 
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 9
(4,950 Views)
Hello Kulwant,
 
[You mention SequentialModel.seq and another sequence file.]
Are you trying to pass information from the Main Sequence Callback step in one of the entry point sequences ( either SinglePass or TestUUT's) to MainSequence in your sequence file TestSeq1.seq?
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 9
(4,939 Views)
I am trying to pass a property from main sequence callbback(test1.seq) to my sequentialmodel.seq.i mean i am unable to find out the path of my sequence property from sequentialmodel.seq.actully i m editing my sequntial model according to my need and their i need to get the value of one local variable of test1.seq(main sequence callback which over ride the mainsequence) and use it in sequentialmodel.seq

regards
kulwant singh


Message Edited by Kulwant on 04-30-2008 06:39 AM
0 Kudos
Message 4 of 9
(4,936 Views)
And i also want to knw  that how and where teststand  creating the consolidated result list of test1.seq(mainsequence callback),so that i can use some of the varible like report text which it is passing into the sequntial model .in that way i can use that to pass the property frmcallback to sequential model.seq
0 Kudos
Message 5 of 9
(4,932 Views)
Hi Kulwant,
 
Scrup my stuff away !! It is absolutelly waste
 
Thank you Ray for reading the hole thread !!
 
Have a nice day
 
Juergen
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 9
(4,928 Views)
Hi Kulwant,

I feel your best option would be to use the RunState.Caller method in your Main Sequence.  You could define a local variable (newNumber) in your process model, and then while in your Main Sequence, modify that value by using this expression:

RunState.Caller.Locals.newNumber

I hope this helps!

Matt S
National Instruments
Applications Engineer
0 Kudos
Message 7 of 9
(4,897 Views)

Hi,

One way you could try is using the 'Propate To SubSequence' and 'Allow Propagation from Caller'.

You can find these setting when you right mouse click on the Locals variable.

You have to have the same local variable in the Caller sequence and the Callee Sequence

If you want to pass a value from the Caller Sequence, you set the Locals variable to 'Propate To SubSequence' and in the Callee Sequence you set the Locals  variable to 'Allow Propagation from Caller'

For example.

In 'Single Pass' sequence in SequentialModel.seq, if you have a Locals.Test variable of type number which has the setting 'Propate To SubSequence'  and the value of Locals.Test = 5.

In 'MainSequence' of MyTestSequenceFile.seq you have Locals.Test variable of type number which has the setting 'Allow Propagation from Caller' and the initial value set to 0.

When when you execute your MainSequence using Single Pass. When MainSequence is called from the ProcessModel, Locals.Test will equal 5, which uis the value passed from Single Pass.

If you want to pass a value from the Callee Sequence, you set the Locals variable to 'Propate To SubSequence' and in the Caller Sequence you set the Locals  variable to 'Allow Propagation from Caller'

Therefore in my example

In 'Single Pass' sequence in SequentialModel.seq, if you have a Locals.Test variable of type number which has the setting 'Allow Propagation from Caller' and the value of Locals.Test = 5.

In 'MainSequence' of MyTestSequenceFile.seq you had  Locals.Test variable which had the setting 'Propate To SubSequence' and the intial value was 0. But before you returned from MainSequence, in the Cleanup you set Locals.Test to -1.

When when you execute your MainSequence using Single Pass. Then when MainSequence is called from the ProcessModel, Locals.Test will equal 0, ( in this case the value of 5 is not propagated from Single Pass), but when you return back to Single Pass, the value in Locals.Test will be -1.

Likewise, if you wanted to pass to and from using the same variable, then the variable will have both settings of 'Propate To SubSequence' and 'Allow Propagation from Caller' set in each Sequence its used.

Hope this helps

Regards

Ray Farmer

 

Regards
Ray Farmer
Message 8 of 9
(4,884 Views)
Thanks a lot..this information was really helpful.

Regards
Kulwant
0 Kudos
Message 9 of 9
(4,847 Views)