01-16-2009 04:42 PM
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
01-17-2009 12:46 PM - edited 01-17-2009 12:47 PM
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.
01-20-2009 05:16 PM
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
01-21-2009 03:15 AM
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.
01-21-2009 10:33 AM