From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,074 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,047 Views)