10-05-2009 07:21 AM
10-06-2009 07:32 AM
Hi Giakko,
let me check if I understood correctly: you wish to generat a 0-5V pulse train with a 100 kHz frequency that can be started and stopped by pressing a button? If so, start from the following example:
C:\Program Files\National Instruments\LabVIEW 8.6\examples\DAQmx\Counter\Generate Pulse.llb\Gen Dig Pulse Train-Continuous.vi
Once you checked that the purpose of this example si what you want to do, then add the start/stop functionality by first enclosing the DAQmx Start Task function into a case structure driven by your push botton. Once the generation is started you can control the end of pulse generation by connecting the wire out of the push button control directly to the stop condition of the while loop you see into the example. For example, if the button has been pushed when you started the generation, it assued a TRUE value. So you will set the while loop to "continue if true" condition in order to stop the loop when the button will be set again to FALSE value.
Hope this helps,
Fabio