VisaConfig#
- class VisaConfig(
- visa_resource: str,
- visa_backend: str | None = None,
- serial_config: SerialConfig = <factory>,
- terminator: TerminatorConfig = <factory>,
- timeout: TimeoutConfig = <factory>,
- tcp_nodelay: bool = True,
Bases:
objectConnection parameters for a VISA resource.
- Variables:
visa_resource (str) – VISA resource string, e.g.
TCPIP0::host::5025::SOCKETorUSB0::0x2A8D::0x0101::MY12345::INSTR.visa_backend (str | None) – pyvisa backend specifier. When unset (
None), uses the system IVI VISA implementation (@ivi) and falls back to@pywhen no IVI backend is installed. An explicitly set backend is used as-is, with no fallback.serial_config (SerialConfig) – Serial settings applied when the VISA resource is an ASRL (RS-232/RS-485) interface.
terminator (TerminatorConfig) – Read and write terminators.
timeout (TimeoutConfig) – Operation timeouts.
tcp_nodelay (bool) – Disable Nagle’s algorithm on raw TCP SOCKET connections. NI-VISA does this by default; pyvisa-py does not, which can wedge instruments that reset on coalesced writes (issue #156). No effect on non-socket transports. Defaults to
True.
- serial_config: SerialConfig#
- terminator: TerminatorConfig#
- timeout: TimeoutConfig#