Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

mac os x daqmx base error -1073807346

hi there.  i have a ni usb-6009 and am trying to write an application using the NI DAQmx base library.  when i call DAQmxBaseReadAnalogF64, i'm getting error -1073807346.  i have been unable to locate the error glossary.

i've gone over the sample program most similar to my application (contAcquireNChan.c) and it seems to me that what i'm doing is comparable (although obviously i'm not getting something right).

any advice appreciated.

thanks,
jacob rothstein
psychology department
reed college
0 Kudos
Message 1 of 4
(2,786 Views)

Hi Jacob,

Did that error come with any text?  Most commonly, it means that a VISA session could not be opened.  NI-DAQmx Base uses VISA, but I'm not sure why you may be getting this error.

Have you verified that your USB-6009 shows up in the List Devices utility?  Also, can you run that example program you referenced without any errors?  If so, can you point out any differences between your code and the example program in terms of the DAQmx Base programming?

Regards,

Laura 

0 Kudos
Message 2 of 4
(2,779 Views)
thanks for the prompt reply!

the error did not come with any text, which is why it's particularly confusing to troubleshoot.  my usb-6009 does, in fact, show up in lsdaq, and it works fine with the example programs, so the problem must be on my end.  part of the trouble is likely that i'm trying to wrap the program into a objective-c (cocoa) program.

the only changes i made to the daqmx calls are that i changed the voltage max and mins (from ±10v to ±5v) and the channel char[] from "Dev1/ai0, Dev1/ai1" to "Dev1/ai0" since i only need the first channel at the moment.  i accordingly sized the data array to the bufferSize, not twice the bufferSize.

thanks,

jacob rothstein
psychology department
reed college
0 Kudos
Message 3 of 4
(2,768 Views)
Hi Jacob,

Could you follow the instructions in here:
Getting Started with NI-DAQmx Base for Linux and Mac Users

Let us know where things start to break down for you.

Regards,
0 Kudos
Message 4 of 4
(2,751 Views)