Changing the Resource Identification of an NI Switch CardHardware: Switches>>Multiplexer/Matrix>>PXI-2501
Problem: I have a National Instruments PXI switch module, such as the PXI-2501, PXI-2503, PXI-2565, PXI-2590, or PXI-2591. In Measurement & Automation Explorer (MAX), this switch had a VISA resource name of the form "PXIx::y::INSTR", which I then used in my software to access the board. However, I now want to change that resource ID. How can I change this VISA Resource ID? Solution: The NI-Switch cards are identified in MAX with a VISA Resource ID of the format PXIx::y::INSTR, where "x" and "y" represent an address location of the PXI switch module on the system's PCI bus, (note, PXI is based on the PCI bus). Therefore, this resource ID represents an address that is a function of the PXI slot, PXI chassis type, and PXI controller or computer type. This resource ID is therefore slot and system specific, and cannot be changed since the PCI bus is an automatically configured plug-and-play system. However, you can use a VISA alias to address your device instead of the resource ID. The KnowledgeBase What is the Format of VISA Resources for PXI Devices (ie, PXIx::y::INSTR) addresses this issue in depth. Additionally, this KnowledgeBase outlines the techniques available to effectively use these VISA Resources programmatically while maintaining complete hardware portability. The example program Programmatic Slot Detection of PXI Instruments can be useful as well. When using the program you can scan all PXI Instrument descriptors and look for the Model Code. Once the PXI instrument descriptor pairs up with the appropriate model of the switch, then you can automate the program. Related Links: KnowledgeBase 2IJ896LS: What is the Format of VISA Resources for PXI Devices (ie, PXIx::y::INSTR) KnowledgeBase 1UNH8NDM: Can I Change the VISA Address of a PXI Instrument? Developer Zone Example: Programmatic Slot Detection of PXI Instruments Attachments:
Report Date: 03/04/2002 Last Updated: 09/18/2007 Document ID: 2J3C1ALS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
