Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Linux OS crash when DaqMx cleanup code is not called

I hope this is the right place to ask this question - I could not find a forum specifically for DaqMx.

Anyway, I am using DaqMx 8 on top of linux.  The linux distro is Redhad 9 with a Vanilla 2.4.26 kernel (from kernel.org)  I have run into a problem with one of the example programs:  /usr/local/natinst/nidaqmx/examples/ansi_c/AnalogIn/MeasureSlowVaryingSignal.
Now, there is actually a bug in this program that keeps the cleanup code from
running (it asks you to press ctl-c to break out of an infinite loop).  The
problem is that, at least on my system, when the ctl-c is pressed and the
program exits, the OS crashes.  Now since there is no handler for ctl-c, the program exits without running the cleanup code.

I modified the program so the loop is a for loop with an end rather than an infinite while loop, and things work out OK.

Now I know it's not a good thing not to clean stuff up, but it shouldn't cause an OS crash.

So, I guess the question is: does this occur of those of y'all running other kernels? 

Btw, the board I am using is a PCI 6229.
0 Kudos
Message 1 of 2
(6,909 Views)
Hello ScoobyDoo,

The RedHat 9 distribution is not supported with the DAQmx 8 driver especially with a modified the kernel. DAQmx is supported on the RedHat WS3, SUSE LINUX Professional 9.2 and 9.3, and Mandrakelinux 10.1 Official and Mandriva Linux 2006.

In the future, most data acquisition questions - driver and device questions - are posted to the Multifunction DAQ forum. 
Micaela N
National Instruments
0 Kudos
Message 2 of 2
(6,896 Views)