Calculated Issues

Discuss issues and ideas you have to configuring displays with PowerVision
twang

Calculated Issues

Post by twang » Thu Sep 01, 2011 3:38 am

Hello,

There is a caculated issue when doing the configuration:

Under Database, defined a userdefinedvariable.Temperature and added a calculation as following:

if("UserDefinedVariable.Temperature ">=32767,"UserDefinedVariable.Temperature"-65536,"UserDefinedVariable")

Transmission UserDefinedVariable.Temerpature <32767, can get the right UserDefinedVariable.Temerpature value;

When transmissing UserDefinedVariable.Temperature>=32767. take 45536 as an example ,

can get 45536-65536 = -20000; but sometimes, this value can be replaced by 65536 shortly .

What's the reason?

If anything is unclear, please feel free to let me know.

Thank you.

TERRY
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Calculated Issues

Post by ksaenz » Thu Sep 01, 2011 12:46 pm

Hello Terry,

I have a few questions:

How do you run this calculation event?
Do you use a state machine with a timer or fire on change?

Is this a calculation event of the variable "UserDefinedVariable.Temperature"?
Is the calculation event checking the variable's own value to re-calculate itself?

Do you have a variable called "UserDefinedVariable"?
It appears to be referenced in the else part of the if fucntion.

Thank you,

ksaenz