To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example is to demonstrate how to overcome the challenge of the generation of finite signal using the E or M series
Description:
The challenge of using the E or M series is generating a finite signal with its counter. One of the way to overcome this is by leveraging the event structure of the signal pulse generation that would eventually stop the the while loop used in the counter of the DAQ Hardware
Steps to Implement or Execute Code:
To implement this example:
To execute this example:
Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 9.0 or compatible
Hardware
cDAQ with C series Counter Input Module
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Nice code!
Hey! This code is great, but I found when you actually run in on a device if comes up with...
Error -200966 occurred at Register For Events in ...
Possible reason(s):
Every N Samples Acquired Into Buffer Event registration has failed because the event is already registered within the task.
Unregister the event before registering it again.
Task Name: _unnamedTask<E>
...
I think I've found a fix by making sure the task is stopped before trying to unregister the event.
Hey,
I wrote the following program trying to output a series of 1000 samples of pulses whose frequency is 250 (Variable) Device: USB X series (6353)\
I got an error: -201291: Pulse specifications cannot be written to a finite counter output task on this device.
I do not know what was wrong. This is to generate a finite no.of samples for the stepper motor control.
I want to write a finite no.of samples in order to control the stepper motor with a particular mentioned degree of rotation.