First page Back Continue Last page Graphics
Dimension Array for Output Measurements
- In websrv65_v310/src/appcfg.c
- Change:
- WORD AdcValues[ADC_CHANNELS];
- To:
- int AdcValues[ADC_CHANNELS];
- Long metric = 0;
- In websrv65_v310/src/projdefs.c
- Change:
- To:
- Set to the number of breakers to be polled
- Comment out or delete the test for ADC_CHANNELS<0 || ADC_CHANNELS>12
- Change:
- extern WORD AdcValues[ADC_CHANNELS];
- To:
- extern int AdcValues[ADC_CHANNELS];
- extern long metric;
- ADC_CHANNELS was intended to provide access to each A/D pin on the PIC. We redefine it for independent measurement for each input on every interface module. Define this for only the number intended to be measured (less than or equal to 16 times the number of connected interface modules).
- Adc_Values[ADC_CHANNELS] array was intended to be A/D samples … strictly positive values from 0 to 1023. We redefine it to be the max – min value of the output of the IIR digital filter. Numerics should be “int” rather than “WORD” but since our “difference” should always be positive, probably not really important to change.