Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

analog signal generation & measurement

Solved!
Go to solution

Hi

 

When I try to run this circuit below, it works fine

 

Read & write signal.JPG

 

 

But when I try to combine the circuit into one loop just like in the attachement below, the error message pop out 

 

error msg.JPG

 

Why is that happen? Is that possible I want to combine the circuit in one loop?

 

Thanks

 

 

0 Kudos
Message 1 of 2
(3,181 Views)
Solution
Accepted by topic author yusof

Hi Yusof,

 

Good post. The problem you're running into here is that your write loops has to execute at least 4 times/second (20kSamples/sec / 5kSamples/iteration) while your reading loop has to execute 10 times/second (10kSamples/sec /1kSamples/read). The DAQmx write should determine the loop speed because it won't write until there is space in the write buffer. To do this, change the samples to read to -1. This tells labVIEW to read all available samples in the buffer. 

 

Best,

Sean Ferguson
Application Engineering Specialist | RF and Reconfigurable Test
0 Kudos
Message 2 of 2
(3,160 Views)