05-09-2017 04:36 AM
hi,
wahat is different between function global variable and file global variable in NI test stand(2014) .
Solved! Go to Solution.
05-09-2017 04:48 AM
There are no "function global variables" in TestStand. What is this?
Assumption: You talk about "STATION Global Variables".
Station Global: Stored in StationGlobals.ini and availble for all sequence files on the specific test system (installation)
File Global: Accessible in all sequences inside the sequence file which defines the variable, but not accessible in other sequence files.
05-09-2017 08:24 AM
yes this station global only.
File Global: Accessible in all sequences inside the sequence file which defines the variable, but not accessible in other sequence files.
but still now i am not undershoot what is different because both are using all sequence.
05-09-2017 08:38 AM
Hi,
File Globals are used within a single Sequence File. You are right that they can be used by all sequences within that file, but no other sequence file can access that data.
A Station Global stores information outside of the sequence file. It is usually used for storage of test station information, or user information; the kinds of things that don't change between sequences. They also don't return to a default value after sequences execute, they maintain their value after execution.
Nic
05-10-2017 06:32 AM
ok than what is different local variable file global variable because local variable also using single sequence only .
05-10-2017 07:29 AM
Attached is the TestStandSystemandArchitectureOverviewCard.pdf. Look at the section titled: Sequence File Structure. It shows the scope of the different variables. Here is a brief description of all the different types of variables you can have in TestStand:
StationGlobals = Accessible by anything on the station.
Sequence File Globals = Accessible by only members of the sequence file within which the Sequence File Global is defined
Locals = Accessible by only members of the sequence within which they are defined
Parameters = Accessible by only members of the sequence within which they are defined. Used to pass data from the sequence to the caller and vice-versa
Step Properties = Accessible by only the step within which it is defined
Hope this helps,
05-10-2017 07:30 AM
Also- please note that there is a huge difference between sequence file and sequence. One is a file and one is an object within the file.