Endorphin.Core


Set

Namespace: Endorphin.Core
Parent Module: Checked

Functions for writing "set" commands to SCPI instruments with no expected responses, e.g., "*RST".

Functions and values

Function or valueDescription
clear instrument
Signature: instrument:IScpiInstrument -> Async<unit>

Issue the clear state command to the instrument.

key key instrument
Signature: key:string -> instrument:IScpiInstrument -> Async<unit>

Write a key with no value to an instrument, e.g., "*RST".

reset instrument
Signature: instrument:IScpiInstrument -> Async<unit>

Issue the reset command to the instrument.

value key value instrument
Signature: key:string -> value:'In -> instrument:IScpiInstrument -> Async<unit>
Type parameters: 'In

Write a key with a value to an instrument, where the value will be converted by calling its ToScpiString() method if it implements IScpiFormatable, verbatim if it is a byte array, or its obj.ToString() method otherwise.

SCPI command e.g., ":POWER 12.0".

verbatim str instrument
Signature: str:byte [] -> instrument:IScpiInstrument -> Async<unit>

Send a byte array to the instrument verbatim, with no preprocessing.

Fork me on GitHub