03-01-2008 07:23 PM - edited 03-01-2008 07:32 PM
03-03-2008 01:40 AM
Hi Daniel,
You can access the TS engine in VB.net or LabView. In the example folder that is shipped with Teststand you can find a lot of example about accessing TS. For your task all you need is the SequenceContext.
For getting the actual running StepIndex try this.
SequenceContext.Step.GetStepIndex() .If you use StepGrops (Setup,Main,CleanUp) you have to check this, too.
Greetings
juergen
03-04-2008 02:26 AM
03-04-2008 02:58 PM
Hi Daniel,
this sounds difficult because you want access from process A(your Exe) to process B (a running execution in TS). That mean we are discussing about interprocess communication. Doing this is not easy but it should be solveable. At the moment i have never hooked a running execution in TS to an other Process. But i did interprocess communication with TS. Every step can access a HWND of my Operator Interface. So a step's UI window an be placed as a child window to the OI. I did this by using a "Shared Named Memory".
Shared Memory could be a Solution. But i don´t know is this is working in .net ?
At the moment I am thinking on FileSharing by using StationGlobals. When ever you starting your Execution a handle to this execution is
stored as a variable. Then force TS to save the Globals on file. Now it is time for your application. It reads the Globals and get the handle to the current execution. If this stuff is really working the monitoring of StepIndex is a childrens game.
Greetings
Juergen
03-06-2008 06:50 AM
Hi Daniel,
I have started a new thread: http://forums.ni.com/ni/board/message?board.id=330&thread.id=18696
to get some more informations, because am curious about your task. If this is possibile you can do some crazy stuff while running TS!!
greetings
Juergen
03-07-2008 03:30 PM