Get started with NI devices from the command line using the Session based interface.
Use the function generator channel to generate an 1 KHz sinusoidal waveform function and record data at the same time, using analog inputs. The output voltage-range of the outgoing signal is
Acquire analog input voltage data (at a sampling rate of 300kHz). The dynamic range of the incoming signal is -2.5 to 2.5 volts. You will use the session-based interface with the Digilent
Set up a continuous audio generation. This example uses, but does not require, a 5.1 channel sound system.
Generate analog output data using non-blocking commands. This allows you to continue working in the MATLAB command window during the generation. This is called background generation. Use
Acquire clock signals and analyze transitions, pulses, and compute metrics including rise time, fall time, slew rate, overshoot, undershoot, pulse width, and duty cycle. This example
Data Acquisition Toolbox provides functionality for hardware triggering a data acquisition (DAQ) session, for example starting acquisition from a DAQ device based on an external digital
Acquire analog input data using non-blocking commands. This allows you to continue working in the MATLAB command window during the acquisition. This is called background acquisition. Use
Acquire and display sound pressure data from a PCB® IEPE array microphone, Model 130E20. The sensor is recording sound pressure generated by a tuning fork at Middle C (261.626 Hz) frequency.
Set up continuous audio generation using multiple audio channels in a session. The signal, a sample of Handel's "Hallelujah Chorus" is broken up into contiguous segments and played back in
Generate signals on an analog output current channel for a NI device capable of current output using the Session based interface.
Acquire data from a National Instruments device available to MATLAB® from the command line using the Session based interface.
Acquire and display data from an accelerometer attached to a vehicle driven under uneven road conditions.
Acquire data from multiple analog input channels with MCC devices using the session-based interface.
Acquire bridge circuit voltage ratio data, then compute and plot strain values.
Save data acquired in the background to a file. Use the session-based interface and acquires analog input data using non-blocking commands. If you are using the legacy interface, refer to
how to acquire temperature data from a Resistive temperature device (RTD) and display the readings. The device is attached inside a PC case to monitor the internal temperature changes.
Generate data using a National Instruments device available to MATLAB® using the Session based interface.
Set up a continuous audio acquisition. This example uses a two-channel microphone.
Will show you how to synchronously generate and acquire voltage data (at a rate of 300 KHz). You will use the session-based interface with Digilent Analog Discovery hardware.
Read in data from thermocouples using NI devices that support thermocouple measurements using the Session based interface.
Use the function generator to generate an arbitrary waveform function at a rate of 1 KHz and record data at the same time, using an analog input channel. The output voltage-range of the
Generate analog output voltage data (at a rate of 300kHz). The output voltage-range of the outgoing signal is -5.0 to +5.0 volts. You will use the session-based interface with Digilent
Acquire angular position data using an incremental rotary encoder and a multifunction data acquisition (DAQ) device with the Data Acquisition Toolbox quadrature encoder measurement
Determine the rate of rotation of an Anaheim Automation motor controller by counting the number of rising edges in the signal. The controller returns hall effect pulses (square waves) that
Measure the width of an active high pulse. A sensor is used to measure distance from a point. The width of the pulse correlates to the actual distance measured.
Measure frequency to determine rate of flow of fluid using a flow sensor. The sensor generates a digital signal with frequency correlates to the rate of flow of fluid.
Discover devices visible to MATLAB® and get information about channel and measurement types available in those devices.
Use Analog Input block to acquire live signals from a data acquisition device into Simulink. In this example, a National Instruments® device (USB-6211) is selected as the input device in the
This examples shows how to exchange live data with Data Acquisition hardware using simple for or while loops and System object™ interfaces.
One problem with living in Boston is that my apartment is old and drafty. I have one thermostat that is located in the center of the apartment, and I often find that even though the thermostat
Set up and start a multi-trigger acquisition on an external event. Configure your device to start acquiring data when you hit a switch that sends a rising edge signal to your device.
Uses MATLAB® to connect to an ADALM1000 source-measurement unit, configure it to generate an arbitrary signal, make live measurements, and use the measurements to calculate the transfer