Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems trying to get PCI-6254 working under CentOS 5.4

As the subject of this post suggests I'm having a few problems trying to get my PCI-6254 working under CentOS 5.4. I picked CentOS because RHEL is a supported distribution and CentOS is a direct derivative of RHEL.

 

Anyway, I install the 8.0.1 driver and we able to run:

 

nilsdev and got the following output:

 

NI PCI-6254: "Dev1" 

 

 

So I'm pretty sure I've got it installed. When I try to run the example programs located under:

 

/usr/local/natinst/nidaqmx/examples

 

 

I keep getting the following error:

 

$ ./Acq-IntClk 
DAQmx Error: The software has entered an unknown state - usually as a result of a cascade failure induced by an unexpected series of state inputs. The operation could not be completed as specified and you should immediately terminate all further transactions if you are able to do so.
Task Name: Example Test

 I'm trying to run the example located under 

 

/usr/local/natinst/nidaqmx/examples/ansi_c/AnalogIn/MeasureVoltage/Acq-IntClk

 And with some carefully placed printf's I've figured out that the error is being generated by the following line:

 

DAQmxErrChk (DAQmxCreateTask("Example Test",&taskHandle));

 I've been searching all over these forums and the internet for hours and can't figure out what I'm doing wrong. Any help will be greatly appreciated.

 

 

 

0 Kudos
Message 1 of 2
(2,707 Views)

SELinux was causing the problem.

 

I changed /etc/sysconfig/selinux to the following:

 

 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#	enforcing - SELinux security policy is enforced.
#	permissive - SELinux prints warnings instead of enforcing.
#	disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#	targeted - Only targeted network daemons are protected.
#	strict - Full SELinux protection.
SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

 and the problem was fixed.

 

0 Kudos
Message 2 of 2
(2,677 Views)