Hi,
Could someone please explain what error -200230 (DAQmxErrorNULLPtrForC_Api) means. I am using the matlab DLL interface with the NI-DAQmx drivers on a PCI-6229 M-Series card.
I want to read counter values from a channel created with DAQmxCreateCICountEdgesChan however this error shows up and I cannot understand why.
I am calling the function using the method shown below, can anyone see any problems?
DataPtr = libpointer('uint32Ptr',[]);
reserved = libpointer('uint32Ptr',[]);
[status Data reserved] = calllib('DAQmxLib','DAQmxReadCounterScalarU32',TaskHandle,10,DataPtr,reserved);
There are no errors during task and channel creation, only when I try to read the value.
Thanks
Luke