LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Pulse train and delayed pulse train 6071E

Hi
I have a 6071 E board with Labview 8.5 and I am trying to generate 2 finite pulse trains one needs the first one should have no delay and the second one should be just like the first but with an adjustable delay. 
 
I tried searching for examples with no luck
 
Chris
0 Kudos
Message 1 of 4
(2,950 Views)

Hi Chris,

Let me know if the screen shoot helps, you will find it by clicking on help->find example. Then the Counter Output create task VI the first one in most of the examples has an input for the delay. NI-DAQmx: Generating a 40 MHz Pulse Train with Counter Output is another example that might give you a hand.



I hope it helps


Message Edited by Jaime F on 07-30-2008 03:55 PM
Jaime Hoffiz
National Instruments
Product Expert
0 Kudos
Message 2 of 4
(2,932 Views)
Okay,
 
Here is what I have but it doesn't work.
 
To reiterate I need 1 counter pulse output lets say at 10 Hz continuous and I need a second counter output to trigger lets say every 5th pulse of the first counter 1 finite pulse that has a delay that would change every 5th pulse.  I tried doing it with the code below but it says that operation could not be complete the specified resource is reserved.  This must be possible with labview 8.5 and a 6071E card but going about it? 
 
Any help is appreciated
Thanks
Chris
0 Kudos
Message 3 of 4
(2,882 Views)

Hi Chris,



If I’m not mistaken, every time the loop goes around it will try to create a new task when the device is still reserved and you have not leared the task.  I ave attached a small code that generates the pulse like you are specified this might help ou get tarted. Couple of tips, I can see that you can easily generate a 1 Hz ignal, you can use the internal output of the ctr0 as the source of ticks for counter 1, count 5 ticks and generate a pulse, you can also elay ctr 1 an x amount of ticks. 

 

I hope it helps, 


Jaime Hoffiz
National Instruments
Product Expert
Download All
0 Kudos
Message 4 of 4
(2,868 Views)