- Messages
- 67
- Country

In one of my gauges, I'd like to use this code:
BUT, I'd like to have the maximum value not be 2500, but be specified by a variable. I tried
but that doesn't work (L:RPMt is a valid variable, and has the value I want to use). Can I use a variable to set the maximum value of an Expression to set rotation of an element?
Thanks!
Code:
<Rotation id="Rotation">
<PointsTo>SOUTH</PointsTo>
<Expression id="Expression">
<Minimum>0</Minimum>
<Maximum>2500</Maximum>
<Script>(A:Prop1 RPM, rpm) abs</Script>
</Expression>
<NonlinearityTable id="NonlinearityTable">
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>0</ExpressionResult>
<FloatPosition>69.000,97.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>1800</ExpressionResult>
<FloatPosition>21.000,101.000</FloatPosition>
</NonlinearityEntry>
</NonlinearityTable>
</Rotation>
BUT, I'd like to have the maximum value not be 2500, but be specified by a variable. I tried
Code:
<Maximum>(L:RPMt, number)</Maximum>
but that doesn't work (L:RPMt is a valid variable, and has the value I want to use). Can I use a variable to set the maximum value of an Expression to set rotation of an element?
Thanks!


note: min for "Maximum", max for "Minimum"


