The maroc3 module

Module for Omega’s MAROC3 front-end readout chips.

CalXML parameter Function
maroc3_allow_trig_or1_chans allow_trig_or1_chans_maroc3
maroc3_disallow_trig_or1_chans disallow_trig_or1_chans_maroc3
maroc3_allow_trig_or2_chans allow_trig_or2_chans_maroc3
maroc3_disallow_trig_or2_chans disallow_trig_or2_chans_maroc3
maroc3_enable_sum_chans enable_sum_chans_maroc3
maroc3_disable_sum_chans disable_sum_chans_maroc3
maroc3_enable_ctest_chans enable_ctest_chans_maroc3
maroc3_disable_ctest_chans disable_ctest_chans_maroc3
maroc3_pp_bandgap set_pp_bandgap_maroc3
maroc3_pp_dacs set_pp_dacs_maroc3
maroc3_small_dac set_small_dac_maroc3
maroc3_dac0 set_dac0_maroc3
maroc3_dac1 set_dac1_maroc3
maroc3_data_output_wlk set_data_output_wlk_maroc3
maroc3_inv_start_counter_wlk set_inv_start_counter_wlk_maroc3
maroc3_ramp_8bit_wlk set_ramp_8bit_wlk_maroc3
maroc3_ramp_10bit_wlk set_ramp_10bit_wlk_maroc3
maroc3_from_156_to_188 set_from_156_to_188_maroc3

API

cmd_maroc3.set_pp_bandgap_maroc3(maroc3_id, value)[source]

Activate (ON or 1) or desactivate (OFF or 0) power pulsing (pp) for bandgap

cmd_maroc3.set_pp_dacs_maroc3(maroc3_id, value)[source]

Activate (ON or 1) or desactivate (OFF or 0) power pulsing (pp) for all DACs

cmd_maroc3.set_small_dac_maroc3(maroc3_id, value)[source]

Decrease (ON or 1) or not (OFF or 0) the slope of DAC0 to have better accuracy.

cmd_maroc3.set_dac0_maroc3(maroc3_id, value)[source]

Set DAC0 (first discriminator) value (integer in 10-bit)

cmd_maroc3.set_dac1_maroc3(maroc3_id, value)[source]

Set DAC1 (second discriminator) value (integer in 10-bit)

cmd_maroc3.set_data_output_wlk_maroc3(maroc3_id, value)[source]

Enable (ON or 1) or disable (OFF or 0) data output. Must be OFF to use the Wilkinson ADC

cmd_maroc3.set_inv_start_counter_wlk_maroc3(maroc3_id, value)[source]

Set the start counter polarity switching

cmd_maroc3.set_ramp_8bit_wlk_maroc3(maroc3_id, value)[source]

Set 8bit ramp slope

cmd_maroc3.set_ramp_10bit_wlk_maroc3(maroc3_id, value)[source]

Set 10bit ramp slope

cmd_maroc3.disallow_trig_or1_chans_maroc3(maroc3_id, chans)[source]

Mask channels chans (no trigger output) on the first discriminator (OR1)

cmd_maroc3.allow_trig_or1_chans_maroc3(maroc3_id, chans)[source]

Unmask channels chans (trigger output visible) on the first discriminator (OR1)

cmd_maroc3.disallow_trig_or2_chans_maroc3(maroc3_id, chans)[source]

Mask channels chans (no trigger output) on the first discriminator (OR2)

cmd_maroc3.allow_trig_or2_chans_maroc3(maroc3_id, chans)[source]

Unmask channels chans (trigger output visible) on the first discriminator (OR2)

cmd_maroc3.set_from_156_to_188_maroc3(maroc3_id, value)[source]

Set value of the 33bits ranging from the bit 156 to 188. value has bitstream format (hexadecimal preceded by 0x, binary by 0b or decimal integer.

cmd_maroc3.set_preamp_gain_chans_maroc3(maroc3_id, chans, value)[source]

Set preamp gain for channels chans. 8-bit value

cmd_maroc3.enable_sum_chans_maroc3(maroc3_id, chans)[source]

Enable signal from channel chan for sum

cmd_maroc3.disable_sum_chans_maroc3(maroc3_id, chans)[source]

Disable signal from channel chan for sum

cmd_maroc3.enable_ctest_chans_maroc3(maroc3_id, chans)[source]

Enable signal from channel chan in Ctest input

cmd_maroc3.disable_ctest_chans_maroc3(maroc3_id, chans)[source]

Disable signal from channel chan in Ctest input

cmd_maroc3.dump_sc_maroc3(maroc3_id)[source]

Returns bitstream of maroc3_id in binary format

cmd_maroc3.set_missing_maroc3(maroc3_id, missing)[source]

Set maroc3 missing state

cmd_maroc3.init_maroc3(maroc3_id)[source]

Initialize a maroc3

cmd_maroc3.deinit_maroc3(maroc3_id)[source]

Deinitialize maroc3_id

cmd_maroc3.config_maroc3(maroc3_id, file, bitstream, pp_bandgap, pp_dacs, small_dac, dac0, dac1, data_output_wlk, inv_start_counter_wlk, ramp_8bit_wlk, ramp_10bit_wlk, from_156_to_188, allow_trig_or1_chans, disallow_trig_or1_chans, allow_trig_or2_chans, disallow_trig_or2_chans, enable_sum_chans, disable_sum_chans, enable_ctest_chans, disable_ctest_chans)[source]

Prepare the bitstream for configuring a chip

cmd_maroc3.get_param_maroc3(maroc3_id, param_name)[source]

parameter extraction