Student Projects

cancel
Showing results for 
Search instead for 
Did you mean: 

ELVISmx Function Generator for Mac OS and myDAQ

Overview

This VI is the NI ELVISmx Instrument Launcher’s Function Generator for the Mac OS. The FGEN generates three different waves: sine, triangle, and square. The user can vary the frequency, amplitude, DC offset, and duty cycle (square wave) of the generated wave. The FGEN can also perform a frequency sweep. This instrument has been adapted from its Windows OS form to work with a Mac OS, and the changes between these versions are explained below.

FGEN.png

Hardware Instructions

This VI interfaces with a myDAQ. The generated waves must be written to an analog out line on the device analog I/O bus. Connect your device via USB and select that from the device list in the VI. You can verify that the FGEN is writing the specified waveform by using the Oscilloscope.

Executable Instructions

1. First, you must download the NI-DAQmx for myDAQ driver from this link:https://decibel.ni.com/content/docs/DOC-39065.

2. Download the attached file (Function Generator.zip) and save a local copy on your computer.

3. Once inside the folder, navigate to the Function Generator.app and double click to open.

4. Choose your device from the drop down list and press run.

Changes from Windows Version

This instrument is nearly unchanged from its Windows version. The only difference is that the Help button does not launch the full LabVIEW Help window.

Disclaimer

This instrument is posted as an example for myDAQ for Mac OS X. While it is not an officially supported part of the DAQmx for Mac OS software, we have found it to work without issue. If you run into any issues apart from those noted above, please let us know by posting below. 

Thanks,

Rita Prather
Software Product Manager
rita.prather@ni.com
National Instruments
Contributors