I try to read ReactivePower from Load profile. ReactivePower has a scaler of 0.1 and from the blue book I can see that the unit is var-hour. I was wondering if the value that I read from the meter is already multiplied by scaler or do I have to multiply it by 0.1 to get to var-hour unit?
Scaler
Hi,
If you read unit and scaler first (attribute index 3), it's done automatically.
BR,
Mikko
Thanks for the reply. This
Thanks for the reply. This makes sense.
I have one more question regarding scaler and unit. I am trying to save those to database and when I do this:
if (it.getObjectType() == ObjectType.REGISTER || it.getObjectType() == ObjectType.EXTENDED_REGISTER) {
GXDLMSRegister reg = (GXDLMSRegister) it;
object.put("scaler", reg.getScaler());
object.put("unit", reg.getUnit());
}
Scaler is read fine but Unit always becomes `NoUnit`. Do you know what could be possibly wrong here?
As a note, when I read REGISTRIES using Gurux Director unit is displayed correctly.
Thanks
Scaler
Hi,
You need to read it first.
client.Read(it, 3);
BR,
Mikko
Yes, and for that I am using
Yes, and for that I am using `readScalerAndUnits()` method from the Gurux official example.
This should be enough right?
Scaler
Hi,
Can you compare same OBIS codes using GXDMSDirector and Java. They should be same.
BR,
Mikko
Hi,
Hi,
If I use example client and use readRowsByRange is scaler automatically applied?
Thanks
Hi,
Hi,
If I use example client found on your GitHub and use readRowsByRange is scaler automatically applied?
Thanks
scaler
Hi,
Yes, it's scaler s used automatically if the target is Register and scaler is read.
BR,
Mikko
In my case I read
In my case I read ProfileGeneric and I don't know if the values I receive are already multiplied by scalers.
Ok I figured this one out.
Ok I figured this one out. When I read ProfileGeneric only using readRowsByRange, scalers are not automatically applied.
Thanks for your help Mikko
scaler
Hi,
If the register is found from association view and it's read scaler is used automatically also with Profile Generics.
BR,
Mikko