Example Programs

NI-DCPower includes several example applications that demonstrate the functionality of your device and can serve as interactive tools, programming models, and building blocks for your own applications.

NI Example Finder

The NI Example Finder is a utility that organizes examples into categories and allows you to browse and search installed examples. For example, search for "DCPower" to locate all NI-DCPower examples. You can see descriptions and compatible hardware models for each example or see all the examples compatible with one particular hardware model.

To locate examples using the NI Example Finder within LabVIEW or LabWindows/CVI, select Help » Find Examples and navigate to Hardware Input and Output » Modular Instruments » NI-DCPower.

Installed Example Locations

The installation location for NI-DCPower example programs differs by programming language and development environment. Refer to the following table for information about example program installation locations.

Table 12. Installed NI-DCPower Example Locations
Option Installed Example Location
LabVIEW <LabVIEW>\examples\instr\nidcpower, where <LabVIEW> is the directory for the specific LabVIEW version that is installed.
LabWindows/CVI Users\Public\Documents\National Instruments\CVI\samples\niDCPower
.NET 4.0 Users\Public\Documents\National Instruments\NI-DCPower\Examples\DotNET 4.0
4.5 Users\Public\Documents\National Instruments\NI-DCPower\Examples\DotNET 4.5

Common Example Programs

The following NI-DCPower example programs demonstrate common SMU and power supply functions and operations.

  • NI-DCPower Source DC Voltage—Demonstrates how to force an output voltage.
  • NI-DCPower Source DC Current—Demonstrates how to force an output current.
  • NI-DCPower Hardware Timed Voltage Sweep—Demonstrates how to sweep the voltage on a single channel and display the results in a graph.
  • NI-DCPower Measure Record—Demonstrates how to take multiple measurements in succession.
  • NI-DCPower Measure Step Response—Demonstrates how to measure the output while it is changing.
  • Note PXI-4110 and PXI-4130 do not support the following NI-DCPower example programs:
    • NI-DCPower Hardware Timed Voltage Sweep
    • NI-DCPower Measure Record
    • NI-DCPower Measure Step Response