Get started with MCC devices from the command line using the session-based interface.
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.
Generate signals on an analog output current channel for a NI device capable of current output using the Session based interface.
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 data using a National Instruments device available to MATLAB® using the Session based interface.
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
Set up a continuous audio acquisition. This example uses a two-channel microphone.
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
Use analog input channels and analog output channels together with a single Session object running near simultaneous.
Acquire bridge circuit voltage ratio data, then compute and plot strain values.
Generate audio signals using a Session. This example uses, but does not require, a 5.1 channel sound system.
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.
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
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 data from a National Instruments device available to MATLAB® from the command line using the Session based interface.
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.
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
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
Read in data from thermocouples using NI devices that support thermocouple measurements using the Session based interface.
Acquire data from multiple analog input channels with MCC devices using the session-based interface.
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
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
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.
Acquire angular position data using an incremental rotary encoder and a multifunction data acquisition (DAQ) device with the Data Acquisition Toolbox quadrature encoder measurement
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.
Generate a pulse width modulated signal to drive a stepper motor.
MATLAB® is able to communicate with instruments and devices at the protocol layer as well as the physical layer. This example uses the I2C feature of the Instrument Control Toolbox to
Discover devices visible to MATLAB® and get information about channel and measurement types available in those devices.
Use the Analog Input block to acquire live signals from a data acquisition device into Simulink. The block uses a National Instruments(R) USB-6211 as the input device. The Simulink model use
Acquire synchronized data from two PCI devices. A sine wave is connected to Channel 0 of National Instruments® PCI-6251 and to Channel 0 of NI PCIe-6363. Both the channels are given the same
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