Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
MCCE.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Other hardware | ||||||
Description:
| ||||||
Documentation:
The RS422 serial interface allows remote reading and programming the MCCE. The parameters of the serial line are: - 8 bits - no parity - 1 stop bit - 9600 bauds SETUP The serial line cable is connected to the interface card - either COMU 2000 (COMU 30), known as IBAM (os9) or RocketPort (linux). There should be a "serial line" device servre running, on top of which a linux device server Mcce should run as well. Tha macro calles the Mcce device server commands only. | ||||||
Macros:
Usage: mcce_init Define all the globals and macros. This is the first macro to be executed, when using MCCE. mccesetup Usage: mccesetup [<first electrometer device server name> (<second electrometer device server name>...)] Establish communication with the MCCE(s). The device server name is in database format (e.g. id00/e1/ch1). mccestat Usage: mccestat [<electrometer number> ...] Print parameters of the electrometers. If no argument given, the macro will print information about all configured electrometers. The input parameter can be one or more electrometer numbers (as specified when mccesetup executed). mccerange Usage: mccerange [<electrometer number> <range> <electrometer number> <range> ...] Set the range of the electrometers. This macro follows a procedure to change the range. Different scales are possible, depending on the electrometer type. The electrometer number cannot exceed the configured number of electrometers, but it does not need to be in consecutive order, if more then one. When no arguments, the macro will ask for confirmation for all the available electrometers. mccepolarity Usage: mccepolarity [<electrometer number> <polarity> <electrometer number> <polarity> ...] Set the polarity of the electrometers. This macro follows a procedur (several MCCE commands executed). The electrometer number cannot exceed the configured number of electrometers, but it does not need to be in consecutive order. When no arguments, the macro asks for confirmation for all the available electrometers. Allowed input + or -. mccefreq Usage: mccefreq [<electrometer number> <frequency> <electrometer number> <frequency> ...] Set the frequency filter of the fotovoltaic electrometers. This macro follows a procedure (several MCCE commands executed). The electrometer number cannot exceed the configured number of electrometers, but it does not need to be in consecutive order. When no arguments, the macro asks for confirmation for all the available electrometers. mccegain Usage: mccegain [<electrometer number> <gain> <electrometer number> <gain> ...] Set the gain of the fotoconductive electrometers. This macro follows a procedure (several MCCE commands executed). The electrometer number cannot exceed the configured number of electrometers, but it does not need to be in consecutive order. When no arguments, the macro asks for confirmation for all the available electrometers. | ||||||
Internal Macros: | ||||||
Usage: mccesetup_names _mccestat Usage: _mccestat(elnb) Print the parameters of the elnb electrometer. _get_range_scale Usage: _get_range_scale(elnb) _get_frequency_scale Usage: _get_frequency_scale(elnb) _get_gain_scale Usage: _get_gain_scale(elnb) _mcce_type Usage: _mcce_type (device) Get the type of the electrometer (values 1-6), -1 if error _mcce_setrange Usage: _mcce_setrange (device, range) Change the electrometer range. _mcce_getrange Usage: _mcce_getrange (device) Get the electrometer range. _mcce_chkrange Usage: _mcce_chkrange (elnb, value) Check the elnb range input value. _mcce_setfreq Usage: _mcce_setfreq (device, freq) Change the frequency filter value [Hz] of a fotovoltaic electrometer. _mcce_getfreq Usage: _mcce_getfreq (device) Get the frequency filter value [Hz] of a fotovoltaic electrometer. _mcce_chkfreq Usage: _mcce_chkfreq (elnb, value) Check the elnb electrometer frequency filter input value. _mcce_setpolarity Usage: _mcce_setpolarity (device, pol) Change an electrometer polarity sign _mcce_getpolarity Usage: _mcce_getpolarity (device) Get an electrometer polarity sign _mcce_setgain Usage: _mcce_setgain (device, gain) Change the fotoconductive electrometer gain filter. _mcce_getgain Usage: _mcce_getgain (device) Get the fotoconductive electrometer gain filter. _mcce_chkgain Usage: _mcce_chkgain (elnb, value) Check the elnb electrometer gain input value. _mcce_chk Usage: _mcce_chk(elnb) Check if elnb electrometer is configured. Retur 0 if OK, -1 if error. | ||||||
|