Endorphin.Core


Visa

Namespace: Endorphin.Core

Functions for creating connections and talking to VISA instruments in raw IO mode. Formatted IO using the VISA formatting options is not supported.

Nested types and modules

TypeDescription
Instrument

A VISA instrument, capable of reading, writing and querzRying strings and byte arrays.

ParityMode

Serial port parity mode.

SerialConfiguration

Serial port configuration.

StopBitMode

Serial port stop bit mode.

ModuleDescription
Bytes

Functions related to byte array-based I/O.

String

Functions related to string-based I/O.

Functions and values

Function or valueDescription
closeInstrument(instrument)
Signature: instrument:Instrument -> Async<unit>

Close the connection to a VISA instrument.

openGpibInstrument(...)
Signature: visaId:string -> timeout:int<MeasureProduct<ms,MeasureOne>> -> writeDelay:int<MeasureProduct<ms,MeasureOne>> option -> Instrument

Open a GPIB VISA instrument with the given VISA identifier address and a timeout in milliseconds to wait for each raw command. The optional write delay is used to delay further communication with the hardware after each write command for a specified period.

openSerialInstrument(...)
Signature: visaId:string -> timeout:int<MeasureProduct<ms,MeasureOne>> -> writeDelay:int<MeasureProduct<ms,MeasureOne>> option -> configuration:SerialConfiguration -> Instrument

Open a RS-232 VISA instrument with the given VISA identifier address and a timeout in milliseconds to wait for each raw command. The optional write delay is used to delay further communication with the hardware after each write command for a specified period.

openTcpipInstrument(...)
Signature: visaId:string -> timeout:int<MeasureProduct<ms,MeasureOne>> -> writeDelay:int<MeasureProduct<ms,MeasureOne>> option -> Instrument

Open a Ethernet VISA instrument with the given VISA identifier address and a timeout in milliseconds to wait for each raw command. The optional write delay is used to delay further communication with the hardware after each write command for a specified period.

Fork me on GitHub