Example Code

Programmatically Reset Devices Using LabVIEW System Configuration API

Code and Documents

Attachment

Overview

This example demonstrates a method of programmatically resetting a device by utilizing the System Configuration API located in the Measurement IO Palette.

Description

The VI initializes a session to the target and searches for the hardware associated with an expert. To choose a valid expert, please take a look at the help or the KnowledgeBase article linked below.  The VI then utilizes the System Hardware Property Node to match the alias name with the item you want to reset. The VI finally self-tests the device to ensure communication then resets the device.

Steps to Implement or Execute Code

  1. Download the VI
  2. Configure the target input in the block diagram to the system with the device you want to reset
  3. Configure the name of the device you are wanting to reset in the string constant
  4. Run the VI as is or use it as a SubVI in an application

Requirements to Run

Software

LabVIEW 2011 or Later & DAQmx or Driver that installs the System Configuration API

Hardware

This example requires a Simulated or real Multifunction DAQ Card

Additional Images

Block Diagram

Programmatically Reset Devices.png

Additional Information

KB 5FFA2JBP: What Experts Are Valid Inputs for System Configuration API Functions

Sam S
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors