NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand API C#: Getting all Global variables from a sequence file

Hi together,

 

i would like to get all global variables from a sequence file. Lets have following example:

 

SequenceFile Sequence = TSEngine.GetSequenceFileEx(path, 107, TypeConflictHandlerTypes.ConflictHandler_UseGlobalType);
Sequence MainSequence = Sequence.GetSequence(0);

 

With which methods can i export all Global variables into a list?

 

Thanks in advance!

 

Best regards

0 Kudos
Message 1 of 2
(1,995 Views)

Let me add following information to this, because i already got access to "Locals" (see attachment) with following code:

int elements = MainSequence.AsPropertyObject().GetNumSubProperties("Locals");

 

Nevertheless if i replace "Locals" with "StationGlobals" it doesn't work.

 

Thank you in advance!

0 Kudos
Message 2 of 2
(1,987 Views)