NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

what is different between functional global variable and file global varial

Solved!
Go to solution

hi,

     wahat is different between function global variable and file global variable in NI test stand(2014) .

0 Kudos
Message 1 of 7
(4,592 Views)

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.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(4,581 Views)

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.

0 Kudos
Message 3 of 7
(4,552 Views)

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

--------
Nico
Systems Engineer

Certified TestStand Architect Certified LabVIEW Architect

0 Kudos
Message 4 of 7
(4,549 Views)

ok than what is different local variable file global variable because local variable also using single sequence only . 

0 Kudos
Message 5 of 7
(4,532 Views)
Solution
Accepted by topic author GokulGKM

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,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 6 of 7
(4,529 Views)

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.

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