From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-06-2019 03:49 AM
Hi,
What is difference between Local Variables,Station file global variables and Station global variables?.and how these variables can be used effectively in Teststand application.
Solved! Go to Solution.
02-06-2019 05:56 AM
Local Variables - Only usable in the current sequence. Most of your variables should be these.
File Globals - Only usable in the current sequence file. Any sequence inside of the sequence file can use it. Useful for tracking unit specific variables that many of your sequences will need such as IP Address, min/max voltages and currents, etc.
Station Globals - Any sequence on the current machine can use the variable. I usually only use these for things my "common" sequences will need such as Report Folder (to put additional information with the report such as scope plots, retrieved files from the UUT, etc).
02-06-2019 01:42 PM
The TestStandSystemand ArchitectureOverviewCard has a good picture and description of each. You can find it in the TestStand folder under Doc. It is a PDF. C:\Program Files (x86)\National Instruments\TestStand 2017\Doc\Manuals (on my machine)
I'm also attaching it.
Also a link to it: http://www.ni.com/pdf/manuals/373457e.pdf
Hope this helps,
02-07-2019 04:39 AM
Another word about FileGlobals:
Depending on your settings in the Sequence File Properties you'll have separate FileGlobals for each execution (default) or one shared FileGlobals for all executions (selectable) AT RUNTIME.
Changes to the variables in FileGlobals will disappear after your execution stops (Locals behave similar but there you are usually expecting it). If you want to modify variables at runtime and see the changes later in the editor at edit time you'll have to access RunState.SequenceFile.Data.FileGlobalDefaults. This is the blueprint for the FileGlobals you see in your executions at runtime (RunState.Execution.FileGlobals).
Also mind that the FileGlobals you are using in an execution won't be reset if you continue to use that execution (e.g. if you run "Next UUT" in the "UUT Information" dialog of the parallel model). To play around with that behaviour just create a sequence that displays a Message Popup that shows FileGlobals.MyInteger and incements that number after displaying.
As long as you are running only one execution (e.g. in sequential model) all this is of little interest to you but if you start with parallel executions you'll always have to know in which variable space you are operating otherwise life can become very confusing.
After you are comfortable with Locals, Parameters, FileGlobals and StationGlobals then you can dig in the documentation for Engine.TemporaryGlobals, Execution.RuntimeVariables and Thread.RuntimeVariables.