LabVIEW Formula Node Exercises
LabVIEW Formula Node Exercises
Task: Create a simple SubVI where you use the Formula Node to calculate a (slope) and b
(intercept) in the equation 𝑦 = 𝑎𝑥 + 𝑏 when you have two points (𝑥( , 𝑦( ) and (𝑥+ , 𝑦+ ).
Step 3: Create your Front Panel with your necessary Controls and Indicators.
Example:
https://www.halvorsen.blog
2
The formula for finding the slope (a) and intercept (b) is as follows:
𝑦+ − 𝑦( 𝑦+ − 𝑦(
𝑦 − 𝑦( = (𝑥 − 𝑥( ), 𝑤ℎ𝑒𝑟𝑒 𝑎 =
𝑥+ − 𝑥( 𝑥+ − 𝑥(
Step 8: Create the Input and Output Connectors. Right-click on the little icon in the upper
right corner and select “Show Connector”.
Step 9: Create an Icon using the Icon Editor. Right-click on the little icon in the upper right
corner and select “Edit Icon…”.