Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

non buffered hardware timed single point acquisition

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: Dev1
Physical Channel: port1/line0

Task 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
0 Kudos
Message 1 of 4
(5,215 Views)

Hi Kartik,

The reason you are receiving this error is because you are trying to perform a timed operation on a port which does not support this. M-Series DAQ cards like your USB-6251 only support hardware timed digital acquisition on Port 0. This can be seen on page 7 on the User Manual. Buffered acquisition, by definition, is hardware timed and therefore why the error message indicates this is not possible on Port 1. Changing the method of acquisition to non buffered hardware timed single point would still return an error due to the timing.

You will not be able to use an external clock with Ports 1 and 2 because no timing circuit is available. Static, or software timing, is possible on these ports, but then your last two lines would not be correlated with the 8 lines in Port 0. I would suggest looking at the USB-6254 or 6259, each of which has 32 lines in their Port 0.

I hope this clears things up,

Mallori M
Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
Message 2 of 4
(5,179 Views)

Hello,

 

I get the same error message:

 

Possible reason(s):

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: Dev1
Physical Channel: port2/line6

Task Name: _unnamedTask<CE5>

 

This appears when I try to synchronize my digital output (port 2/ line 6) with my analog output signal. I´m using NI PCIe-6343 with Labview. Has this error here the same reason and how can I circumvent it? Thanks!

0 Kudos
Message 3 of 4
(3,722 Views)

Hi Dschoenk,

 

I would recommend starting a new thread for this question so you’ll get more visibility. This thread is eight years old and also referencing a different piece of hardware and a different task.

 

When you start the new thread, I would include how you’re trying synchronizing the digital outputs with the analog outputs. Is the digital output triggered by an analog voltage level? Are you trying to start the outputs at the same time? The more information you can provide, the better.

0 Kudos
Message 4 of 4
(3,709 Views)