07-11-2012 09:31 AM
I need to use the daqmx functions to generate a waveform. The waveform specifications...
Square wave...min voltage 5V, max voltage 8V...50% duty cycle...2kHz frequency...run continuously.
What daqmx functions do I need to use to generate this square wave? If this has been covered in another thread, I apologize.
Jeremy
07-12-2012 09:28 AM
Hi jjsomer,
There are a couple of example VI’s that you can use for that, you can go to the NI Example Finder » Hardware Input and Output » DAQmx » Analog Generation » Cont Gen Voltage Wfm-Int Clk.vi
That VI will show you how to output a signal that could be sine wave, square wave of saw tooth wave. In order to set the parameters that you need, you can use the Square Waveform.vi instead, this can let you set an offset for the signal.
I hope this will help you,
Regards,
07-12-2012 09:35 AM
Hi jjsomer,
The example that I referenced you to is for LabVIEW, but it seems that you are using VB, so you should be able to navigate to this folder in your computer:
Start » All Programs » National Instruments » NI-DAQ » Text Based Code Support » .NET X.0 » Analog Out » Generate Voltage » ContGenVoltageWfmIntClk » VB
I hope this will help you,
Regards,