NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass local variables between different sequence files?

Actually i want to pass the data (local variable) from my process model file to a client file. The client file only has the callbacks and those callbacks require some parameters as input which is available in local variables of my process model sequence file. I do not want to use Station Globals.

 

Please tell me any other way by which i can pass that data.

0 Kudos
Message 1 of 3
(4,339 Views)

Which Locals do you want from the model.  Every sequence has it's own Locals and there are a bunch of sequences in every process model.  Do you want the entry point's Locals?  A callback's Locals?  Just one of the sequence's Locals?  Some Models have way more entry points than others.  What if your sequence file is ran with a different entry point?

 

One option is to create your own callback in the model and pass the data to it as parameters.  Then add that callback to your client sequence file and get it out of the parameters.

 

If you simply want the entry point's locals and you are in your Main Sequence then you could use RunState.Caller.Locals.VariableName.  This assumes you will use the same entry point every time you run that sequence file.  Or assumes that every entry point you run has the same Local variable name.

 

Maybe there is an API method that exposes what you are looking for.  What is your goal?

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(4,325 Views)

Hi,

 

If i want to share (local) data from one SequenceFile to another in my Projects. I use the queue steptype.

 

Another option would be using Station globals to share data.

or all Executions uses the same FileGlobals (important in Batch mode)

 

Juergen 

 

 

Message Edited by j_dodek on 07-15-2009 10:33 AM
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 3
(4,317 Views)