NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Check if a Specific Seq File Is Executing

Is there a way, via the TS API to check if a specific sequence file is currently executing given the two conditions:

  1. This will be done entirely from LabVIEW without access to the SequenceContext object that could normally be passed in if it were called as a sequence step
  2. This would not be dependent on the Sequence Editor GUI so should be able to identify if a sequence is executing whether the editor is open or not


I saw my father do some work on a car once as a kid and I asked him "How did you know how to do that?" He responded "I didn't, I had to figure it out."
0 Kudos
Message 1 of 5
(3,646 Views)

Hi Blackburnite,

 

I don't have the answer to your question but if it's not dependent on the Sequence Editor process then it should be an API call on the TS Engine. Maybe here you can get more luck: https://www.ni.com/docs/en-US/bundle/teststand/page/writing-app-teststand-engine-api.html

0 Kudos
Message 2 of 5
(3,600 Views)

Try SequenceFile.IsExecuting property.

 

-Shashidhar

0 Kudos
Message 3 of 5
(3,596 Views)

That's what I initially tried but it appeared to be using a different instance of the teststand engine object that was created.

 

I think what I'm really looking for is a way to access a teststand engine object that already exists, which I can then use to call that method.



I saw my father do some work on a car once as a kid and I asked him "How did you know how to do that?" He responded "I didn't, I had to figure it out."
0 Kudos
Message 4 of 5
(3,583 Views)

If you want to access TestStand objects from a process they weren't made in, you can use a remote synchronization object (one named with a *). These objects will live in a separate process and are accessed through DCOM.

 

In this specific sequence file you could create and set such a notification, then from a separate LabVIEW app, check this notification by name to see if it has been set. If relying on the name and the status of the notification isn't good enough, you could also store a reference to the SequenceFile object in the 'Data Value' of the notification, and then check the .isExecuting property of that remote object from the other process.

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 5 of 5
(3,578 Views)