When I try to check the channel type of a digital channel (using the ChanType DAQmx Channel property) after setting the data transfer method to DMA (using the DO.DataXferMech DAQmx Channel property) I get the error:
Error -200218 occurred at Property Node DAQmx Channel (arg 1) in DMA bug demonstration 2.vi
Possible Reason(s):
Data Transfer Mechanism must be Programmed I/O when not using hardware timing.
Set Data Transfer Mechanism to Programmed I/O, configure your sample clock timing, or set Sample Timing Type to Sample Clock.
Conflicting Properties
Property: SampTimingType
Corresponding Value: On Demand
Property: DI.DataXferMech
Corresponding Value: DMA
Task Name: _unnamedTask<1>
At no point have I set the Sample Timing Type to "On Demand." This problem does not occur when I perform the same set of operations on an analog channel, nor when I either set the data transfer method to DMA or check the channel type alone. I've attached a VI which demonstrates the problem (LabVIEW 7.1, DAQmx 7.4). Is this a bug in DAQmx? Am I actually doing something illegal? Thanks.
Jason Rolfe