Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

memory allocation problem

I am doing continuous data acquisition for 7 channels.  The sampling rate is 100000 Hz and 1000 points each channel.  I tried to allocate buffer for 1MSample for each channel (as recommended) so I allocated 7 MSample.  However, when I ran the application, it said "One or more memory pages in the specified logical buffer could not be locked into physical memory.  The operation could not be completed as specified".  My PC has 1GB of RAM.  Anyone has any ideas what the problem is?  I will really appreciate your help.
 
Yajai
0 Kudos
Message 1 of 2
(2,852 Views)
Hello Yajai,

Do you get this behavior if you let the driver automatically configure the buffer for you?  The driver will automatically allocate a buffer based on the sample rate and number of samples to read, and you usually don't have to do any extra configuration.  If you want, you can also post your code and we can take a look at it.
Eric
DE For Life!
0 Kudos
Message 2 of 2
(2,838 Views)