Is it possible to generate a single pulse in a counter output channel with NI-DAQmx?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I want to generate a single pulse in a counter output channel with NI-DAQmx:
everything works fine for a continuous pulse with a given duration and also for a 2 scan generation:
start(dqPulseOut,"NumScans",2);
However, "NumScans" cannot be set equal to 1 and when I try:
write(dqPulseOut,1)
I get the error message: "Use start to initiate operations when counter output channels are configured".
Looking at the NI-DAQmx documentation, I found:
"When generating pulses, you can generate either a single pulse, a finite pulse train, or a continuous pulse train"
i.e., it looks possible from the NI-DAQmx point of view.
So, does anyone know if it is possible to perform a single pulse generation using a counter?
Thank you very much for your time!
0 comentarios
Respuestas (1)
chrisw23
el 27 de Sept. de 2022
"You can accomplish this same behavior with a single counter is by setting up a continuous pulse output task with a start trigger and a pause trigger."
..maybe this helps
0 comentarios
Ver también
Categorías
Más información sobre Data Acquisition Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!