Example Code

Using Analog Output Waveform Generation to Generate a 3-Phase Voltage with NI-DAQmx for LabVIEW NXG

Code and Documents

Attachment

Overview

This example demonstrates how to generates a 3-phase voltage (sine waves 120 degrees apart) using three analog output (AO) channels with NI-DAQmx with support for LabVIEW NXG for Data Acquisition Hardware.

Description

This example generates a 3-phase voltage using three analog output channels. A three-phase voltage consists of three sine waves, each 120 degrees apart in phase, each representing a separate voltage varying over time.  

Hardware and Software Requirements

Hardware:

A device with three analog output channels is required, such as a 671x data acquisition (DAQ) device.

 

Software:

LabVIEW NXG 1.0 or compatible

DAQmx 17.0 or compatible

Steps to Implement or Execute Code

1.Connect the three designated output channels to the inputs of a three-phase device.

2. Configure the software to map to the analog output channels that you are using.

3. Enter the frequency (Hz) of the output sine wave, and the amplitude of each phase voltage.

4. Run the VI.

Additional Information or References

Sarina
Applications Engineering
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors