Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to allocate Onboard DSP memory

I am trying to allocate DSP memory using NI-Daq 4.9 for AT-DSP2200 using
the
function call
err= Ni_daq_Mem_alloc (handle,elementsize,noofelements,3,2);

where handle,elementsize are short type.
noofelements is of unsigned long type.
3 indicates i want to allocate dsp memory,an array of short type.

2 indicates my device number.

In doing this step i am getting err to be Zero indicating success.

But later when i pass the handle recieved in previous step to any of the
Ni_daq
memory functions like
Ni_daq_memcopy i am getting the error code(-10560) indicating
invalidDSPhandleError.

Why is this happening? I tried locking the handle obtained and passing it
to
some other Ni_daq memory function.Still it is giving t
he same problem.

Please help me in solving this problem.

Thanking you

Regards
Jayalaxmi
0 Kudos
Message 1 of 2
(3,001 Views)
Here is a list of functions you can use memory handles obtained from NI_DAQ_Mem_Alloc:

Align_DMA_Buffer
DAQ_DB_Transfer
DAQ_Monitor
DAQ_Op
DAQ_Start
DIG_Block_In
DIG_Block_Out
DIG_DB_Transfer
GPCTR_Config_Buffer
Lab_ISCAN_Op
Lab_ISCAN_Start
MDAQ_Get
MDAQ_Setup
SCAN_Op
SCAN_Start
WFM_DB_Transfer
WFM_Load
WFM_Op
0 Kudos
Message 2 of 2
(3,001 Views)