Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to put the analog value as constant to use it later in another loop

 

 

 

Hi,
i am trying to implement this flow chart 

sss.jpg

but when i implement the attached VI i got this error 
200279.jpg

can i know the problem please?
thanks 

 

 

 

0 Kudos
Message 1 of 4
(3,767 Views)

I think your problem is in the DAQ Assistant VI. You are telling it to read 1000 samples/sec continuously, but you are only reading 100 samples at a time. If you open the DAQ Assistant and click the run arrow, does that work? Or do you get the same error? As the error indicates, you are acquiring data on the cDAQ faster than you are removing that data from the cDAQ buffer and reading it into your program. Eventually the cDAQ buffer overflows.

0 Kudos
Message 2 of 4
(3,759 Views)

i think the problem was because i was activating the highlight execution button
i dectivated it and now it is working 
thanks 

0 Kudos
Message 3 of 4
(3,755 Views)

@Eng.Tareq wrote:

i think the problem was because i was activating the highlight execution button
i dectivated it and now it is working 
thanks 


Yep, that would definately do it.  Slowing down the loop at all will cause this kind of error.  I often see this error due to trying to save the data to disk, which is a slow process.  Highlight Execution slows everything down to a crawl, so that will definately cause the buffer overflow error.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,733 Views)