You are here

Arithmetic Expressions

26 July, 2019 - 09:47
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at

The next program converts degrees from Fahrenheit to Celsius using the formula


In the Block Diagram window, select the subtract, multiply and divide from the Functions » Mathematics » Numeric menu

Figure 1.10 Numeric Operations 

Wire the subtract, multiply and divide functions as shown in Figure 3.11.

Figure 1.11 Subtract, Multiply and Divide 

Right click on the upper left terminal of the subtract function and select Create » Control from the pop-up menu.

Figure 1.12 Create Control 

Re-labelx as Fahrenheit and wire the terminal as shown in Fahrenheit Input Control.

Figure 1.13 Fahrenheit Input Control 

Right click on the lower left terminal of the subtract function and select Create »Constant and type 32.0.

Figure 1.14 Fahrenheit Numeric Constant 

Repeat the process to generate numeric constants for the multiply and divide function with 5.0 and 9.0 respectively.

Figure 1.15 Fahrenheit Numeric Constants  

To complete the program, right click on the right terminal of the divide function and select Create »Indicator. Re-label x/y as Celsius. The fnal diagram is shown in Fahrenheit to Celsius G Diagram

Figure 1.16 Fahrenheit to Celsius G Diagram 

Switch to the Front Panel window to run the program. Save the program as Try various Fahrenheit values to see the corresponding Celsius values. You have successfully finished a Fahrenheit to Celsius calculator.

Figure 1.17 Fahrenheit to Celsius calculator