Statistical Function

90 views
Skip to first unread message

Natola Antonio

unread,
May 8, 2012, 6:10:01 AM5/8/12
to ia...@googlegroups.com

Good morning,

 

I would like to know if it’s possible in IADS real time compute “MIN value”, “MAX value” and “AVERAGE” for some parameters in a defined time?

 

In our particular case we want to compute that value at the end of test point.

 

We want start test point, stop test point and the end of this compute min, max and average for XXX parameter inside that test point.

 

Do you have some solution for this?

 

Have a nice day  


AgustaWestland - A Finmeccanica Company
 

Antonio Natola
AW609 - Data Acquisition

Strada per Bellinzago - Hangar ex Collegamenti c/o Aereoporto A.M.
Cameri - NO - Italy

Please consider the environment before printing this email.

This transmission is strictly confidential and intended solely for its addressee. If you are not the intended addressee please return to sender immediately; you should destroy this email and any use, disclosure or copying is not authorized and may be illegal. The information contained in this E-Mail and any subsequent correspondence may be subject to Export Control rules and its misuse could be a criminal offence in some jurisdictions. This transmission is not intended nor to be construed to impose any legally binding obligation upon the organization from which it originates ("the Company") and/or any of its subsidiaries or associated companies, none of which gives any representation or warranty as to the accuracy or completeness of this transmission's contents. No liability shall be assumed to any person resulting from the use of any information contained in this transmission or to any person who acts or omits to do anything in reliance upon it.  For legally required Company Information go to http://www.agustawestland.com/legal_entity.html
 
 
 


Adam Chant

unread,
May 8, 2012, 11:24:28 AM5/8/12
to ia...@googlegroups.com

Natola,

Yes, IADS has a whole section of statistical functions you can use with derived equations to get the results you are looking for.

In the Help system Select the Index Tab and type in Operators then press enter. The right window will display all of the operators that can be used in a derived equation and about 3/4 of the way down will be Statistical operators.

 

Min(Parameter, nPoints, [Optional] Reset)

Max(Parameter, nPoints, [Optional] Reset)

Avg(Parameter, nPoints, [Optional] Reset)

 

In each case you define the parameter, the number of data points to calculate and an optional reset input.  For your example you would want to set nPoints larger than the maximum time in a single test point. Then create a derived parameter (IAP if you want to record it) that resets the operators (MIN,MAX,AVG) when GetTestPointActive() = Start.

When the test point stops you can look at the current value of the data for each derived parameter to get the result for just the Test Point time frame.
Each time you start a new test point it will reset the operators and start the calculation all over again.

 

Here are the derived parameters to create:

PARAMETER = DERIVED EQUATION

TestPointOn = GetTestPointActive() != Prev(GetTestPointActive(),1) && GetTestPointActive() != 0

MinParm = MIN(XXX, 99999, TestPointOn)

MaxParm = MAX(YYY, 99999, TestPointOn)

AvgParm = AVG(ZZZ, 99999, TestPointOn)

 

That should do it. If you don’t want to lose the value of these parameters on scroll back then make them an IAP when you bring up the system and they will be recorded as parameters with the data set.

Let me know if you have additional questions.

 

 

Adam Chant

Symvionics, Inc.

IADS Application Engineer

(661) 273-7003 x 210

--
You received this message because you are subscribed to the Google Groups "IADS" group.
To post to this group, send email to ia...@googlegroups.com.
To unsubscribe from this group, send email to iads+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iads?hl=en.

image001.jpg
image002.png

Leonardo Lazaric

unread,
May 8, 2012, 3:25:56 PM5/8/12
to ia...@googlegroups.com
non resta che provarlo
image002.png
image001.jpg

Natola Antonio

unread,
May 15, 2012, 8:27:46 AM5/15/12
to ia...@googlegroups.com, Natola Antonio

Hi Adam,

 

I’ve tried to implement that derived equation but the result it’s not what we need.

In the attached file you can see :

 

-          First stripchart it’s the TestPointOn created with this equation

o   TestPointOn = GetTestPointActive() != Prev(GetTestPointActive(),1) && GetTestPointActive() != 0

 

-          Second stripchart in black it’s the parameter, red it’s his max value, green it’s min value :

o   Min(P0240_EU, 99999, TestPointOn)

o   Max(P0240_EU, 99999, TestPointOn)

 

-          The other strichart it’s the TESTPOINT that I’ve create to substitute your :

o   Max(P0240_EU, 99999, TESTPOINT)

o   Max(P0240_EU, 99999, TESTPOINT)

 

And the export coming from my parameter default table.

 

With this formula we expect “zero” data since the end of test point and, at the end of test point, we expect that the red and green line are close to the parameter (red maintain the max value and green the min value) but if we look at the end of the test point does not seem to work properly.

 

I'm doing wrong or is there something wrong in the algorithm?

 

 

 

 

 

 

Da: ia...@googlegroups.com [mailto:ia...@googlegroups.com] Per conto di Adam Chant
Inviato: martedì 8 maggio 2012 17:24
A: ia...@googlegroups.com
Oggetto: RE: [IADS] Statistical Function

User1.MAIN.114-13-07-50.614.0.zip
equation.csv

Adam Chant

unread,
May 15, 2012, 12:41:25 PM5/15/12
to ia...@googlegroups.com

Antonio,

I’m sorry, but there seems to be a problem with how IADS sees the GetTestPointActive() function for resetting.

Change the sample rate of TestPointOn to 1 and the nPoints for each derived from 99999 to 0.

This should give you a reset condition, but it will take at least 1 second after the test point is started to reset the Min and Max functions.

 

Min(P0240_EU, 0, TestPointOn)

 

Max(P0240_EU, 0, TestPointOn)

 

 

The alternative would be to use an IADS ActiveX Button to reset the MIN and MAX functions, but it would not be directly tied to a Test Point.

 

If you would like the button to start and stop the test point too then we can go through the steps to build an Action object with you.

image001.jpg
image002.png
Reply all
Reply to author
Forward
0 new messages