NI-SWITCH Readme File
Trademarks: CVI, LabVIEW, National Instruments, ni.com, PXI, and SCXI are trademarks of National Instruments Corporation. Product and company names mentioned herein are trademarks or trade names of their respective companies.
(c) Copyright 1998, 2001 National Instruments Corporation. All rights reserved.
Version 1.6
Thank you for using NI-SWITCH for Windows 2000/NT/Me/9x.
This file contains important information about NI-SWITCH, which is organized in the following sections:
This particular installation of NI-SWITCH installed the above files.
For Windows 2000/NT/Me/9x, do the following:
This release of NI-SWITCH supports the following hardware:
NI-SWITCH 1.6 installs switch scanning examples in VXIPnP\WinNT\DMM Scanning Switches Examples or VXIPnp\Win95\DMM Scanning Switches Examples. Switch only examples are installed in VXIPnp\WinNT\NISWITCH\examples or VXIPnp\Win95\NISWITCH\examples.
You can access all LabVIEW examples by launching LabVIEW and clicking Search Examples, then click Other NI Product Examples\Computer Based (Plug-in) Instruments\Switches Examples.
You can find documentation for NI-SWITCH in the NI-SWITCH Software User Manual, the NI-SWITCH VI Reference Help, or the NI-SWITCH C Reference Help under Start Menu\Programs\National Instruments\NI-SWITCH\Documents.
To start using NI-SWITCH, refer to the NI-Switch\Examples\Easy I/O folder. To access, go to the block diagram and select the Tools\Functions menu. In the Fuction palette, select the Instrument Drivers\NI-Switch Examples subpalette.
Easy I/O versions of NI-SWITCH operations perform the initialization and termination of a communication session to the hardware. This makes creating an application with the switch driver quick and simple to learn.
To improve the performance of your application, move to the non-Easy I/O versions of the NI-SWITCH operations and perform your own initialization and termination of the session as soon as you are comfortable with the driver.
When you are using the Easy I/O VIs in the Switch Examples subpalette, you do not need to call niSwitch Close before running the EASY I/O examples again.
If you do want to close the instrument, you must first call Easy niSwitch CIN with the CONTROL CODE control equal to three before calling niSwitch Close. This action will clean up the internal table from the instrument handle that the Easy I/O examples created.
Easy niSwitch CIN is located in niSwitch.llb in your LabVIEW instrument directory (instr.lib). Make sure that you have wired in the instrument handle when you call this vi to clean up the internal table.
To get started writing your own application, examine the diagram of the niSwitch Easy IO Connect example.
To get started using NI-SWITCH, launch LabWindows/CVI and choose File\Open\Project and open any of the projects from \VXIPnP\Windows\NISWITCH\examples\CVI. This project links to the niSwitch_32.dll in \VXIPnP\Windows\bin.
To get started using NI-SWITCH, launch the Microsoft Visual C++ environment and choose File\Open Workspace and open any of the projects from \VXIPnP\Windows\NISWITCH\examples\MSVC. This project links to the niSwitch_32.dll in \VXIPnP\Windows\bin.
To get started using NI-SWITCH, launch the Microsoft Visual Basic environment and choose File\Open Project and open any of the projects from \VXIPnP\Windows\NISWITCH\examples\VisualBasic. This project links to the niSwitch_32.dll in \VXIPnP\Windows\bin.
To use NI-SWITCH with PXI switches, do the following:
Your NI 2501, NI 2503, NI 2565, NI 2590, or NI 2591 switch will be listed under PXI Bus. PXI0::18::INSTR (NI 2565) is an example of what you will see, when using a NI 2565 for PXI switch module. The number of your physical slot hosting the NI 2501, NI 2503, NI 2565, NI 2590 or NI 2591 switch module (18 in this example) determines the device ID. PXI0::xx:INSTR (ex: PXI0::18::INSTR) is the device descriptor you will use in the programming environment when referring to the switch.
The Switch Configuration Mode window displays selections for the switch operation mode (1-wire, 2-wire, or 4-wire). By choosing one of the available modes, you are actually configuring the NI 2501, NI 2503, NI 2565, NI 2590, or NI 2591 for this mode of operation. The Channel Names window displays channel names available to use in your programming environment when referring to channels of this particular switching device.
To use NI-SWITCH with SCXI switches, do the following:
If you choose not to autodetect, do the following:
Following are enhancements, limitations, and documentation notes for this version of NI-SWITCH.
NI-SWITCH uses character strings to identify channels and switches. The NI-SWITCH Soft Front Panel displays the switch names for your switch module. For PXI switches, Measurement and Automation Explorer (MAX) displays a list of channel names for the current topology of your switch card. For SCXI switches, refer to the NI-SWITCH Software User Manual, Chapter 6, Using NI-SWITCH with SCXI for lists of the channel names. Channel names can also be found in the block diagrams of your hardware user manual(s).
Breakpoints and the BREAK keyword are not supported. The Break After Make scan mode is not supported.
Decrementing channel ranges is supported. Example: ch11:9->com0; connects ch11, ch10, and ch9 to com0.
The scan list control in the niSwitch_ConfigureScanList function panel in LabWindows/CVI limits the number of characters to 256. This is an issue for long scanlists. A workaround is to edit the function directly in the code.
NI-SWITCH 1.5 accepted com0->ch0:23 as a valid scanlist with Scan Mode set to No Action. NI-SWITCH 1.6 requires that ranges in a scanlist be followed by a semicolon modifier (See Chapter 5 of NI-SWITCH User Manual). If you had an application that used com0->ch0:23 you should now use com0->ch0:23 <sa none> <wft none>;
Scanning a SCXI-1127 with the DMM cabled to a SCXI-1129 returns error code -10540 at niSwitch Initiate Scan. A workaround is to cable the DMM to the SCXI-1127. By cabling the DMM to the SCXI-1127, you can scan both the SCXI-1127 and the SCXI-1129. Installing NI-DAQ 6.9.1 will fix this problem.
Multimodule Scanning in Wired-Or mode is not supported in NI-SWITCH 1.6.
SCXI-1127 (Rev D and earlier) does not support auto cable detect. All SCXI-1127s in the chassis are displayed as the cabled module in MAX.
Simulation is supported for routing functions (Connect, Disconnect, and so on), but not for scanning or low-level functions.
If you use niSwitch_SingleSwitchControl() to change the state of an individual switch, the routing functions and scanning functions are unaware of these changes. Due to state-caching in the driver, you must clear any low-level changes by calling niSwitch_reset() or niSwitch_DisconnectAll() before calling any scanning functions.
The NI 2501 for PXI topologies include two MUX topologies that enable the amplifiers described in the NI 2501/2503 User Manual. These amplifiers can be controlled by the switch names amp and amp1.
You cannot open multiple sessions to a switch module. Specifically, you cannot call niSwitch_init() or niSwitch_InitWithOptions() on a switch module if any process currently has an open NI-SWITCH session to that module. If you lose your session handle, you must close the process that opened the session before opening another session.
The following functions are not supported or used for SCXI programming:
The SCXI-1127, SCXI-1128, SCXI-1160, SCXI-1161, SCXI-1163R, SCXI-1190, SCXI-1191 and SCXI-1192 do not have support for niSwitch Connect/Disconnect in INDEP mode.
Software Triggering using NI-SWITCH on a SCXI-2000/2400 chassis is not operational. A workaround for this is to call connect/disconnect in a loop to perform the scan.
Trigger Input Polarity and Scan Advanced Output Polarity cannot be set to different values on the SCXI-1127. Both the parameters have to be set to either rising edge or falling edge.
SCXI-1127 (Rev D and earlier) continuously drives the TTL1 trigger line on the SCXI backplane. This does not allow bus sharing of TTL1 with other SCXI modules. NI-SWITCH will return an error if an SCXI-1127 is in the chassis and if TTL1 is being used for scanning.
Installing CVI 5.5.1 after installing NI-SWITCH 1.6 will cause the CVI installation to hang. A workaround is to install CVI 5.5.1 first and then install NI-SWITCH 1.6.
To revert back to NI-SWITCH 1.5 after installing NI-SWITCH 1.6, uninstall NI-SWITCH 1.6 from Add Remove Programs and install NI-SWITCH 1.5. Launch Measurement and Automation Explorer and select the NI-VISA menu under Tools. Select VISA Options from the NI-VISA menu. Select 'Show all PXI/PCI devices accessible to VISA' under the PXI/PCI Interface section.