Added option to retrieve the pumps price pattern
Added to ENgetlinkvalue function like the speed\status pattern. use the new EN_PRICEPATTERN constant.
This commit is contained in:
@@ -1460,6 +1460,11 @@ int DLLEXPORT ENgetlinkvalue(int index, int code, EN_API_FLOAT_TYPE *value)
|
||||
v = (double)Pump[PUMPINDEX(index)].Upat;
|
||||
break;
|
||||
|
||||
case EN_PRICEPATTERN:
|
||||
if (Link[index].Type == PUMP)
|
||||
v = (double)Pump[PUMPINDEX(index)].Epat;
|
||||
break;
|
||||
|
||||
case EN_EFFICIENCY:
|
||||
getenergy(index, &a, &v);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user