NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Clean Up variables FileGlobals

Hello to Everybody,
I hope that some can help me, because I've got a problem with a variables(type fileGlobals. When I close Teststand, after is executes a my sequence, the fileGlobals variables are initialize with the last value, instead of zero.

 

Thanks so much.

 

I can not understand the reason

 

Francesco

0 Kudos
Message 1 of 3
(2,656 Views)

Probably somewhere in your sequence you are setting the edit time values for the fileglobals rather than modifying the runtime copy. If you are doing anything with FileGlobalDefaultValues or modifying the fileglobals using an edit time version of a sequence context, that is likely the cause of your problem. To get the file globals at runtime (i.e. get the runtime copy), you either need to access the FileGlobals property of the current sequence context or use Execution.GetFileGlobals().

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 3
(2,641 Views)

Thanks for the reply ... Now I try to seek and follow your advice. I'll let you know if I solvedthe problem

 

Francesco

0 Kudos
Message 3 of 3
(2,631 Views)