To download NI software, including the products shown below, visit ni.com/downloads.
To execute this example:
Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible
Hardware
cDAQ with C series Counter Module
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
This example may not work if the DAQmx read starts after the pulse is generated. To make sure the read is ready, a DAQmx start VI should be placed before the DAQmx read. This start must also begin before the DAQmx start of the pulse output task, so an additional sequence frame may need to be used. The frame should be placed at the beginning of the structure and the DAQmx start for the read task should be placed in this frame. This will ensure that the read task is started before the pulse task.
Fixed.
I tried running this VI with my usb 6211 and received the following error message when I have 1 pulse per channel:
Error -200474 occurred at Ping Sensor85.vi
Possible reason(s):
Specified operation did not complete, because the specified timeout expired.
Device: Dev1
Task Name: _unnamedTask<28>
I'm certain that I have the circuitry right, refer to the image below if I happen to have something wrong. Also, this program is set to run just once correct? How can I have this run continuously? I know how to do this from a microcontroller stand point but not so much from LabVIEW.