03-07-2019 07:17 AM
Hi,
I want to check the values of predefined StationGlobals before execution and after execution.
1. I have excel files with default StationGlobals and it's values
2. I want to export after execution the StationGlobals values
3. I want to compare it and see the differences of values
Questions:
1. How i can export programatically StationGlobals values from TestStand?
2. What is the most easy way to do it?
Thank you
03-08-2019 02:06 PM
Use the TestStand API through LabVIEW. The attachment reads all the StationGlobals as variants, this doesn't work entirely if some of the globals are containers (like the default TS container). You may need to modify it to read the StationGlobals you are interested in obtaining. The types also could be issues if you have a mix of strings and numbers, for example.
Additionally, I assumed you would use the SequenceContext as the input as you said you are running after a sequence is completed.
PH
03-08-2019 02:21 PM
Thank you, i will try it
ideally, I want to read StationGlobals with TestStand APi if itexist
03-11-2019 09:35 AM
You can export and import the Station Globals using the Import/Export Properties tool.
You can then Import the Station Globals using the Property Loader step type.
You can also use the Write() and ReadEx() TestStand API functions to write and read specific Station Globals, including containers. You can also directly export all Station Globals at once but if you do so, Station Globals that currently exists on the station but that are not in the saved file would be wiped out upon import.
You'll find in attachment an example of using the TestStand API and a container. I modified the sequence provided by Glenn Ellis.
03-15-2019 02:01 AM
Thank you a lot!
I will check it as well!