Subtract From Analog Value: Difference between revisions

From Visuino
Jump to navigation Jump to search
Created page with "File:TSubtractFromAnalogValue.png == Summary == {{:Summaries:Subtract From Analog Value}} == Description == In Visuino, the "Subtract Analog Value" component is used to subtract an analog value from another analog value. Example: If you set the constant value in the component to 15 and the value on the "In" pin is 5, then the "Subtract Analog Value" component will subtract the value on the "In" pin (5) from the constant value (15). So, the output value on the "Out"..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[File:TSubtractFromAnalogValue.png]]
[[Image:TSubtractFromAnalogValue.png]]


== Summary ==
== Summary ==
{{:Summaries:Subtract From Analog Value}}
Subtracts the input analog value from a constant.


== Description ==
== Description ==
In Visuino, the "Subtract Analog Value" component is used to subtract an analog value from another analog value.
The **Subtract From Analog Value** component outputs the result of subtracting the input analog signal from a fixed constant. 
Example: If you set the constant value in the component to 15 and the value on the "In" pin is 5, then the "Subtract Analog Value" component will subtract the value on the "In" pin (5) from the constant value (15).
This is useful for reversing relationships, offset correction, or ensuring outputs decrease as inputs increase.
So, the output value on the "Out" pin will be the result of 15 - 5, which equals 10.
 
**Example:** 
If the constant is set to `15` and the value on the **In** pin is `5`, the output on the **Out** pin will be
15 - 5 = 10.


<b>Diagram:</b>
<b>Diagram:</b>


[[File:TSubtractFromAnalogValue.Preview.png]]
[[Image:TSubtractFromAnalogValue.Preview.png]]
 
== Properties ==
*'''Enabled''' – Enables or disables the component. 
*'''Value''' – The constant value from which the input is subtracted. 
 
== Pins ==
=== Input Pins ===
*'''In''' – Analog input signal. 
 
=== Output Pins ===
*'''Out''' – Analog output after subtraction. 


== Categories ==
== Categories ==
Line 17: Line 31:
*[[File:TMathToolbarCategory.png|link=Category:Math]] [[Category:Math]] - {{:Summaries:Summary Category Math}}
*[[File:TMathToolbarCategory.png|link=Category:Math]] [[Category:Math]] - {{:Summaries:Summary Category Math}}
*[[File:TArduinoFilterToolbarCategory.png|link=Category:Analog]] [[Category:Filter]] - {{:Summaries:Summary Category Filter}}
*[[File:TArduinoFilterToolbarCategory.png|link=Category:Analog]] [[Category:Filter]] - {{:Summaries:Summary Category Filter}}
== Properties ==
*[[TArduinoCommonClockedAnalogEnableSource.Enabled|Enabled]] - {{:Summaries:Summary Component Enabled}}
== Pins ==
*[[TArduinoCommonAnalogFilter.InputPin|In]] - {{:Summaries:Summary InputPin Analog}}
*[[TArduinoCommonAnalogSource.OutputPin|Out]] - {{:Summaries:Summary OutputPin Analog}}


[[Category:Components]]
[[Category:Components]]

Latest revision as of 06:49, 18 September 2025

File:TSubtractFromAnalogValue.png

Summary

Subtracts the input analog value from a constant.

Description

The **Subtract From Analog Value** component outputs the result of subtracting the input analog signal from a fixed constant. This is useful for reversing relationships, offset correction, or ensuring outputs decrease as inputs increase.

    • Example:**

If the constant is set to `15` and the value on the **In** pin is `5`, the output on the **Out** pin will be: 15 - 5 = 10.

Diagram:

Properties

  • Enabled – Enables or disables the component.
  • Value – The constant value from which the input is subtracted.

Pins

Input Pins

  • In – Analog input signal.

Output Pins

  • Out – Analog output after subtraction.

Categories