Area channel node
Calculates the area under a channel’s graph, which is the same as calculating the “inte…
This chop calculates the area under a channel’s graph, which is the same as calculating the “integral” of a channel, or “integrating” the channel.
It uses the graph of each input channel and calculates the area between the graph and the horizontal 0-value line. It finds the area between a Start and End index, which is by default the entire chop range.
The area is calculated by adding the channel values for every sample, starting with the sample at the Start index. Negative values reduce the area. The area is converted to the Units by dividing by samples per Unit. The cumulative values are put in the output channels.
This chop is particularly useful for calculating a point’s position from its velocity (speed) or acceleration. If the input is a velocity, a First Order integral will return the position. If the input is an acceleration, a Second Order integral will return the position, and a First Order integral will return the velocity.
The first input contains the channels to be integrated.
The second input is used to reset the area to zero. At samples where the second input is zero or less, the area is reset to zero. A Wave chop passed into the second input causes the Area to be zero for half a cycle.
The third input is an optional start/end reference. If connected, it will override the parameters in the Range page and integrate the first input’s channels between the start and end of the reference input.
Parameters
Area
Order | Determines the order of the integral to use. |
First Constant | Constant to add to the entire result after integrating once. |
Second Constant | Constant to add to the entire result after integrating twice. |
Third Constant | Constant to add to the entire result after integrating three times. |
Interval specifying the range to integrate over
Unit Values | Determines whether the start and end parameters listed below are absolute or relative to the channel’s start and end. |
Start | The start of the range over which to compute the area. |
End | The end of the range over which to compute the area. |
Locals
| C | current channel index |
| NC | total number of channels |
Examples
The following examples are specifically designed to demonstrate this node:
Area with one input
$HFS/mozilla/documents/examples/nodes/chop/area/Area01.cmd
Area with three inputs
$HFS/mozilla/documents/examples/nodes/chop/area/Area03.cmd
Area with two inputs
$HFS/mozilla/documents/examples/nodes/chop/area/Area02.cmd
The following examples use this node:
Slope
$HFS/mozilla/documents/examples/nodes/chop/slope/Slope.cmd
