Electrometer Configuration#
The Electrometer is configured with an instances list.
Each entry corresponds to one SAL index and defines the device type, network endpoint, default measurement settings, object-storage target, image name service, sensor metadata, and optional accessories.
The configuration files are located in the ts_config_ocs repo.
The schema for the configuration file is located within the repo.
Configuration Fields#
sal_indexSAL index for this electrometer instance.
modeDefault measurement mode. The numeric values correspond to the
Electrometer.measureTypeenumeration: current, charge, voltage, and resistance.rangeDefault measurement range.
tcpipNetwork settings for the electrometer connection. The
hostnameandportusually identify the Moxa NPort or other serial-to-ethernet server. Thetimeoutvalue is used as the default command timeout.s3_instanceS3 instance used for scan FITS file uploads. Supported values are
tuc,ls, andcp.fits_file_pathLocal fallback path for FITS files.
image_name_serviceURL of the image name service used to allocate observation identifiers for scan products.
filtersDefault digital filter settings. The
generalsetting enables filtering, whileaverageandmedianselect the filter algorithms.sensorSensor metadata written to the FITS header. This includes
brand,model, andserial_number.accessoriesOptional trace fields.
temperatureenables temperature data andvsourceenables voltage source data when supported by the configured device.locationHuman-readable instrument location written to the FITS header.
integration_timeDefault integration time, in seconds.
electrometer_typeElectrometer brand. Supported values are
KeithleyandKeysight.electrometer_modelElectrometer model identifier written to the FITS header.
electrometer_configDevice-specific configuration namespace. It is currently reserved for future Keithley- or Keysight-specific settings.
Example#
instances:
- sal_index: 101
mode: 1
range: 2.0e-08
tcpip:
hostname: "electrometer-moxa.example.org"
port: 4001
timeout: 2
s3_instance: "ls"
fits_file_path: "/home/saluser/develop/electrometerFitsFiles"
image_name_service: "http://ccs.lsst.org"
filters:
median: false
general: false
average: false
sensor:
brand: "Hamamatsu"
model: "S2281"
serial_number: "S22818D091"
accessories:
vsource: false
temperature: false
location: "Calibration Screen"
integration_time: 0.1
electrometer_type: "Keithley"
electrometer_model: "6517b"
electrometer_config: {}