To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example emulates the functionality of a benchtop DC power supply using only DAQmx driver functions to output a low-to-high sweeping DC signal.
Description
Based on the Voltage - Finite Output example which can be located in LabVIEW's example finder, this example creates an array which uses the parameters under the Sweep Settings section to create a positively sloped DC signal.
Requirements
Software
Hardware
Steps to Implement or Execute Code
There were a variety of input parameters I could have chosen from, but any required input can be calculated using these parameters. For instance, if you have a required step duration, you could adjust your step size and sweep duration to meet your requirement.
Additional Information or References
Note that most NI DAQ analog output cards are only capable of driving very small amounts of current. Overdriving your card will put it into protection mode and risks damaging it. Review the specifiations for your NI DAQ device for the maximum output current drive.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.