Hi,
I am trying to read multiple digital status lines using the latest
DAQmx Base for Linux and it crashes whenever I try to collect the info
from my than one digital port. I am using the supplied
"readDigMultiplePorts.c" sample code which was bundled in the DAQmx
Base installation.
line 42: char chan[] = "Dev1/port0:2";
line 50: DAQmxErrChk (DAQmxBaseCreateDIChan(taskHandle, chan, "",
DAQmx_Val_ChanForAllLines)); <-- crashing on this line giving
me a simple "DAQmxbase Error: -1" output at runtime
The code runs fine if I only using one port alone, ie....
line 42: char chan[] = "Dev1/port0";
I have also tried defining multiple ports like the following without success either...
line 42: char chan[] = "Dev1/port0, Dev1/port1";
I am using RH Enterprise WS3 and running off a fresh install. My DAQ board is an M Series model, PCI-6229.
Any suggestions?
JM
Message Edited by j.m.m on 08-19-2005 12:48 PM