Implements Visa SCPI IO.
More...
|
int | ID [get] |
| Resource ID attached to this instrument.
|
|
bool | SendEnd [getset] |
| Indicates whether a Write(ArraySegment<byte>, int, ref int) should generate an end-of-message indicator when writing its last byte.
|
|
int | IOTimeoutMS [getset] |
| Indicates the timeout in milliseconds for any of the IO operations.
|
|
int | LockTimeoutMS [getset] |
| Indicates the timeout in milliseconds for acquiring a lock.
|
|
byte | TerminationCharacter [getset] |
| Sets the termination character, if any.
|
|
bool | UseTerminationCharacter [getset] |
| Controls whether the IO operations should use a termination character.
|
|
string | ResourceClass [get] |
| Returns the resource class of the connected instrument.
|
|
ScpiIOSrqDelegate | SRQ |
| Callback from SRQ instrument events.
|
|
◆ Close()
Close the connection to the instrument.
- Returns
- Visa Error code.
Implements OpenTap.IScpiIO2.
◆ Lock()
Try to acquire a lock on the instrument.
- Parameters
-
lockType | Indicates which kind of lock should be acquired. |
sharedKey | In case the type of lock is |
Implements OpenTap.IScpiIO.
◆ Read()
ScpiIOResult OpenTap.ScpiIO.Read |
( |
ArraySegment< byte > |
buffer, |
|
|
int |
count, |
|
|
ref bool |
eoi, |
|
|
ref int |
read |
|
) |
| |
|
inline |
Reads a number of bytes from the instrument.
- Parameters
-
buffer | The target buffer to read to. |
count | The number of bytes to read. |
eoi | This will indicate whether an EOI indicator was received. |
read | The number of bytes that was actually read if succesful. |
Implements OpenTap.IScpiIO.
◆ ReadSTB()
Reads the status byte of the instrument.
- Parameters
-
stb | The current status byte. |
Implements OpenTap.IScpiIO.
◆ Write()
ScpiIOResult OpenTap.ScpiIO.Write |
( |
ArraySegment< byte > |
buffer, |
|
|
int |
count, |
|
|
ref int |
written |
|
) |
| |
|
inline |
Writes a number of bytes to the instrument.
The returned error code will indicate whether the EOI was sent.
- Parameters
-
buffer | The buffer to write from. |
count | The number of bytes to read. |
written | The number of bytes that was actually written if succesful. |
Implements OpenTap.IScpiIO.