Download NIRC2 Programmer`s Manual
Transcript
The DTRACE keyword controls logging level from within the daemon functions other than the motor specific functions (those in animatics.c), where as, the MTRACE keyword controls the logging level from within the Animatics functions. For a more complete description of the trace keyword behavior please refer to section ‘’. The calling sequences for both MTRDTRACE and MTRMTRACE are almost identical, as follows. Keyword library calling sequence: setTraceLevel (motorKeyword.c) motorSetTraceLevel −> motorCmd (motor.c) motorcmd_1 ( motor_clnt.c RPC) Motor Daemon calling sequence: motorcmd_1 (client_funcs.c) this is the end−point for daemon trace animaticsCmd (animatics.c) this is the end−point for motor trace 3.3 LOCK and MASTER The LOCK and MASTER are stored in the motor daemon hash table in a similar fashion to user keywords (refer to section ). These keywords provide a client the capability to lock out all motor moves, which would typically be done while images are being taken with the detector. The MASTER keyword stores the identification of the client and allows only the process with that identification to lock and unlock the motors. When the ‘master’ client terminates, the master keyword is set to –1 thereby allowing the next client to take control by setting the keyword to it’s process id. 4.3 I/O keywords Several NIRC2 devices contain analog input/output signals and/or digital input/output signals. I/O keywords differ from the mechanism and motor keywords in that the names may be any alphanumeric sequence, albeit without a leading numeric character. In addition the I/O keywords’ type fields are significantly different from all other keywords. The I/O keyword type field, in nirc2_config_file, must specify the signal type, device number, and signal number. Two forms of the type field exist: <signal type>_C<device number>S<signal number> <signal type>_C<device number>G<signal number> The difference being that the ‘G’ specifies a keyword associated with a gain term. The ‘G’ form is only relevant to analog signals on analog devices, which provide for a dynamically controllable gain term. The valid signal types are: AIN_, AINRAW_, ADC_, ADCRAW_, AOUT_, AOUTRAW_, DAC_ or DACRAW_, DIN_, DOUT_, RELAY, SETPT, or TEMP. Not all of these types are used in the NIRC2 system. The following subsections describe those types, which are used in the instrument.