From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Sinusoidal Waveform Generation with LabVIEW FPGA (Sine Generator Express VI)

    Other

  • CompactRIO

Code and Documents

Attachment

Download All

Description

This example program implements a sinusoidal waveform generator by using the LabVIEW FPGA Sine Generator Express VI.

sine_generator-labview_fpga.zip is to be used with LabVIEW 7.1 and FPGA 1.1.  It contains:

FPGA Project File - Sine Wave Generation
FPGA VI - Sine_Generation(fpga)
Host VI - Sine_Generation(Host)
SubVIs called from host

This example was designed with a cRIO-9102 controller and cRIO-9263 Analog Voltage Output Module, but can be used with any National Instruments reconfigurable I/O hardware that has analog output channels. 

sine_generator_lv821.zip is to be used with LabVIEW 8.2.1, LabVIEW Real-Time 8.2.1 and LabVIEW FPGA 8.2.1.  It contains:

LabVIEW Project File - Sine_Wave_Generation.lvproj
FPGA VI - Sine_Generation(fpga)
Host VI - Sine_Generation(Host)
SubVIs called from host
Binary to Nominal.vi can be found on <LabVIEW 8.2 installation directory>\examples\CompactRIO\Shared\Binary to Nominal.vi (by default the path is C:\Program Files\National Instruments\LabVIEW 8.2\examples\CompactRIO\Shared\Binary to Nominal.vi)

This example was designed with a cRIO-9004 controller with 9104 chassis, and cRIO-9263 Analog Voltage Output Module, but can be used with any National Instruments reconfigurable I/O hardware that has analog output channels. 

For details about the functionality of these programs refer to the tutorial "Periodic Waveform Generation with CompactRIO and LabVIEW FPGA" linked below.

Related Links:
Waveform Generation with CompactRIO
 

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