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