NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand station global

Hi,
Can any body tell me what is the difference between TestStand Sequence file global variable / station global variables and LabView global variables.
In TestStand, I want to pass one cluster from Setup to Main, which can't be passed using Local variable.
 
Using LabView Global variable, I am able to pass cluster from Setup to Main.
Using TestStand Sequence file global variable / station global variables, the cluster has not been passed from Setup to Main.
 
Any help will be appreciated.
 
Thanks
Holy
0 Kudos
Message 1 of 3
(4,832 Views)

Holy,

Local Variables:
Each execution has its own copies of the local variables. So you can not use them to share data between executions.
Use local variables to store data relevant to the execution of the sequence.
Sequence File Global Variables:
Any sequence in the file can access the global variables for the file. A subsequence can access the global variables in the sequence file that contains the calling sequence.
Global Variables:
Station global variables are persistent across different executions and even across different invocations of the sequence editor or operator interface. The TestStand Engine maintains the value of a station global variable in a file on the computer on which it is installed.
LabView Global Variable.
The LV global variables are used to access and pass data among several VIs.
TestStand can not access LV global variables directly.
You need to call it through a code module.

I am not sure how are u handling the cluster.
I assume that you are initializing it somehow in the setup group and after that you use it in the main group.
1. If you get the cluster from a VI in the setup group and after that you want to use it in the main group you could use a local variable.
2. If you need to share the cluster among several executions you need to use a global variable.

Could you give more details about your use case?

Hope it helps

Antonio.

Message Edited by Antonio Lie (NI) on 11-11-2005 10:16 AM

0 Kudos
Message 2 of 3
(4,828 Views)
To add to what Antonio has already said, the Setup, Main, and Cleanup are step groups within one sequence.  Every sequence consists of these three different parts.  However, the data in the sequence has a scope that spans across all three step groups.  The Locals data set is accessible from either the Setup, Main, or Cleanup step group.  For example, a step could store data into Locals.data in the Setup step group.  A step in the Main or Cleanup step group, can then access Locals.data.

Tyler T
0 Kudos
Message 3 of 3
(4,786 Views)