09-01-2012 10:33 PM
Hello,
Trying to get my new ni9263 below are the steps:
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev1/ao0","",-10,10,DAQmx_Val_Volts,NULL)); // NI-USB 9263
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",SAMPLE_RATE,DAQmx_Val_Rising,DAQmx_Val_ContSamps,SAMPLE_SIZE));
DAQmxErrChk (DAQmxCfgOutputBuffer(taskHandle, OUTPUT_BUFFER_SIZE));
DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));
DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle, DAQmx_Val_Transferred_From_Buffer, EVERY_N_SAMPLES, 0, EveryNSamplesCallbackAO, NULL));
DAQmxSetWriteRegenMode(taskHandle, DAQmx_Val_DoNotAllowRegen);
//Then i do my write code and start the task
when i step through my code my application crashes when it gets to DAQmxRegisterEveryNSamplesEvent with the following error
DAQmx Error: DAQmx Every N Samples Transferred from Buffer Event is not supporte d by the channel types
Status Code: -200980
Any idea ?
Solved! Go to Solution.
09-04-2012 11:01 AM
Greetings;
Before anything, what kind of carrier would you happen to be using with the NI-9263?
If it is a carrier such as the NI USB 9162, that may be the crux of the issue, as developped on the following article:
http://digital.ni.com/public.nsf/allkb/250113A02E07E332862574170058A928?OpenDocument
Should that be the case, it would be the fact that 9162 lacks Onboard FIFO necessary to support this event.
Cordially,
Simon Perez
09-04-2012 12:26 PM
Thanks for the response.
I am using usb-9162. What is a good altarnative i can use my NI9263 with.
-Thanks
09-05-2012 04:15 PM
Greetings;
When you mention alternative, do you mean an alternative sleeve or chassis or an alternative in the code?
If its a matter of code, then you will probably need to change your software architecture to fit the capabilities of the setup. In order to avoid using the FIFO and thus have the problem that you are encountering, can you avoid needing to register that event? A couple of examples on different architectures can be found on the following link:
http://www.ni.com/white-paper/6999/en
Cordially,
Simon Perez