LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best method/practice to run two loops (read + write) simultaneously in sync

Solved!
Go to solution

Thanks, this did sound really interesting.

I'm a little new to counter tasks, but I'll try it, thanks. 

0 Kudos
Message 11 of 14
(795 Views)

kudos Altenbach and Ben, I think you both had the same solution (?). I'll rewrite the program and post it here if it looks reasonable.

 

Thanks!

Message 12 of 14
(788 Views)

Hello,

 

 

I'll attach the code I made to try this out (a read loop which tkaes an average at ~100 Hz and a write loop which writes ~10 Hz). It's basically two DAQmx examples running together.

How do I start both loops running on the same clock?

 

Also, I noticed the DAQmx 'Timing' task doesn't work on the analogue output of my USB-DAQ 6008.

 

 

Thanks,

Jeff

0 Kudos
Message 13 of 14
(755 Views)

My last Vi was crashing, here is a more stable version.

0 Kudos
Message 14 of 14
(738 Views)