Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I generate two finite pulse trains using counters on PXI-6251

I'm trying to use Counter 0 and Counter 1 on the PXI-6251 to generate two finite pulse trains.  But, I get this error:   "The specified resource is reserved. The operation could not be completed as specified."  See attached example.
 
Inside the disabled box is what I'd like to run on both counters.  I stripped things down to creating the task, starting, and stopping.  I then started to add things to see what my problem was.  The timing VI seems to be what causes me issues but I don't know why. 
 
My end objective is two identical pulse trains with one delayed by 5us, which I figured would be easy to do in the initial delay.  I tried both in a single task and as separate tasks with no avail.
0 Kudos
Message 1 of 2
(3,405 Views)

Hi SirMutt,

Creating a finite pulse train requires two counters. What’s really happening is that one counter is creating a continuous pulse train while the other counter applies a finite pulse to “window” the pulse.

What you want to do is correlated DIO. I’ve done a search on our website for “correlated DIO” and have come up with a few resources. Hopefully that will help you get started.

Digital Output and Pulse Generation

Performing Correlated Digital IO with an M Series Device in LabVIEW

M Series Hardware-Time DIO with Counter Clock Generation

Mark E.
Precision DC Product Support Engineer
National Instruments

0 Kudos
Message 2 of 2
(3,386 Views)