‎12-06-2019 06:02 AM
Hello,
what do i have to do that the content of the local variables (which are changing while a sequence is running) are still available after the testplan has finished?
Is there something like a commit to disk statement that can be inserted after changing a local?
Thanks
BR
‎12-07-2019 10:00 AM
You could instead use a station global, which do persist. I would instead just save the value to a configuration file.
‎12-10-2019 09:11 AM
t want to save to StationGlobal as this makes it not easy to send seqeunces to customers.
Meanwhile i found the solution how to save locals to the file by using the statement: RunState.SequenceFile.Data.Seq["MainSequence"].Locals.myVariable
.
Besides this:
How can i save/read a value from a configuration file with only teststand-tools and no extra Dll/sw?
Thanks
BR
‎12-10-2019 10:17 AM
@OnlyOne wrote:
How can i save/read a value from a configuration file with only teststand-tools and no extra Dll/sw?
Use a Property Loader step.
‎12-10-2019 10:24 AM
As Crossrulz said, loading can be done via the property loader. Saving new values would require special software for creating those files.
‎12-11-2019 03:05 AM
Hi,
I found the solution posted by ~jiggawax~ in this thread: https://forums.ni.com/t5/NI-TestStand/How-to-read-a-textfile-in-TestStand/m-p/774125
It is working without any extra sw and without the property loader.
Thanks
‎06-21-2020 11:43 AM
You can set the property of Local Variable by right clicking it - Go to Advanced - Edit Flags and set its property to 0x40000 (shared at runtime). It will retain its value after the test sequence is completed