16
status, value = emread (offset)
Description:
Reads an EM405-8 control register. These registers are shared between all M-
Modules and control the carrier utilities such as triggers and fans. Refer to the
EM405-8 User’s Manual for register details.
Parameters:
offset
Integer specifying the register offset to read
Return:
status
Integer indicating status of the read (0 = success)
value
The integer value read from the register
temp = emtemp (sensor)
Description:
Read one of three temperature sensor and return the result in degrees C
Parameters:
sensor
Integer indicating the temperature sensor to read.
0 = Fan Area, 1 = Logic Area, 2 = M-Module Area
Return:
temp
Real value of temperature in degrees C
status = emwrite (offset, value)
Description:
Writes an EM405-8 control register. These registers are shared between all M-
Modules and control the carrier utilities such as triggers and fans. Refer to the
EM405-8 User’s Manual for register details.
Parameters:
offset
Integer specifying the register offset to read
value
Integer value to write to the register
Return:
status
Integer indicating status of the read (0 = success)
num_input, buffer = input (length)
Description:
Inputs
length
bytes from the VXI-11 interface and returns the data in
buffer
. The
data may be ASCII or binary. Refer to section 3.3 for details passing data via the
VXI-11 interface.
Parameters:
length
Integer number of bytes from the buffer to be input
Return:
num_input Integer number of bytes successfully input; 0 = no data is available.
buffer
Buffer of data that is input from the VXI-11 interface
Note: Only one script at a time should attempt to input data from the VXI11 interface