How to divide or multiply a SNMP Value
-
Change the data type to Numeric, then.
-
I will check, but its not Numeric
-
The data type is the type in Mango. The Write Type could still be set to gauge and still permit you to set it (and it would transform it back with the multiplier and augend on the way out). So, it being Numeric will only affect things in Mango.
-
Phil, I change the type to numeric, i lost the values...
-
Something else is going on there. You would have been clearly warned that you would lose the point value history of the multistate point when you changed it to numeric. Perhaps that could be improved.
But it sounds like those points are not polling. Do you have any events relating to this?
-
Hello, Phil. I check it and the integers work as numeric but gauge didnt work as numeric
Coudl I make a meta data source and add a script that divide in 10 or multiply for 0.1??? -
Hmm. And no events about why it's not working?
Yes you can definitely make a meta point and transform the value that way.
-
see it please, now i change again from numeric type to multistate type. now is working
Please could You tellme how to make a script. -
Please check for a related event on the events page.
Doesn't seem like the actual polling for data would be different for the different data types, The only part that is very concerned with the data type of the point is the variableToValue and valueToVariable functions but both of those should be able to handle a Gauge and Numeric. I shared with you the variableToValue function before: https://forum.infiniteautomation.com/topic/3887/snmp-host-testing
Please could You tellme how to make a script.
Create a meta data source. Create a meta data point. Add the point you wish to divide by 10 into context,
return p.value / 10; //where p is the variable name of the context point
-
Thanks so much, with Your script, now it is working... it is the most important thing, because the customer is testing this Scada platform.
Soon We will start checking what happen with this controller and them kind of SNMP Data.
Again, thanks for Your support