NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you write/add StationGlobals?

I am new to LabView/Teststand programming.  I am updating an application which was writtin in LabView 7/Teststand 3.0.
 
There is a construct in one of the steps in a sequence where a string output of the .vi is being assigned to the variable StationGlobals.Datecode.  This variable does not exist... It seems as though you can't 'add variables' to the list of StationGlobals.
 
Is this new in Teststand 3.5, or my newness to the situation caused me to not know "how"?
 
John Hengesbach
Aircom Manufacturing, Inc.
0 Kudos
Message 1 of 6
(3,541 Views)

You should be able to (CTRL+G) to bring up the station globals window. Then right click in the right pane and select Insert Global. Hope this helps.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 2 of 6
(3,536 Views)
Thanks for the reply.
 
That is what I thought I should be able to do.  However, the 'insert' functionality does not appear.
 
Since I wrote, I have found that I can edit the StationGlobals.ini file to add the variable but that seems potentially more error prone.
 
Also, where do I find the keywords that it likes for the data types.  I needed a string (Str), a boolean (Bool) and a number.  I haven't figured out the keyword it is looking for to match my 32 bit integer ;-(
 
 
John Hengesbach
0 Kudos
Message 3 of 6
(3,531 Views)

I can only verify with TestStand 3.1, but if you can't add or modify the station globals, you might want to check your user rights. Look at your user type profile at Privileges>Debug>EditStationGlobals. It should be set to True.

When adding a global, you would first select a number and then after it's created, you can right click on it and select properties. Click the Numeric Format button. You can then change the type if you wish.

0 Kudos
Message 4 of 6
(3,521 Views)

Well as I said ... I am new to this.  What I found was that you have to click on the list on the RIGHT pane, not the left pane where the tree is which is where I would have suspected...).  I can now add the appropriate variables.

 

Thanks to all for your help!!!

 

John

0 Kudos
Message 5 of 6
(3,516 Views)
Hi,
 
If the options value is 0 in the SetVal method, then the StationGlobal has to exists. But if you use a value of 1, then the StattionGlobals will be created and set with the value you are trying to set.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 6 of 6
(3,508 Views)