Discussion:
Does contwritedigport-ctrclk-cdaq.vi work with usb 6229?
(too old to reply)
vinoth002
2007-06-19 04:10:09 UTC
Permalink
Hi Michael,
First of all, thanks for replying. I seem to have been a bit confused but your reply has made things clearer. I do not want to output a single sample, all I want is to know what pattern will give me a pulse. I want only one signal. As regards your first question, I need to be able to change the frequency on the fly with a control for number of pulses generated ie finite samples.So now can you tell me how to modify the example contwritedigport-ctrclk-cdaq.vi for the above purpose? The goal is to generate a specified number of pulses whose frequency should be variable.The ultimate aim is to control a servomotor.
Also, will the example work for USB 6009?
Thanks once again,
Vinoth
 
MickeyD
2007-06-19 22:40:10 UTC
Permalink
Hi Vinoth,

The USB 6009 does not have the ability to perform correlated DIO.  Its
digital ports are static only, so this example will not work with that
device.  It will work fine with

With the example code you would want to do two things to change how the waveform is being written.

It uses an integer to write to the digital lines, but we simply want to
send a single digital line.  I would create my waveform with the
following setup.


DigitalWaveform.JPG:
Loading Image...


countsetupscreenshot.JPG:
Loading Image...
Loading...