devices.minicircuits:RC_2SPDT_A18
Mini-Circuits RF Switch Matrix, DC - 18000 MHz, 50Ω.
Usage
devices.minicircuits:RC_2SPDT_A18(
interface,
**kwargs,
)USB & Ethernet Controlled RF switch matrix device.
Methods
| Name | Description |
|---|---|
| __init__() | Initialize the RC_2SPDT_A18 device. |
| setSPDT() | Set the SPDT switch position. |
__init__()
Initialize the RC_2SPDT_A18 device.
Usage
__init__(
interface,
**kwargs,
)Parameters
interface: str-
Communication interface identifier.
**kwargs: dict- Additional arguments to pass to the parent VisaDevice.
setSPDT()
Set the SPDT switch position.
Usage
setSPDT(port=1)Integer value of a byte that represents the switch states. Each bit in the byte represents the state of an individual switch with value: 0 = Connect Com port to port 1 (SPDT) Connect J1 <> J3 and J2 <> J4 (transfer switch) 1 = Connect Com port to port 2 Connect J1 <> J2 and J3 <> J4 (transfer switch) The least significant bit (LSB) represents switch A and the most significant bit (MSB) represents switch H (if applicable).
Parameters
port: int = 1- The port to connect to (1 or 2), defaults to 1.
Returns
str- Response from the device.