Support Forums
Eliminating negative values from pyranometer

Hey,

Radiometers due to their measurement method, send negative values during night and during cloudy periods depending on the ambient temperature.
This brings a problem when calculating statistical values,especially during sunrise and sunset.

To overcome this problem I set up an 1S schedule that transforms negative values into 0 and store them into a new CV that will be used in the hourly schedule.

81CV("GHI(1s)~W/m2",FF2,NR)=80CV*(80CV>0)

The problem is that this seems very demanding for the datataker especially for the relays.

Is there any way to overcome this and maintain 1 second readings for the statistical calculations?

This is part of the program:

RS1S
RA"1s"("B:",DATA:OV:1D)1S
'readings
2+I(=80CV,S1,W)'........................GHI
2-I(=90CV,S2,W)'........................DHI
3I(=100CV,S3,W)'.......................DNI
'negative values elimination
81CV("GHI(1s)~W/m2",FF2,NR)=80CV
(80CV>0)
91CV("DHI(1s)~W/m2",FF2,NR)=90CV(90CV>0)
101CV("DNI(1s)~W/m2",FF2,NR)=100CV
(100CV>0)

RC"Horario"("B:",DATA:OV:8D)1H 'hourly schedule
81CV("GHI->h_int~kJ/m2",INT,Y11,FF2,NR)("GHI->h_num~",NUM,NR)
91CV("DHI->h_int~kJ/m2",INT,Y11,FF2,NR)("DHI->h_num",NUM,NR)
101CV("DNI->h_int~kJ/m2",INT,Y11,FF2,NR)("DNI->h_num~",NUM,NR)

Hey, Radiometers due to their measurement method, send negative values during night and during cloudy periods depending on the ambient temperature. This brings a problem when calculating statistical values,especially during sunrise and sunset. To overcome this problem I set up an 1S schedule that transforms negative values into 0 and store them into a new CV that will be used in the hourly schedule. 81CV("GHI(1s)~W/m2",FF2,NR)=80CV*(80CV>0) The problem is that this seems very demanding for the datataker especially for the relays. Is there any way to overcome this and maintain 1 second readings for the statistical calculations? This is part of the program: RS1S RA"1s"("B:",DATA:OV:1D)1S 'readings 2+I(=80CV,S1,W)'........................GHI 2-I(=90CV,S2,W)'........................DHI 3*I(=100CV,S3,W)'.......................DNI 'negative values elimination 81CV("GHI(1s)~W/m2",FF2,NR)=80CV*(80CV>0) 91CV("DHI(1s)~W/m2",FF2,NR)=90CV*(90CV>0) 101CV("DNI(1s)~W/m2",FF2,NR)=100CV*(100CV>0) RC"Horario"("B:",DATA:OV:8D)1H 'hourly schedule 81CV("GHI->h_int~kJ/m2",INT,Y11,FF2,NR)("GHI->h_num~",NUM,NR) 91CV("DHI->h_int~kJ/m2",INT,Y11,FF2,NR)("DHI->h_num",NUM,NR) 101CV("DNI->h_int~kJ/m2",INT,Y11,FF2,NR)("DNI->h_num~",NUM,NR)

Hi workhorse,

Your code is correct for eliminating negative value.

What did you mean by demanding for relays?
Did you use relay in your connection?

Best regards,
Rudy Gunawan

Hi workhorse, Your code is correct for eliminating negative value. What did you mean by demanding for relays? Did you use relay in your connection? Best regards, Rudy Gunawan

Good afternoon workhorse,

The relays will last for many years. We used the same ones in the DT505 and there are logger over twenty years old still running.

Cheers,
Roger

Good afternoon workhorse, The relays will last for many years. We used the same ones in the DT505 and there are logger over twenty years old still running. Cheers, Roger

Thank you for the answers,

I'm referring to the clicks that you hear every time a schedule is run, in this case every second, 86400 clicks per day.

Good to know they will last long. Knowing this I will maintain RA1S to eliminate the negative values.

I take the opportunity to understand more how the logger works. I would like to know if what I suppose is correct:

  1. As I understand the statistical schedule will do readings according to what is defined by default or by the RS entry in the program.
  2. It will read all the channels listed in any schedule in the program.
  3. Those readings are stored in a volatile memory (if you have a power cut and the battery runs out, these data are gone)?
  4. When it's time for a schedule the datataker goes to read on the volatile memory does the statistical treatment that it is programmed to. After, it will write the values on some more secure memory (this is when you hear the clicking)?

Best Regards,
Luis

Thank you for the answers, I'm referring to the clicks that you hear every time a schedule is run, in this case every second, 86400 clicks per day. Good to know they will last long. Knowing this I will maintain RA1S to eliminate the negative values. I take the opportunity to understand more how the logger works. I would like to know if what I suppose is correct: 1. As I understand the statistical schedule will do readings according to what is defined by default or by the RS entry in the program. 2. It will read all the channels listed in any schedule in the program. 3. Those readings are stored in a volatile memory (if you have a power cut and the battery runs out, these data are gone)? 4. When it's time for a schedule the datataker goes to read on the volatile memory does the statistical treatment that it is programmed to. After, it will write the values on some more secure memory (this is when you hear the clicking)? Best Regards, Luis

Good afternoon workhorse,

Yes the relay click every time an analog channel is sampled.
To answer your questions

1/ Yes. There are two parts to making a statistical reading.
How often you take a sample which is controlled by statistical sample rate and how often the stats are reported which is set in the reporting schedule.

2/ No. The statistical schedule will only sample those channels which have statistical channel option in the channel definition.

3/ Yes statistical reading will reset if the power is lost and the internal Lithium battery is flat.

4/ Yes and no. The DT80 doesn't keep every value it samples but does a partial reduction of the data. (E.g for calculating average it keeps the sum of the readings and the number of samples)
The schedule that reports the stats reading is where the numbers are saved to the internal disk (If logging is turned on)
No this is not when the relays click, the relays click when the channel is sampled.

Cheers,
Roger

Good afternoon workhorse, Yes the relay click every time an analog channel is sampled. To answer your questions 1/ Yes. There are two parts to making a statistical reading. How often you take a sample which is controlled by statistical sample rate and how often the stats are reported which is set in the reporting schedule. 2/ No. The statistical schedule will only sample those channels which have statistical channel option in the channel definition. 3/ Yes statistical reading will reset if the power is lost and the internal Lithium battery is flat. 4/ Yes and no. The DT80 doesn't keep every value it samples but does a partial reduction of the data. (E.g for calculating average it keeps the sum of the readings and the number of samples) The schedule that reports the stats reading is where the numbers are saved to the internal disk (If logging is turned on) No this is not when the relays click, the relays click when the channel is sampled. Cheers, Roger
29
4
3
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft