07-18-2012 08:47 AM
Hi,
I am using NI USB 6211 DAQ. I am using cent OS (Linux r45-lin 2.6.18-308.8.2.el5 #1 SMP Tue Jun 12 09:58:12 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux).
I have downloaded and installed the nidaqmxbase-3.5.0.iso base driver on my cent os linux distribution. When I am creating the DAQ task with DAQmxBaseCreateTask e.g.
if (DAQmxFailed(r = DAQmxBaseCreateTask("task1", &m_tH)))
This DAQmxBaseCreateTask returns -1 lot of times. What does this error code represent. I could not find this error in reported NI errors list.
Regards,
Dinky
09-25-2012 03:36 PM
I believe that the support for 64-bit (x86_64) builds of RHEL (and clones) in the nidaqmxbase version 3.5.0 and 3.6.0 packages only covers the driver support for 64-bit kernels. For program development, the packages still only include 32-bit libraries, so you need to compile into 32-bit code on 64-bit systems (using the -m32 option). See
for details, and scroll down to the section "4.1.6.6. Using 32-bit compilers on a 64-bit host". These notes are for RHEL6. For RHEL5 and clones, you'll need to install the i386 builds of the libraries, rather than i686 builds, to get 32-bit library support for development.