Generating a SignalLearning to receive signals is just the beginning. It is also important to understand how to send signals to motors, actuators, and indicators so you can communicate with the real world and automate tasks. An example of this is sending a varying analog voltage to a DC motor to power a fan. This requires a digital-to-analog converter to output the signal to the real world. This module covers creating and outputting an analog signal on a DAQ device using NI LabVIEW software. Step-by-Step ProcedureDownload the Step-by-Step Procedure PDF Use the exercise solution from the Taking a Measurement module to acquire the signal being output on the analog output pins of your USB DAQ device.
You can convert your DAQ Assistant Express VIs into low-level NI-DAQmx functions by right-clicking the DAQ Assistant and selecting Generate NI-DAQmx Code. The low-level NI-DAQmx API exposes more functionality and customization options for programming. LabVIEW Example Code Right-click on the above VI snippet and select Save Image As... Locate the file on your hard disk and click and drag the file icon onto your LabVIEW block diagram. LabVIEW automatically generates the code from the VI snippet. For more information, read VI Snippets. For a low-level NI-DAQmx driver example for this concept, open the NI Example Finder and browse to Hardware Input and Output»DAQmx»Analog Generation»Voltage»Cont Gen Voltage Wfm-Int Clk.vi. See detailed help on using the NI Example Finder and help within LabVIEW. Don’t have NI-DAQmx installed on your PC? Module Exercise: Generating a SignalDownload the Module Exercise PDF Exercise Goal Required Hardware Things to Consider
Here is an example of what the final signal should look like on a graph indicator: View the exercise solution (Don’t cheat!). Cumulative Exam:
|


