Overview
This application demonstrates a method for generating multiple analog waveforms output on multiple channels.
Description
This example is scalable to any number of available channels available on the system and It also integrates a method for dynamically varying the output waveform attributes. All parameters including the waveform type, may be updated at run-time.
Requirement
LabVIEW 8.2 (or compatible)
NI-DAQmx 8.9 (or compatible)
Steps to Complete
- Configure the Physical Channels in the Task, define the Output Maximum and Minimum Values for the waveforms.
- Deploy a DAQmx Property Node to identify the number channels in the task.
- Employ a For Loop with the Basic Function Generator to define the intial output waveforms. This function will produce a waveform for each channel in the task.
- Use the DAQmx Write to upload the waveforms to the hardware buffer.
- Deploy a user even structure to monitor for value changes on the waveform attribute variables. The system will only redefine the output buffer if a channel parameter has changed.
- Using Local Variables, we may extract updated values within the loop structure for updating waveform information.
- Calling a DAQmx Write on Value Change will update the hardware buffer with the new waveform information.
- After the loop is completed, clear the DAQmx Task Definition.
Additional Notes
For additional information on the functions used in this example, please use Crtl+h to access the LabVIEW Context Help.