I am using DAQmxBaseCreateDIChan from C++ code on Macintosh OS X.
I read that the lineGrouping parameter must be set to DAQmxBase_Val_ChanForAllLines. If I were using NI-DAQmx on Windows, I would have a choice of DAQmxBase_Val_ChanForAllLines or DAQmxBase_Val_ChanPerLine.
1) Does this mean that using NI-DAQmx Base it is possible to use only whole ports, not individual lines?
2) When using NI-DAQmx on Windows, if I use DAQmxBase_Val_ChanPerLine, can I use DAQmxReadDigitalScalarU32 to read the state of lines on the task, which may be some random sub-set of the lines in the port?
3) I presume that whatever is true for reading digital ports would be true also for writing, using the appropriate write versions of the functions I have mentioned here.
Thanks to all of you who are so generous with your time!
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com