The MD could be one of two kinds: 2D (or serial mode) – e.g. multi-channel ADC or single-channel oscilloscope; or 3D (or package mode)– e.g. multi-channel oscilloscope. ChnIdx (channel index) has different meaning for 2D and 3D MDs.
MD.IniSet
(re)Initiate the device using loaded in advance setting or hard setting otherwise, the device state after command IniSet is in state "OffLine" . Returns 'OK' or 'Error'.
MD.EnbGet
Checks if the device enabled (is it connected and switched on). Return "True" / "False"
MD.EnbSet(B)
Switches device to Running / StandBy state (B true/false). Returns 'OK' or 'Error'.
MD.DftSet(ChnIdx)
Sets default channel of MD to ChnIdx. Returns 'OK' or 'Error'.
MD.ChnGet(ChnIdx) - 2D (serial mode) MD only
Measures and returns the value of ChnIdx channel, if ChnIdx is omitted then default channel is assumed.
MD.SpcGet(ChnIdx)
Measures and puts measured spectrum in the spectrum buffer (package). Returns 'OK' or 'Error'.
ChnIdx specifies z-channel and it is valid only for 3D (package mode) MD, otherwise (in 2D) ChnIdx is ignored and all 2D channels are transferred into the buffer (the package).
MD.DSmGet
Sends next spectrum thru open data stream to its plot. Returns 'OK' or 'Error'.
MD.SetLod(FileName)
Loads from FileName MD's settings if FileName is empty the device will be read for the setting or internal defaults will be loaded. Returns the loaded filename or 'Error'.
MD.SetSav(FileName)
Saves into FileName MD's settings, if FileName is empty the the last loaded or default setting will be written. Returns the saved filename or 'Error'.
MD.SetGet(FileName)
Gets back the current setting filename
MD.DimGet(Dim)
Returns units of
measurement, for multi-channel device and you input Dim="Abs”
the command returns for abscissa units (along the spectrum). For
multi-channel device N is zChn, otherwise N is a channel number.
That is one way to check if certain MD is multi-channel, when you ask the
device for abscise units, multi-channel device
will return something, but single-channel one will reply with error
MD.CmdExe(Command)
The device interprets this text Command and returns the result as text