NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Do global variables in C dll's remain active as long as teststand is running?

People in my group have noticed that global variables declared in C dll files retain their values when the DLL is called a second time. Does teststand keep the DLL open with the variables retaining their values or is this not guaranteed to be the case everytime.
0 Kudos
Message 1 of 4
(3,309 Views)

Hi,

Yes, providing the step is not set to unload after the step has executed in the Run Options. By default this is set to unload when the SequenceFile is closed.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,300 Views)
What about subsequences? If I load a sequence that calls other subsequence files, do the subsequences remain open until the parent is exited?
0 Kudos
Message 3 of 4
(3,299 Views)

Hi,

It remains in memory, until the caller sequencefile is closed.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,292 Views)