Quantcast
Channel: Multifunction DAQ topics
Viewing all articles
Browse latest Browse all 6878

USB 6008 relay switching speed? Delay through software?

$
0
0

Hi guys,

 

I have a setup with an USB6008 that controls some relays. However, I am unable to get the relays to switch fast enough. I can see by the USB6008 that the digital output ports have a speed of 150Hz, which equates to 6 ms. I would like to be able to control the relays in 10ms intervals. The relays have a bounce-time of 10ms. So in theory, it should just be possible. However, I am getting some issues in timing. The relay ports are open for way too long, often in the low hundres of miliseconds. This makes me wonder, if there is some sort of delay in turning the relays on or off.. My VI is basically a state machine that in one state turns on the relay and then wait an appropriate amount of milliseconds, then moves to the next state, which turns off the relay. The relay is set by simple true-false bools. Im sorry, but I am unable to share the VI. But it is also more of a theoretical question into the delay that is present when talking to DAQ boxes through USB, I guess.

 

 In NI MAX, where I set up the relay tasks, I can select various "Generation modes". "on-demand" and "hardware timed". How does this affect the speed of the digital outputs?

 

Thank you in advance,

 

Sincerely,

Peter


Viewing all articles
Browse latest Browse all 6878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>