NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Update locals and limits in the runtime sequence

Hi All!

 I'm trying to update locals:

 

Engine my_egine = axApplicationMgr.GetEngine();

SequenceFile seq_file = my_egine.GetSequenceFileEx(seq_file_path, TypeConf​lictHandlerTypes.ConflictHandler_UseGlobalType);

Sequence seq = seq_file.GetSequenceByName("MainSequence");

 

seq.Locals.SetValString("strTextBox", 0, "my new string");
string str = seq.Locals.GetValString("strTextBox", 0);
            
MessageBox.Show(str);

 

I see "my new string" in message box but in the sequense the text is "Hello World".

As i understand there are run time and edit types of  sequence. How can i get run time  sequence?

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

Hi John,

 

Check out the following link:

 

http://forums.ni.com/t5/NI-TestStand/How-do-I-get-local-variables-to-update/m-p/579859/highlight/tru...

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,919 Views)