Support Forums
Negative values on average data

I use a DT82i with one device connected on rs232 host port. I retrieve the data frame from this device by decoding on a manual channel. Some values are sometimes negative due to the background measurement. I record the average of these values on CV every 10 min. I would like eject the neg values, how may I proceed ?
Thank you

I use a DT82i with one device connected on rs232 host port. I retrieve the data frame from this device by decoding on a manual channel. Some values are sometimes negative due to the background measurement. I record the average of these values on CV every 10 min. I would like eject the neg values, how may I proceed ? Thank you

Hi thoron222,

Apology for the very long response delay; there was some new arrangement in the office.

You can utilize an IF THEN ELSE statement to filter out the negative value. Assuming the reading is a voltage and stored in 1CV.

RA1M
1V(=1CV,W)
2CV("Voltage~V")=(1CV<0)?0:1CV

I use W to disable logging in the voltage channel as we have no need to use the reading. For the 2CV, if 1CV is less than 0 (negative) assign 0 to 2CV (true state) otherwise assign the 1CV reading (false state).

Best regards,
dataTaker Expert

Hi thoron222, Apology for the very long response delay; there was some new arrangement in the office. You can utilize an IF THEN ELSE statement to filter out the negative value. Assuming the reading is a voltage and stored in 1CV. ```` RA1M 1V(=1CV,W) 2CV(&quot;Voltage~V&quot;)=(1CV&lt;0)?0:1CV ```` I use W to disable logging in the voltage channel as we have no need to use the reading. For the 2CV, if 1CV is less than 0 (negative) assign 0 to 2CV (true state) otherwise assign the 1CV reading (false state). Best regards, dataTaker Expert
edited Dec 13 '21 at 1:06 am
53
1
2
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