Many controls have a low and high limit you can set under the Properties menu of that control. These limits are static. In this example however, you will see how to link the high limit of a control to another tag's value so that the limit dynamically changes. In our example we are using a linear gauge. The value box you see is linked to a tag which is updating the high limit of the linear gauge.
public void ValueBox1_EndValueChange(object sender, Tag tag, DateTime timestamp, TVQ tvq)
{
TVQ tvq1 = ValueBox1.Value;
double high_limit = tvq1.ValueToDouble();
LinearGauge1.LimitHigh = high_limit;
}
Comments
0 comments
Please sign in to leave a comment.