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
Antonio NatolaAW609 - Data Acquisition
Strada per Bellinzago - Hangar ex Collegamenti c/o Aereoporto A.M.Cameri - NO - ItalyTel. +39 0321 511948 - Tel #2: +39 0321 511952 - Fax +39 0321 511953
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.
--
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.
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
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.