Expression Binding – Celsius to Fahrenheit


Learn how to convert a temperature from Celsius to Fahrenheit using an expression binding.

Video recorded using: Ignition 7.7


(open in window)

[00:00] Let's use the expression language to convert a temperature tag from Celsius to Fahrenheit on a window. Right now I have the temperature tag over here in my tag browser called Temp C, so it's in Celsius. I'm displaying that value on the screen here directly. What I want to do is take another numeric label, put it on the screen. I'm going to bind that to an expression that will do the conversion for me. I'm going to go down to the Value property. I'm going to bind that to an expression. Since I'm going to use the temperature C tag, the first thing I'm going to do is bring it in. I'm going to go over here to the top right and click on the tag button to bring in temperature C. Now that it's in, I can put the math around it to convert it from Celsius to Fahrenheit. The beginning, it's going to be 9/5 times temperature C. Then at the end, we're going to add 32. Now that I have the expression in there, I'm going to go ahead and press OK. You're going to see it now converted to Fahrenheit. Here's the Celsius value, here's the Fahrenheit value. Very simple to do this calculation using the expression language.

You are editing this transcript.

Make any corrections to improve this transcript. We'll review any changes before posting them.


Share this video