Connecting to NI PXIe-2597 by National Instruments in Python
Instrument Card
26.5 GHz, 50 Ω, 6x1 (SP6T) Terminated PXI RF Multiplexer Switch Module—The PXI‑2597 is ideal for passing high-order harmonics from PXI RF Signal Upconverter modules or routing multiple sources to PXI RF Signal Downconverter modules. The internal termination of the PXI‑2597 helps prevent high-power reflections that arise from open channels on the module. You can use the PXI‑2597 onboard relay count tracking feature to predict relay lifetime and reduce unexpected system downtime.
Device Specification: here
Manufacturer card: NATIONAL INSTRUMENTS
A producer of automated test equipment and virtual instrumentation software. Common applications include data acquisition, instrument control and machine vision.
- Headquarters: Austin, Texas, USA
- Yearly Revenue (millions, USD): 1657
- Vendor Website: here
Connect to the NI PXIe-2597 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a NI PXIe-2597 Multiplexer Switch Module using Qcodes Community, you can use the following Python script:
This script defines a custom instrument class NI_PXIe_2597
that inherits from qcodes.instrument.base.Instrument
. It adds a parameter channel
to the instrument, which represents the active channel of the switch. The set_cmd
method _set_channel
is responsible for connecting/disconnecting the switch to/from the specified channel, and the get_cmd
method _get_channel
returns the active channel.
To use the script, you need to provide the appropriate name
and resource
parameters when creating an instance of the NI_PXIe_2597
class. In the example above, the instrument is named “switch” and the resource address is “PXI0::0::INSTR”. You can modify these values according to your setup.
After connecting to the instrument, you can set the active channel by calling switch.channel("ch2")
, where “ch2” is the desired channel. To retrieve the active channel, you can call switch.channel()
, which returns the current active channel.
Note: The script provided only demonstrates the basic usage of the instrument class and does not include the full functionality of the NI PXIe-2597 Multiplexer Switch Module.