Programming instructions

Chapter 24 Generating a Square Pulse or Pulse Trains
LabVIEW Data Acquisition Basics Manual 24-4
©
National Instruments Corporation
number. If you load the count register with an odd number,
phase 1
will be
longer than
phase 2
by one cycle of the counter’s CLK signal.
Now that you know the terms involving generating a single square pulse or
a pulse train, you can learn about the LabVIEW VIs, and the physical
connections needed to implement your application.
Generating a Single Square Pulse
When do you need to generate a single square pulse? A single pulse can
be used to trigger analog acquisition or to gate another counter operation.
A single pulse can also be used to stimulate a device or circuit for which
you need to acquire and test the response.
DAQ-STC, Am9513
Figure 24-5 shows two ways to connect your counter to generate a square
pulse. In the Basic Connection, the edges of the internal SOURCE signal
are counted to generate the output signal, the GATE is not used (software
start) and the pulse signal on the OUT pin gets connected to your device.
The Optional Connections use an external SOURCE from your device and
is gated by your device. You can use either or both of these options.
Figure 24-5.
Physical Connections for Generating a Square Pulse
SOURCE
GATE
OUT
Count Register
Your Device
SOURCE
GATE
OUT
Count Register
Your DeviceYour Device
Basic Connection
Optional Connections