NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

FileGlobal variable

Sorry but I failed to find answer here so far.
I declared a FileGlobal empty number array that I would like to populate from 1 sequence and plot in another sequence.
The plot sequence is running in a separate is set to run in a new execution so that as various tests are performed the UI Plots are updated as the new data is being measured.
So far the only way I have found to get this to work is to go to right click the variable and select advanced / edit flags and turn on the Shared flag.
I did not need to do this with Station Globals but I dont want to use Station Globals for this case.
 
Somehow I am missing something or is the way I got to work the only way?
 
Mario
0 Kudos
Message 1 of 3
(3,424 Views)
By default, fileglobals are not shared across executions. Some other options you have besides the shared flag are to use a new thread instead of a new execution, or select the SequenceFile Properties>>Sequence File Globals>>All Executions Share the Same File Globals option.
0 Kudos
Message 2 of 3
(3,423 Views)

Thanks for the reply James. Guess I misunderstood the real scope for FileGlobals. BTW are there any issues besides the usual ones for any global with setting the Flag to shared?

Mario

 

0 Kudos
Message 3 of 3
(3,417 Views)