PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

NIDAQmx aborts with "pure virtual method called" when calling DAQmxStartTask

Solved!
Go to solution

 

I am running on Fedora-15 Linux, and am seeing a "pure virtual method called" message in the system log when calling DAQmxStartTask

 

Has anyone encountered this ?

 

The stack trace is here:

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb423eb70 (LWP 11204)]
0xb770f424 in __kernel_vsyscall ()

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb423eb70 (LWP 11204)]
0xb770f424 in __kernel_vsyscall ()
(gdb) where
#0  0xb770f424 in __kernel_vsyscall ()
#1  0x456b90ef in raise () from /lib/libc.so.6
#2  0x456baa25 in abort () from /lib/libc.so.6
#3  0xb677c287 in ?? () from /usr/local/lib/libnidmxfu.so.1
#4  0xb677c2d4 in ?? () from /usr/local/lib/libnidmxfu.so.1
#5  0xb677c4c7 in ?? () from /usr/local/lib/libnidmxfu.so.1
#6  0xb666d4de in ?? () from /usr/local/lib/libnidmxfu.so.1
#7  0xb67da514 in nNIMSAI100::MAPIControl130(nNIMSAI100::tTask*, unsigned long, unsigned long&, nNIMDBG100::tStatus2&) () from /usr/local/lib/libnidmxfu.so.1
#8  0xb69be31e in DAQmxTaskControl () from /usr/local/lib/libnidaqmx.so
#9  0xb69be3f5 in DAQmxStartTask () from /usr/local/lib/libnidaqmx.so
#10 0xb69fc3fe in CMdlNI6509::readPort(unsigned short, unsigned char*) ()
   from /var/www/html/tsw/runtime/devices/libDevDigio/libDevDigio.so
....

 

 

What's installed on the system is:

 

nidaqmxcfgi-1.4.0-f0.i386
nidaqmxef-1.4.1-f3.i386
nidaqmxcapihelp-1.6.1-f0.i386
nidaqmxcapii-1.6.1-f0.i386
nidaqmxcapiexmp-1.6.1-f0.i386
nidaqmxswitch-1.6.1-f0.i386
nidaqmxhelp-1.0.2-f0.i386
nidaqmxinfi-8.0.1-f0.i386

 

0 Kudos
Message 1 of 2
(5,597 Views)
Solution
Accepted by topic author kenstern

 

If an output port on the DigIO is used as an input, that is the behaviour if StartTask is called.

 

Turns out we were not trapping the error from DAQmxCreateDIChan  properly.

0 Kudos
Message 2 of 2
(5,594 Views)