Use a Sensor to Control Output State for Signal Generator (Capstone)

How do I use the output of a sensor to determine whether the output of a signal generator is turned on? By creating a calculations within the signal generator menu, I can use the value from a measurement and a logical expression to determine if the signal generator is turned on or off during a run of data. Need to have a latch to keep the generator on after meeting the turn on condition?
‎SwitchOut1‎=([Angle (°), ▼‎]~~~90)+sum1
‎sum1‎=sum(([Angle (°), ▼‎]~~~90))
Where ~~~ is the greater than sign. (The greater than sign is not allowed in YouTube comments)

More "How Do I?" Videos