Overview:
Demonstrates on synchronizing a finite analog input with continuous analog output on a single card using DAQmx Base.
Description:
This synchronization of Analog Input and Output channels is done by exporting the Analog Output start trigger to the RTSI line that the analog input has been set to trigger the channels.
Requirements:
LabVIEW 2012 or compatible.
NI-DAQmx 15.5.1 or compatible.
NI-DAQmx Base 15 or compatible.
Steps to Implement or Execute Code:
- Set all the control values on the front panel corresponding to the Analog Input and Output Physical Channels to be used in this program.
- Configures the task to start acquiring or generating samples on rising or falling edge of a digital signal by specifying the controls under the Digital Edge Configuration.
- Run this VI.
- Verify the Output Voltage and Input Voltage from the waveform graphs on the front panel.
Block Diagram Steps:
- Creates the Analog Output and Input channels to generate and acquire voltage, respectively.
- Defines timing parameters of the Analog Output and Input tasks.
- Creates the waveform to output and writes them to the Analog Output FIFO of the DAQ device.
- Exports the analog output trigger to a RTSI line on the board, this is so that both Analog channels can start synchronously.
- Begins Analog Output task. Due to the triggering that was set up, analog input will begin at this time as well.
- Outputs voltage in the specified type of Waveform and read the defined number of samples out of the analog input buffer until the user presses the stop button.
- Stops and clears analog output task
- Displays any error occurs.
**This document has been updated to meet the current required format for the NI Code Exchange.**