08-25-2005 10:01 PM
08-25-2005 10:40 PM
08-26-2005 03:19 PM
Hi Nick,
Generally, pulse train generation is performed with a counter. It can also be done with digital lines but your DAQ board does not have hardware timed digital outputs, so you would only be able to output pulses on your digital lines as fast your while loop can iterate. Therefore, analog output might be your best choice. The example David referred you to is a Traditional NI-DAQ (Legacy) example. If you would rather use NI-DAQmx, there are many analog output examples in the Example Finder. You can find them by going to Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Generation.
Thanks,
Laura
08-26-2005 04:29 PM
08-29-2005 05:02 PM
Hello Nick,
In the example finder, there is an example called "Write 1 Pt to Dig Line.vi" that you could use. To create a pulse train, you would write a high and then low value in a while loop. The duty cycle will be completely software timed, and will depend on how much time you have between writing the high value and the next low value. The frequency will also be completely software timed and will depend on how you setup the timing of your while loop. Remember that windows is not deterministic and can interrupt LabVIEW whenever it wants so there will be a variation in the amount of time it takes your loop to iterate.