You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing firstname.lastname@example.org.
We are experiencing playback issues from our video hosting provider. Please check back shortly.
2:15Property Binding – Bidirectional
Take topic challenge
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
Transcript(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.