background image

Programming the NI Switch Product

You can acquire data interactively using the NI-SWITCH Soft Front Panel (SFP), or you can
control the device programmatically using the NI-SWITCH instrument driver. You can then
use NI-SWITCH to program the device in the application development environment (ADE) of
your choice.

Table 4. NI Switch Product Programming Options

Application

Programming

Interface (API)

Location

Description

 

 

 

NI-SWITCH SFP

Available from the Start menu or
NI Launcher in Windows 8.

Provides a graphical interface for
controlling and viewing the state
of your NI switch product.

NI-SWITCH
Instrument Driver

LabVIEW or LabWindows/CVI—
Available on the LabVIEW
Functions palette at 

Measurement

I/O

»

NI-SWITCH

.

Features a set of operations and
attributes that exercise all the
functionality of the NI switch
product, including configuration,
control, and other device-specific
functions.

C or LabWindows/CVI—
Available at 

Program Files

\IVI Foundation\IVI
\Drivers\niSWITCH

.

Installed examples for Visual
C/C++ are in the

NI-SWITCH Readme

.

Refer to the 

Creating an

Application with Microsoft Visual
C/C++

 topic in the 

NI Switches

Help

 for information about

developing an NI-SWITCH
application.

NI-DAQmx
Instrument Driver

Available from the Start menu or
NI Launcher in Windows 8. To
locate examples, go to 

ni.com/info

and enter the Info Code

daqmxexp

. For additional

examples, refer to 

zone.ni.com

.

You can operate NI switch
products with the NI-DAQmx
API. NI-DAQmx is useful when
using hardware scanning with
multiple NI switch products. The
NI-DAQmx API supports all NI
switch products and is not IVI
compliant.

NI-SWITCH Examples

Examples demonstrate the functionality of the device and serve as programming models and
building blocks for your own applications. The NI Example Finder is a utility available for
some software applications that organizes examples into categories and allows you to easily

NI Switches Getting Started Guide | © National Instruments | 17

Summary of Contents for SCXI

Page 1: ...t described in this document Related Information Refer to the NI Switches Help for detailed information about features and programming options for your NI switch product Contents Electromagnetic Compa...

Page 2: ...oid your authority to operate it under your local regulatory rules Caution To ensure the specified EMC performance operate this product only with shielded cables and accessories Caution To ensure the...

Page 3: ...device into the chassis Installing the Software You must install the NI SWITCH driver software before installing the NI switch product NI switch modules are packaged with NI SWITCH and NI DAQmx Each...

Page 4: ...tall Refer to the following table Table 1 NI Switch Controllers and Supported NI SCXI Switches SCXI Rear Connector 10 or 50 pin NI Switch Module NI Switch Controllers NI 4021 or NI PXI PCI 4065 or NI...

Page 5: ...1128 1129 1160 1161 1163R 1190 switch modules configured using Traditional NI DAQ Legacy 2 Identify the adapter kit s required to cable the switch controller or the computer to the NI SCXI switch mod...

Page 6: ...1161 1163R 1190 switch modules configured using Traditional NI DAQ Legacy Related Information Refer to the NI Switches Help for more information about NI switch controllers and adapter kits Installat...

Page 7: ...SCXI slot 5 Screw the switch front panel to the chassis front panel mounting rail Installation Procedure 2 Install an NI SCXI switch module in any of the following configurations NI SCXI 1000 1001 ch...

Page 8: ...to the OFF position If you are using multiple SCXI chassis ensure each chassis has a unique binary address Note Earlier chassis use jumpers inside the chassis front panel instead of chassis address sw...

Page 9: ...witch controller to the switch module Notice that an NI E Series or M Series device can directly cable only to an NI SCXI switch module with a 50 pin rear connector Figure 3 Cabling an NI E Series or...

Page 10: ...ar Connector Switch Module 1 7 6 or 4 5 3 2 1 NI SCXI Switch Module with a 10 Pin Rear Connector 2 HVAB Connector 3 10 Pin Rear Connector 4 SH9MD AUX Cable 5 NI Switch Controller 6 NI SCXI 1359 Cable...

Page 11: ...module with a 50 pin rear connector for the NI 4021 407x or NI PXI PCI 4065 Figure 5 Cabling an NI 4021 407X or an NI PXI PCI 4065 to a 50 Pin Rear Connector Switch Module 1 2 4 5 3 1 NI SCXI Switch M...

Page 12: ...ssis 3 Controller 1 Power off and unplug the chassis 2 Install the switch controller including any adapter kit s as described in the switch controller documentation 3 NI PXI 1010 only Set the chassis...

Page 13: ...r adapter directly to an NI SCXI switch module with a 10 pin rear connector Refer to the following figure and complete the following steps to install an NI SCXI switch module and cable it to an NI USB...

Page 14: ...odule connects to the black lower right 10 pin rear connector of the NI USB 1359 9 Screw the backplane adapter to the chassis mounting rail 10 Power on the chassis You must power on the chassis before...

Page 15: ...4 Touch any metal part of the chassis to discharge static electricity 5 Insert the switch module into the SCXI slot 6 Screw the switch front panel to the chassis front panel mounting rail 7 Connect on...

Page 16: ...e communicating device this device is selected as the chassis communicator by default and the listbox is dimmed NI SCXI kits only Select the module slot connected to the chassis communicator from the...

Page 17: ...functions C or LabWindows CVI Available at Program Files IVI Foundation IVI Drivers niSWITCH Installed examples for Visual C C are in the NI SWITCH Readme Refer to the Creating an Application with Mic...

Page 18: ...ocate examples with the NI Example Finder Within LabVIEW or LabWindows CVI select Help Find Examples and navigate to Hardware Input and Output Modular Instruments ANSI C or Microsoft Visual C C Locate...

Page 19: ...ation development environment ADE appropriate for your application Getting Started with LabVIEW Getting Started with LabWindows CVI 2 3 NI Switches ni com switches Services ni com services Updates ni...

Page 20: ...ity does not alter module specifications PXI communication Hybrid slot compatibility supports existing PXI timing and PXI triggering capabilities Refer to your NI PXI PXI Express chassis documentation...

Page 21: ...ion If your product supports calibration you can obtain the calibration certificate for your product at ni com calibration National Instruments corporate headquarters is located at 11500 North Mopac E...

Page 22: ...atents in your software the patents txt file on your media or the National Instruments Patent Notice at ni com patents You can find information about end user license agreements EULAs and third party...

Reviews: