Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to check the buffer content during running program

Dear Sir:

I am using DAQmx configure input buffer in my program to create an input buffer. However, I would like to know what would be the best value for my to set up my input buffer size. Therefore, I would like to check the input buffer content while running program. I have several issues would like to figure out.
1. Does anyone have any idea about how to optimize set up the input buffer size and how to check the buffer content or how much memory is used while running program?
2. If this input buffer is full, the next coming data would be overwritten or just accumulated in other hard driver memory until the whole memory space overflow?
3. Is this input buffer size is direct memory access, which take some hard driver space or other memory space?

Thanks for your help.

Best Regards.

Fred.
0 Kudos
Message 1 of 4
(3,288 Views)
Hello Fred,

"1. Does anyone have any idea about how to optimize set up the input buffer size and how to check the buffer content or how much memory is used while running program? "
Normally, DAQmx will automatically set the input buffer size based on the number of channels being acquired and the rate of acquisition. Please see the DAQmx Help Manual for details on how this is done. This manual is very helpful in answering questions like this and can be found under Start >> All Programs >> National Instruments >> NI-DAQ >> NI-DAQmx Help.

"2. If this input buffer is full, the next coming data would be overwritten or just accumulated in other hard driver memory until the whole memory space overflow?"
If the buffer is full, the next incoming sample would overwrite the first sample in the buffer resulting in an error.

"3. Is this input buffer size is direct memory access, which take some hard driver space or other memory space?"
When you create an AI buffer, it is allocated in the PC's RAM, not the harddrive.

I hope this helps. Let me know if you have any further questions.

Regards,
Sean C.
Message 2 of 4
(3,280 Views)
Dear sir:

Thanks for your response. This helps me a lot.

Thanks
0 Kudos
Message 3 of 4
(3,268 Views)

exuse-me SIR SHH274,

but what do tou controller a data in the buffer during the acquisition??

thanks in advances for the future help, 

0 Kudos
Message 4 of 4
(2,946 Views)