105
APPENDIX D. FIRMWARE COMMANDS AND
RESPONSES
Communication with the Easy-MCS consists of sending commands to receiving responses from
the MCS through the C
ONNECTIONS
software layer. C
ONNECTIONS
is used by all ORTEC soft-
ware and is available for other software development with our C
ONNECTIONS
Programmer’s
Toolkit with Microsoft
®
ActiveX
®
Controls (A11-B32). Use the DLL interface call
MIOComm
or the ActiveX control UCONN’s
Comm
method to send commands to instruments and receive
responses.
D.1. Command Format
The commands consist of a command header that may be followed by numeric parameter values.
The header consists of a verb; a verb and noun; or a verb, noun, and modifier; each separated by
underscores.
Commands consist of a command header, which may be followed by numeric parameter values.
The header consists of a verb, a verb and noun, separated by an underscore; or a verb, noun, and
modifier, each separated by underscores. When composing commands, the first four letters of
any word are always sufficient to uniquely identify the word. For example, ENABLE_DISCRI-
MINATOR can be abbreviated to ENAB_DISC.
Numeric parameters are either unsigned integers or signed floating-point numbers, and follow
the command header separated by one or more spaces. Some commands require multiple para-
meters, separated by commas, to specify numeric quantities such as pass length or dwell time.
For example, the command SET_RAMP 0,10,0 has three parameters, 0, 10 and 0, which set the
ramp to a full-scale triangle.
Some parameters listed in the command dictionary are optional and are distinguished from man-
datory parameters by being surrounded by brackets (e.g., SHOW_INTEGRAL [start,length]).
Commands with optional parameters can be sent to the MCB without the optional parameters, in
which case the instrument behavior is explained in the command description.
D.2. Error Codes
Upon each completion of a command, the MCB returns a macro error code and micro error code.
The macro error code represents the general class of error with 0 meaning no error, and the
micro error code represents the sub-class of error with 0 meaning no error. In case of error con-
dition, you can use
MIOGetLastError
(DLL interface) or
GetErrMajor
,
GetErrMinor
(ActiveX
control interface).
Содержание Easy-MCS
Страница 10: ...x...
Страница 20: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 10 Intentionally blank...
Страница 24: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 14 Intentionally blank...
Страница 77: ...931054C 1213 7 KEYBOARD FUNCTIONS 67 Fig 59 MCS 32 Keyboard and Keypad Accelerators...
Страница 98: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 88 Intentionally blank...
Страница 100: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 90 Intentionally blank...
Страница 108: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 98 Intentionally blank...
Страница 110: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 100 Intentionally blank...
Страница 114: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 104 Intentionally blank...
Страница 130: ...Easy MCS Multichannel Scaler and MCS 32 A73 B32 Software 931054C 1213 120 Intentionally blank...