Archived:Migrate NI-DAQmx Switches API Code to NI-SWITCH

Updated Aug 3, 2023

NI does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Environment

Software

  • LabVIEW
  • LabWindows/CVI

Driver

  • NI-SWITCH
  • NI-DAQmx

Beginning with version 15.1, NI-SWITCH is the up-to-date driver to use with NI Switch modules. This article outlines some basic functions that are shared by both drivers before version 15.1.

switch SW KB.png
 
 NI-SWITCH APINI-DAQmx Switches Palette
NI LabVIEWniSwitch Connect Channels VI
niSwitch Disconnect Channels VI
niSwitch Disconnect All Channels
DAQmx Switch Connect VI
DAQmx Switch Disconnect VI
DAQmx Switch Disconnect All VI
 
NI LabWindows/CVI

niSwitch_Connect() niSwitch_ConnectMultiple()
niSwitch_Disconnect()
niSwitch_DisconnectAll()

DAQmxSwitchConnect()
DAQmxSwitchConnectMultiple()
DAQmxSwitchDisconnect()
DAQmxSwitchDisconnectAll()
Lifecycle StatusActiveObsolete