def get_presets(self): """ Reads the preset information from the EPICS mca record. Stores this information in the epicsMca object, and returns an McaPresets object with this information. """ presets = Mca.McaPresets() pvs = self.pvs['presets'] for pv in pvs.keys(): pvs[pv].array_get() pvs[pv].pend_io() presets.real_time = pvs['prtm'].getValue() presets.live_time = pvs['pltm'].getValue() presets.total_counts = pvs['pct'].getValue() presets.start_channel = pvs['pctl'].getValue() presets.end_channel = pvs['pcth'].getValue() presets.dwell = pvs['dwel'].getValue() presets.channel_advance = pvs['chas'].getValue() presets.prescale = pvs['pscl'].getValue() Mca.Mca.set_presets(self, presets) return presets