°C/F and mm/inch conversion

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
matteo_b
Posts: 2
Joined: Wed Aug 22, 2012 12:39 am

°C/F and mm/inch conversion

Post by matteo_b »

Hi,

I have to create an application that will be used in different parts of the world. Therefore, numerical values must be displayed with different units: in ° C and F, mm and inch for example.
For the conversion of the values, no problem; but I also have to change the limits of these variables dynamically.
Is there a solution to do this?

Thanks in advance for your help

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: °C/F and mm/inch conversion

Post by mark.monroe »

You can use the "AnalogNumeric1_InputValueChanged" event in the scripting section of your screen. Then have an if statement that defines your limits based on a "units" tag.

If the user inputs an incorrect value, you can use a "Globals.Screen1.Show()" function to pop up a window that tells them the error they made.

The InputValueChanged event only fires when the user inputs a new value into the AnalogNumeric box.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply