LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger NI 9485

Using a cDAQ, I want to trigger a NI 9485 SSR open/close with an analog input level detect.  I can do this with the Basic Level Trigger Detection.vi which allows me to create an event and close the relay via software.  I'm getting around a 20ms elapsed time, from initiation of the Write SSR event to the relay closure (see snippet).  Occasionally it jumps to 50ms.  But I must add to this the buffer time of the DAQmx Read NSamp from my AI which sends the data to the Basic Level Trigger Detection.vi. So this sampling buffer delay is say 20-50ms depending on how many samples I read each time.  I'll have to juggle this to minimize overhead and optimize relay closure response time.  So I'm looking at 50-100ms total response reliably.  So... is there a better way?  I've looked at the DAQmx Trigger.vi, but all the discussion there seems to be related to pre/post triggering analog input, not what I'm doing.  My analog input here is NI 9203 4-20mA.  I know I can use a cRIO to get real-time response.  Just trying to optimize things with the cDAQ.relay-close-time.png

 

Greg R.
0 Kudos
Message 1 of 1
(1,451 Views)