Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Single 5 volt pulses with a PCI-6221 card

Hello,

I am currently running Labview 8.5.1 and have recently purchased a PCI-6221 card.

 

I am trying to figure out the best way to generate single 5 volt pulses.  What I mean by single is that after the 5 volt pulse is generated, I will have another VI perform a task that lasts in the neighborhood of 0.5 to 1.5 secs.  My pulses need to be about 50 us.  I would then need to be able to generate the pulse again after the other VI performs its task.

 

I have searched the discussion board and have found some helpful example VIs.  Specifically "Generating Digitals Pulse.vi" and "Gen Mult Volt Updates-Int. Clk.vi".  However, I'm still not sure which one would be a good place to start for my application.

 

Lastly, which pin number would I actually have to wire into to access the 5 V pulse?

 

Thanks for you help,

Mike 

0 Kudos
Message 1 of 5
(3,394 Views)

The best way will be to use counter to generate a pulse. Check this example VI.

 

C:\Program Files\National Instruments\LabVIEW 8.5\examples\DAQmx\Counter\Generate Pulse.llb\Gen Dig Pulse.vi 

 

the pulse will be generated at the counter output line. if you are using ctr0, then CTR 0 OUT (Pin 2 for 68-pin PCI 6221 card). Ground will be DGND.

 

You can call this VI multiple times to gnerate pulse after completion of the other VIs.

Message Edited by kikiduu on 01-17-2009 12:47 PM
------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 2 of 5
(3,385 Views)

Thanks kikiduu.

 

The Gen. Dig. Pulses. vi does not have any front panels for controlling pulse amplitude.  Is this because the pulse that is generated is always a specific voltage and can not be changed?  Also, is the standard pulse a 5 volt pulse?

 

Regards,

Mike

0 Kudos
Message 3 of 5
(3,360 Views)

UW_Mike wrote:

Thanks kikiduu.

 

The Gen. Dig. Pulses. vi does not have any front panels for controlling pulse amplitude.  Is this because the pulse that is generated is always a specific voltage and can not be changed?  Also, is the standard pulse a 5 volt pulse?

 

Regards,

Mike


Mike you are right. The Gen Dig. Puls.vi uses counter to generate pulses. So the output voltage in this case is 5V (TTL) and you cannot vary this.

 

------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 4 of 5
(3,351 Views)
Thanks again for your help.  I am now working on programming while using the Gen. Dig. Pulse.vi as a starting point.
0 Kudos
Message 5 of 5
(3,337 Views)