Closed KathrynBaker closed 8 years ago
This is probably best tested by looking at NDEMUONFE, as these changes are all in place there already.
Pull requests: https://github.com/ISISComputingGroup/EPICS-danfysikMps8000/pull/3 https://github.com/ISISComputingGroup/EPICS-ioc/pull/76
As a user of the Danfysik IOC I want to be able to read the current and voltage in the correct units, and set the current in the same unit as I read it. I also want to be able to read the current from the 8800 model, as at present this isn't possible as this value isn't on the correct A to D converter.
Changes to make: In EPICS\support\danfysikMps8000\master\danfysikMps8000App\protocol\dfkp.proto add the following:
In EPICS\ioc\master\DFKPS\DFKPS-IOC-01App\Db\DFKPS_8800_status.db add the following:
Note that this uses a RAW record to read in, and the new item in the protocol file to get the current, and uses a multiplier to convert the value that was read back into the desired magnitude for use as the CURR value
In EPICS\ioc\master\DFKPS\DFKPS-IOC-01App\Db\DFKPS_8000_status.db add the following:
The above supplies the conversion of units using a multiplier but still uses the old adc read from the common protocol files
In EPICS\ioc\master\DFKPS\DFKPS-IOC-01App\Db\DFKPS_common.db:
field(FLNK, "$(P)VOLT")
In EPICS\ioc\master\DFKPS\iocBoot\iocDFKPS-IOC-01\st-8800.cmd add
FRI=$(FACTOR_READ_I=1)
to the dbLoadRecordsIn EPICS\ioc\master\DFKPS\iocBoot\iocDFKPS-IOC-01\st-8800.cmd add
FRI=$(FACTOR_READ_I=1)
to the dbLoadRecordsIn EPICS\ioc\master\DFKPS\iocBoot\iocDFKPS-IOC-01\st-common.cmd for the first and unquialified dbLoadRecords, change the existing FAC=$(FACTOR) to
FWI=$(FACTOR_WRITE_I=1000)
and addFRV=$(FACTOR_READ_V=1)
andVADC=$(VADC=2)