kalganian
2008-01-04 16:40:11 UTC
Hi, I'm trying to do triggered digital acquisition of a 10 bit bus using the USB NI6251 board using the Microsoft Visual C API. Using the NI provided example:National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital\Read Values\Read Dig Port-Ext Clk\This works great except if I try to read from anything except Port 0, i get the error:
DAQmx Error: Measurements: Selected lines do not support buffered operations.Ensure only lines that support buffered operations are being used in the task. If using change detection, the task must be changed to non-buffered hardware timed single point to support these lines.Device: Dev1Physical Channel: port1/line0Task Name: _unnamedTask<0>Status Code: -201062
I guess only Port 0 can be read using the buffered operation. But is there any way to read Port 1 or Port 2 using an external trigger? Using the Visual C API, how do I change the task to a 'non-buffered hardware timed single point'?I'm guessing I need to change the function DAQmxCfgSampClkTiming in the NI example to some other timing function. Thanks,Regards,Kartik
DAQmx Error: Measurements: Selected lines do not support buffered operations.Ensure only lines that support buffered operations are being used in the task. If using change detection, the task must be changed to non-buffered hardware timed single point to support these lines.Device: Dev1Physical Channel: port1/line0Task Name: _unnamedTask<0>Status Code: -201062
I guess only Port 0 can be read using the buffered operation. But is there any way to read Port 1 or Port 2 using an external trigger? Using the Visual C API, how do I change the task to a 'non-buffered hardware timed single point'?I'm guessing I need to change the function DAQmxCfgSampClkTiming in the NI example to some other timing function. Thanks,Regards,Kartik