The special function registers (SFR – Special Function Register) are primarily intended for use in script files executed in the RadiaCode program. These scripts are used for technical purposes and allow the automation of certain stages of device setup, calibration, and pre-sale preparation. However, some of the SFRs may also be useful for RadiaCode users.
Access to the SFR can be obtained through the [[Variables Window|"Variables" window]]. Below is a list of register names whose values can be viewed and modified in this window.
**Group of registers providing access to spectrum calibration parameters based on radiation energy**
Spectrum calibration is performed to convert the spectrum channel number into a radiation energy value in keV using a second-degree polynomial of the form:
E = a0 + a1·x + a2·x²,
where
x is the channel number;
a0, a1, a2 are the calibration coefficients.
|Register Name|Access|Description|
|---|---|---|
|RC_VSFR_CHN_TO_keV_A0|read/write|Contains the current value of coefficient a0.|
|RC_VSFR_CHN_TO_keV_A1|read/write|Contains the current value of coefficient a1. <br> <br>Writing a value of 0 to this register restores the factory calibration constants in the registers RC_VSFR_CHN_TO_keV_A0, RC_VSFR_CHN_TO_keV_A1, and RC_VSFR_CHN_TO_keV_A2. If no factory values are available, the values will be set to 0, 1, and 0, respectively.|
|RC_VSFR_CHN_TO_keV_A2|read/write|Contains the current value of coefficient a2.|
---