Sample Rate when Exporting from Display

92 views
Skip to first unread message

Joe Young

unread,
Apr 12, 2012, 7:25:27 PM4/12/12
to IADS
I need to export a “mixed bag” of data from a bunch of old flights.
There is one parameter that we need that is currently filtered on the
display and we want this filtered data, preferable without having to
create a new derived parameter and post process past flights.

Since the filtered data is exported when exporting just the selected
displays, my initial thought was to create an analysis window with all
of the parameters then export to .csv. This worked great, with one
problem, some of the parameters are being recorded at 1000 hz and the
file created defaulted to that sample rate. I need to desample them
down (to work within Excel), is there a way to do this in IADS?

My second alternative was to export just the filtered parameter, then
export a datagroup at the same sample rate (and same time) and merge
the two files.

Any other thoughts? Thank you.

Adam Chant

unread,
Apr 12, 2012, 7:49:59 PM4/12/12
to ia...@googlegroups.com
You can assign \\DecimationFactor=xx or \\SampleRate=xx in the
PropertyBag of the data group, but an export will default all parameters
in a given data group to the same sample rate in any case. If you have
multiple parameters with different sample rates you will have to export
each parameter set grouped by sample rate or they will all be either
filled or decimated to match the settings assigned in the Property Bag.

Adam Chant
Symvionics, Inc.
Application Support Engineer
(661) 273-7003 x 210

On 4/12/2012 4:25 PM, Joe Young wrote:
> I need to export a �mixed bag� of data from a bunch of old flights.

James Bretz

unread,
Apr 12, 2012, 8:04:06 PM4/12/12
to ia...@googlegroups.com
Joe,

It's a bit of work to put all the parameters into a datagroup, but it will
give you more control. If you already have the file, maybe you can decimate
it in Excel (macro?).

For the DataGroup route, as Adam mentions, you can set your target SR. The
filter should be whatever is set in the ParameterDefaults table, unless you
want to disable or override it (see options table). Search for "Data Group
Setup" in the help file for the options.

Jim

--------------------------------------------------
From: "Adam Chant" <ad...@iads-soft.com>
Sent: Thursday, April 12, 2012 4:49 PM
To: <ia...@googlegroups.com>
Subject: Re: [IADS] Sample Rate when Exporting from Display

> --
> 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.
>

Joe Young

unread,
Apr 13, 2012, 10:31:38 AM4/13/12
to IADS
I found exactly what I needed. I did not see the option to filter the
data being exported (using \\Filter=BW,BP,1.0-10.0,2). Now I can
export the filtered data seperately from the non-filtered data and
merge the two files. This was one of those cases were we thought we
only wanted to see the filtered data so we didn't create a derived
parameter and we didn't have the ability to post process and filter
the data (without programing and validatin it).

Thank you for your help, should have known to look for that feature.

James Bretz

unread,
Apr 13, 2012, 3:14:08 PM4/13/12
to ia...@googlegroups.com
Joe,

Glad you got it going.... and don't fault yourself. We don't exactly
advertise that feature well in the gui. We did, however, add a data export
wizard to the latest version of Iads that walks you through everything
(building parameter list, picking options, etc). I'm sure that would have
helped :)

Jim

--------------------------------------------------
From: "Joe Young" <joeyo...@gmail.com>
Sent: Friday, April 13, 2012 7:31 AM
To: "IADS" <ia...@googlegroups.com>
Subject: [IADS] Re: Sample Rate when Exporting from Display

Joe Young

unread,
Apr 13, 2012, 6:21:15 PM4/13/12
to IADS
Ok, almost there. When use the following:

\\SampleRate=200\\HeaderRows=Parameter,ShortName,Units\\Filter=BW,BP,
15.0-35.0,6

I get the message: "The specified filter: 'BW,BP,15.0-35.0,6' is
invalid. Would you like to continue exporting with no filter applied?"

When I click "OK" the data exports, and when I open the data it
appears filtered (exported the data on the filtered display and it is
identical and matches the strip chart when I plot it).

If I change the "=" to ":" as indicated when the hint pops up on the
title of the chart per the instructions I do not get the error but the
data is not filtered.

Is there a problem with my original syntax, or can I ignore the error
message and use the data?

I am using IADS 7.1

Thank you for the help.

James Bretz

unread,
Apr 13, 2012, 6:34:02 PM4/13/12
to IADS
Joe,

Hold on a minute and we'll try it out. Most likely the filter spec is ok
and the msgBox is coming up in error (and can be ignored).

We'll let you know asap,
Jim

--------------------------------------------------
From: "Joe Young" <joeyo...@gmail.com>

Sent: Friday, April 13, 2012 3:21 PM


To: "IADS" <ia...@googlegroups.com>
Subject: [IADS] Re: Sample Rate when Exporting from Display

> Ok, almost there. When use the following:

James Bretz

unread,
Apr 13, 2012, 7:21:25 PM4/13/12
to IADS
Joe,

Well, looks like there is actually a filtering error, but the msgBox isn't
giving you all the information (and more). You might have to do some legwork
to fix it.

Essentially, this is what's going on:

1) The parameters in the dataGroup are created
2) The filter spec string is parsed and applied to each parameter (the first
spec you wrote is correct BTW)
3) If the filter setting fails, it pops up that msgBox then stops applying
filters to the rest of the parameters (bad)

Right now it appears as though *some* of the parameters are being filtered
and some are not.... and you don't know which ones are which (bad). So for
sure we have a bug that we need to fix. It should attempt to set the filter
on all parameters and tell you which ones failed (and why). We're working on
that now.

What you need to do ultimately is get rid of that msgBox. If it appears then
one of the parameters has a problem with that filter spec. The task is to
find out which ones and how to correct the problem so you can export without
seeing that error.

When applying a filter to a parameter, there's a number of rules it checks.
In brief, if the high-cutoff is greater than or equal to half of the sample
rate of the parameter, it will error (if highcutoff >= sampleRate/2 then
fail).

I'm guessing that some of the parameters are of lower sample rates. Either
you need to change the filter spec accordingly, or you need to remove those
parameter and stick them into another group (with a different filter
setting)..... OR you can forgo the filter override in the dataGroup and let
them use the filter settings in the PD table.

For testing, you can drop the parameters into a stripchart and use the
filter dialog (applying BW,BP,15.0-35.0,6) to each parameter until you see a
failure dialog.... or you can just spot check the sample rate and find
anything is less than 70sps. It might be easy as dropping the upper band on
your filter spec.

Hope this helps,
Jim

--------------------------------------------------
From: "Joe Young" <joeyo...@gmail.com>

Sent: Friday, April 13, 2012 3:21 PM


To: "IADS" <ia...@googlegroups.com>
Subject: [IADS] Re: Sample Rate when Exporting from Display

> Ok, almost there. When use the following:

Joe Young

unread,
Apr 14, 2012, 3:30:47 PM4/14/12
to IADS
Jim,
Thank you for the help. I had a couple of lower frequency house
keeping parameters in there that I should not have had in there (they
are the last in the data group so that would explain why everything
was filtered).

For the future revision, would you list the parameters that fails to
pass one of the rules, then export (or give the user the option to
export) the unfiltered parameter (I tried to export a string with the
data just for fun and I got the error but all of the parameters were
filtered and the string exported).

The reason I ask is that I often like to keep the Flight
Number,Aircraft, Pilot (which are both strings in our case) in the
data group. Selfish I like to use the information to automatically
populate the header of the plots so I don't have to type them in.

Thank you for your help.
Joe

James Bretz

unread,
Apr 16, 2012, 11:53:29 AM4/16/12
to ia...@googlegroups.com
Joe,

Yep, definitely.... and honestly, if they type is ascii it shouldn't really
attempt to apply or complain about the filter.

Jim

--------------------------------------------------
From: "Joe Young" <joeyo...@gmail.com>

Sent: Saturday, April 14, 2012 12:30 PM


To: "IADS" <ia...@googlegroups.com>
Subject: [IADS] Re: Sample Rate when Exporting from Display

> Jim,

Michael Jones

unread,
Apr 16, 2012, 2:08:59 PM4/16/12
to ia...@googlegroups.com, James Bretz
Ditto for parameters of type "discrete"

Joe Young

unread,
Apr 17, 2012, 2:27:35 PM4/17/12
to IADS
Thank you for the help. This is really a great feature, it saved us
tremendous amount of time, the rest of the features are the icing on
the cake!

Tran, Quincy Q CTR The Boeing Company, H201

unread,
Apr 23, 2012, 4:33:34 PM4/23/12
to ia...@googlegroups.com
Hi Chant,

I wonder if IADS let us "capture" the moment of Start/Stop an AW and then to re-set a stripchart to zero value for a Stop action? Another way of saying, does it have a "variable" that let us know there has been a Start or a Stop?

Thanks for your prompt support!

Regards,
Quincy

Adam Chant

unread,
Apr 23, 2012, 5:06:48 PM4/23/12
to ia...@googlegroups.com
Quincy,
You can use the IADS Action Object to set a constant then use a derived
equation as an IAP to GetConstant("ConstantName")

Under what conditions are you having a start/stop event? From a Test Point
or beginning of mission or user input of some sort? Provide me with some
details and I'll do my best to point you in the most efficient direction.


Adam Chant
Symvionics, Inc.
IADS Application Engineer
(661) 273-7003 x 210

Tran, Quincy Q CTR The Boeing Company, H201

unread,
Apr 24, 2012, 8:26:37 AM4/24/12
to ia...@googlegroups.com
Thanks for your quick response. The Start/Stop event is caused by user by clicking on the Green/Red button on AW. Currently I have (briefly):

Constant Type Value
ResetD Discrete 1

ResetC = GetConstant("ResetD")

VALUE_D = ResetC == 1? 0 : VALUE

I was taking a look at IADS Action object, but I am not sure how to set its property list.

Please advise. Thanks!
Quincy

Hi Chant,

Regards,
Quincy


Adam Chant

unread,
Apr 24, 2012, 11:10:33 AM4/24/12
to ia...@googlegroups.com
Quincy,
I'm sorry I misunderstood your question. There currently is no easy
mechanism in IADS to return the status of the analysis window. The only
option at this time would be to build a function that returns the status of
the window to an activeX object or custom derived function.
I will however suggest that we add this feature as soon as possible as I can
see where it would be a benefit under many circumstances.

Until that time it can probably be built using an vbs script and fired off
from the Iads Action Object.

Let me spend a little time on this and post and update later using a script
driven from the action object.

Adam Chant

unread,
Apr 24, 2012, 12:23:23 PM4/24/12
to ia...@googlegroups.com
Quincy,
OK here is what I came up with as a quick solution:
A. Build a vbscript to evaluate the status of the active Analysis window.
B. Build a trigger derived parameter to drive the Action Object.
C. Build a derived Parameter to get the constant value.
D. Add Action Object to Active Analysis window.

A. See the attached txt file with this email.
1. Save it to a local directory and rename it with the suffix .vbs
B. Create a derived parameter to drive the Action Object.
1. Parameter = HeartBeat / ParamType = float / DataSourceArguement =
SquareWave(0,1,2) / UpdateRate = 4
C. Build a derived Parameter to return Constant Value.
1. Parameter = WindowState / ParamType = ascii / DataSourceArguement
= GetConstant("YOURWINDOWIsRealTime") / UpdateRate = 1.0
D. Add Action Object to Analysis Window.
1. Drop Action Object to Analysis window.
2. Right Click / Properties.
3. Drag Parameter HeartBeat to ExecuteAction Property.
4. Select RunVBScript for ActionType Property.
5. Input the full path to the attached vbs file in ActionArgument
Property.
6. Set FreezeState Property To Never

The details of the script are as follows:
The IADS object is created after evaluating if IADS is running.
Then it gets the RealTime status of the Active Analysis window
After that it updates the status to the Constant Table
(using the Window name (spaces removed) and 'IsRealTime')

You can drop WindowState to a Text Object or use it to drive other
functions. Just remember to set the Freeze State of the object to Never or
you won't see the value change from True to False.

I hope that works for you and let me know if you would like additional
assistance on this.

awrealtime.txt

Tran, Quincy Q CTR The Boeing Company, H201

unread,
Apr 24, 2012, 3:14:19 PM4/24/12
to ia...@googlegroups.com
If you could come up with any idea/suggestion to implement this, please forward to me, and I so much appreciate that.
Thanks, again...

Sherman, Paul

unread,
May 1, 2012, 3:48:56 PM5/1/12
to ia...@googlegroups.com
Hello :

A week or two ago Jim pointed me to some example code "SampleEveryDataPoint". In the code
is a function "PrepareOutput" that is called by Iads when a display is to be updated. I'm getting compiler
errors on some of the methods in class IParameter. Specifically :

put_HaveStartedFrameRead
get_HaveStartedFrameRead
StartFrameRead
GetNextFrameRead

are flagged with message : "Error : class "IParameter" has no member ...

There are other methods, of the class (such as Value2 and get_DataType) that compile with no problem.

- Thanks,
Paul

James Bretz

unread,
May 1, 2012, 3:56:50 PM5/1/12
to ia...@googlegroups.com
Hi Paul,

I suspect that your "Iads.idl" file is old. We just updated the project on
the web site. Try downloading the newest package.

http://iads.symvionics.com/programs.html

Get "Creating an ActiveX display using C++ VS2005",
Jim



--------------------------------------------------
From: "Sherman, Paul" <pshe...@smartronix.com>
Sent: Tuesday, May 01, 2012 12:48 PM
To: <ia...@googlegroups.com>
Subject: [IADS] Visual Studio 2010 C++ compiler errors
Reply all
Reply to author
Forward
0 new messages