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.
05-15-2006 04:31 PM
Dennis. When I first ran the sequence and VI you sent, things worked fine. Then I modified my StationGlobals file, and your VI to match, but all I get is err 97, and the WorkCenter value no longer gets displayed. In fact, I've tried to just read the StationGlobals.TS.LastUserName and it won't even let me do that. Any idea what I'm doing wrong?
05-16-2006 12:57 AM
Hi,
If I remember Dennis's example used the Lookup string of StationGlobals.WorkCenter but now the lookup string is
StationGlobals.ATEReg.WorkCenter (as detailed in the StationGlobals.ini)
Regards
Ray Farmer
05-18-2006 07:24 AM
05-18-2006 07:43 AM
Hi,
I am assuming the lookup string you are using for the Get and the Set are the same, then the Station Globals should be changing. Can you setup a watch on one of the properties you are changing?
Want are you looking at too see if the values are being changed.
Dont forget, that the actual StationGlobals.ini file will not change until either your Shutdown Teststand or you do a Commit to File.
Regards
Ray Farmer
05-18-2006 09:03 AM
I'm not sure how to perform a Commit To File in LabVIEW. What I have tried, however, is using the Sequence Context to get an engine reference. Then I've looked at ConfigFile::WriteFile, Globals::Write, and GlobalsFile::WriteFile (and SaveFileIfModified). I'm not sure, though, how to associate these methods with the StationGlobals.ini.
Also, am I on the right track in my approach to updating the string control? I simply created a Property Node ::Text::Text and I've tried Property Node::Value - I change the property node to a write and connect the output of the TestStand Get Property Value call to it. The lookup string is the same one that worked in the example (provided by Dennis).
05-18-2006 10:28 AM
Hi,
I have modified Dennis's sequencefile and VI.
It now reads and writes to a StationGlobal.
Regards
Ray Farmer
05-19-2006 08:19 AM
05-19-2006 02:09 PM
Hi,
This VI now forces the StationGlobals to save after the change.
Regards
Ray Farmer
06-06-2006 08:36 AM
06-06-2006 10:16 AM