Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulsing with counter pin on PCI 6034E.

I have a couple of questions involving programming the counter 0 pin to put out the desired TTL signal on the 6034E. The application is to generate pulses to control an electron gun. The Counter 0 pin provides the TTL signal that chooses whether the gun is outputting or not. In addition to pulses, we'd like to achieve DC 0V and 5V so that the gun can be on or off in DC mode. 0V is gun off, 5V is gun on.
1. Is it possible to get 5V out DC? I tried using "Pulse Train.vi" with the duty cycle set to 0 and the pulse polarity at low. My thinking was that the OFF state would then be 5V. It is, but there is a ~500 ns 0V pulse approximately every 10 ms. Likewise, can I achieve 0V DC or will there always be a short 5V pulse? I have a
ttached the vi I'm trying to use to do this. It is a sub vi of the larger application that runs the power supply.

2. Again using "Pulse Train.vi", there is an input on the vi for #pulses with 0 indicating continuous. However, when I wire a positive integer to this node, the pulses are still continuous. I can generate an integer number of pulses with the example "Finite Pulse Train(DAQ-STC).vi" but how would one use the #pulses node on "Pulse Train.vi"?

Thanks, Peg
0 Kudos
Message 1 of 4
(2,697 Views)
Peg,

With regards to question #1, you could take advantage of the ability of a pulse train generation to be gated to achieve a static HIGH or LOW counter output. Below, I have attached a quick example demonstrating this functionality. For this example to function correctly, the counter's gate must be low.

With regards to question #2, you must physically wire the output of counter 0 to the gate of counter 1 to achieve a finite pulse train with this VI. The Finite Pulse Train (DAQ-STC).vi example internally routes this connection.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 4
(2,697 Views)
Spencer, Thanks for your help. Unfortunatley, I cannot open your example; an error message says it was created in LabView6.1 and I have 6.0.
Peg
0 Kudos
Message 3 of 4
(2,697 Views)
No problem. I have attached a LabVIEW 6i version of the example below.

Spencer
0 Kudos
Message 4 of 4
(2,697 Views)