Discussion:
Generate Pulse train and delayed pulse train 6071E
(too old to reply)
Chris S.
2008-07-29 15:40:05 UTC
Permalink
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
Jaime F
2008-07-30 21:10:05 UTC
Permalink
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.&nbsp;<a href="http://zone.ni.com/devzone/cda/epd/p/id/5090" target="_blank">NI-DAQmx: Generating a 40
MHz Pulse Train with Counter Output</a> is another example that might give you a hand. <img src="Loading Image..."> I hope it helpsMessage Edited by Jaime F on 07-30-2008 03:55 PM


forum11.png:
http://forums.ni.com/attachments/ni/170/345281/1/forum11.png
Chris S.
2008-08-12 19:10:07 UTC
Permalink
Okay,
&nbsp;
Here is what I have but it doesn't work.
&nbsp;
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.&nbsp; I tried doing it with the code below but it says that operation could not be complete the specified resource is reserved.&nbsp; This must be possible with labview 8.5 and a 6071E card but going about it?&nbsp;
&nbsp;
Any help is appreciated
Thanks
Chris


two-outputs1delaychangeable.vi:
http://forums.ni.com/attachments/ni/170/348752/1/two-outputs1delaychangeable.vi
Jaime F
2008-08-13 16:10:06 UTC
Permalink
Hi Chris,


If I&rsquo;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.&nbsp; 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.&nbsp;
&nbsp;
I hope it helps,&nbsp;


pulse.png:
Loading Image...


40mhz_pulse_train.vi:
http://forums.ni.com/ni/attachments/ni/170/349018/2/40mhz_pulse_train.vi
Continue reading on narkive:
Loading...