NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get SequenceContext (TS API) from LV

Solved!
Go to solution

Hi!

 

I embedded TS interace in my LV code and would like to programmatically tune some settings of TS (Report, ...). Usually in TS I use RunState reference to get and set specific properties. It looks like RunState ref is not available through TS API => Am I wrong ?

It also looks like SequenceContext could allow me getting/setting interesting prop. But how to get ThisContext or SequenceText whithin LV ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 4
(3,457 Views)

I use SequenceContext to get everything that RunState provides in TestStand.

 

You can pass in the SequenceContext to a VI to access it's properties and methods.  I would call a VI like this in your test sequence or process model.

 

Thanks,

 

PH

0 Kudos
Message 2 of 4
(3,450 Views)

Dear Teds,

 

The problem I'm not using a VI in TS. I'm using TS in a VI... I'm controlling TS through its API and I'd like to programmatically change options before lauching a custom TS behavior contolled by my software.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 4
(3,445 Views)
Solution
Accepted by topic author CyGa

Hi Zyl,

 

You can access the Sequence Context from the ExecutionViewManager control and a Property Node, then, use property and invoke methode nodes to get or set the settings you want.

 

Regards,

Olivier L. | Certified LabVIEW Developer


Message 4 of 4
(3,405 Views)