LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

change detection teststand

How should Change Detection be implemented when using with TestStand?  I want to detect when a signal changes from Test Stand, but I do not want to hang the PC waiting on the change.  Is there are way to do this that would be better/different than just polling the signal with a Sleep statement?
0 Kudos
Message 1 of 4
(3,266 Views)

What sort of change are you looking at detecting? Is it a digital signal, analog singal, etc? What sort of change would trigger the event? What hardware are you using?

 

If you are using NI daq hardware and LabVIEW, you can set up a VI to set up a DAQmx task to wait for the change, then this would return the info to TestStand. Some more details would be helpful to find a specific solution.

 

Thanks!

---

Peter Flores
Applications Engineer
0 Kudos
Message 2 of 4
(3,245 Views)
I am detecting a digital level change.  I will be using DAQmx and CVI.  What I am not sure of is how to best implement the return of the data to TestStand.  Is there a way to tell TestStand to wait on an event (other than making a call to a function in a DLL that waits for an event)?  I don't want to hang the system while it waits on an event.  I could just check for and event from a DLL functioncall and then return to TestStand to check the status and loop if needed.  I thought there might be a cleaner way of implementing this.
0 Kudos
Message 3 of 4
(3,226 Views)

The most obvious answer would be to call your CVI module that waits for the event to happen in a new execution thread in TestStand.

 

If you share more about the bigger picture, we can give more specific help.

 

What do you want to do when this event is found? Why do you not want TestStand to "hang-up" or wait for this event? Are there things you want to be doing while waiting for this event? How fast do you want to respond to this event?

 

Thanks!

---

Peter Flores
Applications Engineer
0 Kudos
Message 4 of 4
(3,200 Views)