NI-SWITCH Programming Examples

NI Switches

NI-SWITCH Programming Examples

NI-SWITCH includes a collection of programming examples that demonstrate switch functionality. NI-SWITCH programming examples are instructional tools that you can use as stand-alone programs or integrate into your application. Whether you are developing a new application or modifying an existing application, the NI-SWITCH programming examples can facilitate your application development.

Use the following partial list to identify NI-SWITCH programming example(s) to aid in your application development:

  • niSwitch Making Connections on a Switch—Demonstrates how to connect channels.
  • niSwitch Software Scanning—Demonstrates how to scan a series of channels on a switch using software scanning.
  • niSwitch DMM Switch Synchronous Scanning—Demonstrates how to scan a series of channels on a switch module and take measurements with an NI digital multimeter using synchronous scanning. NI-DMM 2.0 or later is required.
  • niSwitch DMM Switch Handshaking—Demonstrates how to scan a series of channels on a switch module and take measurements with an NI digital multimeter using handshaking. NI-DMM 2.0 or later is required.
  • niSwitch Controlling an Individual Relay—Demonstrates how to control an individual relay on a switch module.

Accessing the Programming Examples

Examples are available for the following ADEs:

  • LabVIEW 7.1 or later
  • LabWindows/CVI 7.1 or later
  • Visual C/C++ 6.0
  • Visual Basic 6.0

For example location, refer to the NI-SWITCH Readme File.

NI-DAQmx includes programming examples for switch functionality, such as multiple module scanning, that is supported in NI-DAQmx. Access the NI-DAQmx programming examples for switches at <LabVIEW>\examples\DAQmx\Switches.