NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

OI: How to connect different test sockets in parallel mode to different sequence views?

Hi folks,

 

I have two sequence view controls and I would like to connect them both to an execution. But the first one should show the first testsocket data and the second one the second test socket data.

 

First I tried to connect them to different executions, which is fully wrong since one execution contains already the data of both testsockets.

0 Kudos
Message 1 of 3
(2,680 Views)

Kind of duplicated post?

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 3
(2,662 Views)

Yes, thank you, it is "kind of duplicated" since someone can find the answer inside the thread you gave. I was not able to find that thread on my own, which makes it only _kind of_ duplicated.

 

I am sorry my question was somehow low level, because I am still new to TestStand, although I am working on it ;). My difficulty was, that I did not understand, that the execution I started with  the engine command "Run" was forking giving me only access to the initial clone.

 

Basically the DisplayExecution callback informs the exterior LabView OI when a new Testsocket started an execution.

 

Since you get this execution as parameter in the callback VI, it is easy to retrieve the test socket index (RunState.TestSockets.MyIndex) from the sequence context of the its ForegroundThread.

 

In my opinion this is also best practice, because like this you can create testsocket user interfaces dynamically, by starting a new test socket UI every time the DisplayExecution callback is triggered.

 

I for example do this by starting a dynamically created frontpanel reference asynchronously as fire and forget (0x80) an supplying and retrieving control and indicator values by index.

0 Kudos
Message 3 of 3
(2,638 Views)