NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically get Execution Option Value ( 'ThreadOpt' )of a Sequence Call

Solved!
Go to solution

Hello, I'm trying to get the value of 'ThreadOpt' which is the 'Execution Option value of a Sequence Call Step.

The value can be found in 'TS.SData' , but I can't get the value (which is 2 in this case), here's what I tried:


MainSEQ_ref.GetStep(0,1).Module.GetPropertyObject('ThreadOpt',0) 

 which returns a <COMObject <unknown>>

and

 

MainSEQ_ref.GetStep(0,1).Module.GetPropertyObject('ThreadOpt',0).Name 

which returns 'ThreadOpt'

 

 


image.pngimage.png
What am I missing? Thank you!

0 Kudos
Message 1 of 2
(2,201 Views)
Solution
Accepted by topic author RaduH

It was working properly, I had to use 

print(MainSEQ_ref.GetStep(0,1).Module.GetPropertyObject('ThreadOpt',0))   

 or str()

0 Kudos
Message 2 of 2
(2,174 Views)