NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How the step number of Teststand could been get by Labview or vb.net

A test software is programmed by teststand 3.5, and I only have the .seq file of test.
If I don't modify the .seq file, how can I know which step number in test sequence is running currently?
I want to add different prompt to operator when different test step run, but I only program using vb.net or labview and don't know the teststand.
Could I access the teststand engine using the vb.net or labview to get current test step number when the teststand sequence is runing?
 
Thanks.
 
 


Message Edited by Daniel Deng on 03-01-2008 07:24 PM

Message Edited by Daniel Deng on 03-01-2008 07:32 PM
0 Kudos
Message 1 of 6
(4,504 Views)

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

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 6
(4,478 Views)
Thank for your suggestion, juergen.
 
BTW, my vb.net program is independent of the teststand program. It isn't a part of the teststand program. It is runing at the same time with teststand program.
So, whether "SequenceContext.Step.GetStepIndex() " could get the step index of teststand of current runing?
0 Kudos
Message 3 of 6
(4,455 Views)

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 6
(4,437 Views)

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 6
(4,406 Views)

Hi Daniel,

There is solution. Visit the upper link

Greetings

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 6
(4,380 Views)