The Sum function in IADS can be used to accumulate values over a specified number of points, and this total can be used in a derived equation that triggers based on a threshold.
Here's how it works:
For example, you could create a derived parameter that calculates the sum of a parameter over the last 100 data points, and then create another derived parameter that checks if that sum is greater than a certain threshold. This second parameter
could then be used to trigger an action.
To use the reset functionality in a derived function like
Sum, you can include an optional Reset argument in the function call. The
Sum function calculates a running total of a specified parameter, and the optional
Reset argument allows you to restart the summation process.
Here's how it works:
To implement a reset, you will typically use a condition that triggers the reset. Here is an example of how it could be used:
Here are some things to consider when using the reset argument:
Using the optional reset argument in the Sum function gives you greater control over when the summation begins again. By using a conditional statement to trigger the reset, you can dynamically control the accumulation of data based on the logic required by your application.
Thank you,
Adam Chant
Project Engineer, IADS
Curtiss-Wright
190 Sierra Court A-3 Palmdale, CA 93550
T: 661.273.7003 x 2210
ach...@curtisswright.com
From: ia...@googlegroups.com <ia...@googlegroups.com>
On Behalf Of Aykut Sever
Sent: Wednesday, January 22, 2025 4:50 AM
To: IADS <ia...@googlegroups.com>
Subject: [IADS] Usage of Sum function [EXTERNAL]
WARNING: This message came from an external source. Please exercise caution and proper judgment when opening any attachments, clicking links or responding to this message.
--
You received this message because you are subscribed to the Google Groups "IADS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
iads+uns...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/iads/a8e47318-401c-42c9-84b6-393b76c919f9n%40googlegroups.com.
Aykut,
This Argument is missing the correct naming of the parameter. From your explanation the parameter name is x1512 and the equation shows only 1512.
The {} are used for parameters that are made up of all numbers and it tells the Derived Engine to NOT try and calculate what is inside of the {}.
If 1512 is the parent parameter then {1512} would be the correct way to represent it in a derived parameter. Having parameters with their names made up of only numbers is not recommended as it can quickly become confusing to the viewer
and can potentially cause computational errors if the {} naming convention is not used.
IF({1512}-65536)/65536*20), 1, 0)
Additionally there is no conditional statement for the IF portion of the statement and the parenthesis are unbalanced. The condition portion of the equation only accepts a binary result and any result that is not 1 or 0 returns as 1. So in the above case the results of {1512}-65536/65536*20 aren’t either 1 or 0 so it always returns 1.
Thank you,
Adam Chant
Project Engineer, IADS
Curtiss-Wright
190 Sierra Court A-3 Palmdale, CA 93550
T: 661.273.7003 x 2210
ach...@curtisswright.com
From: ia...@googlegroups.com <ia...@googlegroups.com>
On Behalf Of Aykut Sever
Sent: Monday, January 27, 2025 1:22 AM
To: IADS <ia...@googlegroups.com>
Subject: Re: [IADS] Usage of Sum function [EXTERNAL]
WARNING: This message came from an external source. Please exercise caution and proper judgment when opening any attachments, clicking links or responding to this message.
Hi all,
--
You received this message because you are subscribed to the Google Groups "IADS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
iads+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iads/f0b1f844-bbfc-447a-a171-83b5f0867dc4n%40googlegroups.com.