08-13-2007 05:05 PM
08-14-2007 01:34 PM
Hi Charlie,
First, the Write Dig Chan-Int Clk-Dig Start.vi isn't
supported by the 6221. It is only supported by the 6533, 6534, 6536, and
6537 because it uses a digital start trigger. I would recommend using the
write digital channel.vi (Help » Find Examples » Hardware Input and Output »
DAQmx » Digital Generation). In addition, the only way to generate a
pulse train with a digital out is to use software timing to change the output
from high to low. This is going to be much less precise than hardware
timed pulse train, because it is dependent on your computer, operating system,
other programs running, etc. In addition, the speed of your pulse train
will also be constrained by how fast your loop can run in LabVIEW. If you
want to implement a software timed pulse train, I would recommend using a while
or for loop (for loop for a finite number of pulses) and use the iteration
count to cycle between a case structure that turns the digital output high and
low. For example, on even iterations (0,2,4,6,8,etc.) of the loop you
cycle to case 0 which writes the digital output high and on odd iterations
(1,3,5,7,9,etc) you cycle to case 1 which writes the digital output low.
I hope this helps,
Paul C.
08-14-2007 02:52 PM
08-14-2007 05:23 PM