Creating an ActiveX display with Every Sample in C#

56 views
Skip to first unread message

Mike

unread,
Feb 1, 2012, 11:03:31 AM2/1/12
to IADS
I am very much interested in reviewing the programming example for
Creating an ActiveX display with Every Sample in C#. However, the
link on the website does not appear to be functional. It does have a
different path than the other examples. If possible, I would like to
access this example program.

Thanks,
Mike

Adam Chant

unread,
Feb 1, 2012, 12:38:20 PM2/1/12
to ia...@googlegroups.com
Mike,
I'm sorry about that I'll fix the link and get that file online ASAP.
I'll update you when it's resolved.
Again sorry,

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

Thanks,
Mike

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

Adam Chant

unread,
Feb 1, 2012, 6:25:19 PM2/1/12
to ia...@googlegroups.com
Mike,
I apologize for the bad link. It has been updated on the site and you can
just click on the link below:
http://iads.symvionics.com/downloads/SampleEveryDataPointDisplayCSharpDotNet
.zip

If you have any questions please post them to the list and we'll do our best
to answer them.

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


-----Original Message-----
From: ia...@googlegroups.com [mailto:ia...@googlegroups.com] On Behalf Of Mike
Sent: Wednesday, February 01, 2012 8:04 AM
To: IADS

Thanks,
Mike

--

Mike

unread,
Feb 2, 2012, 6:47:35 AM2/2/12
to IADS
Thanks, I appreciate the support!

Mike

Mike

unread,
Mar 2, 2012, 10:54:01 AM3/2/12
to IADS


Hi,

I have successfully implement an ActiveX display in C# using the
SampleEveryDataPointDisplayCSharp as my example. Now I am trying to
expand that to handle multiple parameters read in from an external
setup file. The total number of parameters can exceed 500 the drag/
drop method is not practical. I am able to read all the parameters
and create all of the parameters using the CreateParameter method. I
discard any parameter names not found in the config. Where I am
running into trouble is trying to set the CurrentTime
(mParameter.CurrentTime=parentContainerTime). Not all of the
parameters have data. To account for that I am checking for
mParameter.DataStatus==IadsDataStatusType.iadsStatusOK. However,
several parameters DataStatus = iadsStatusOk, but they do not have
data. I dropped them on a strip chart and they show 000:00:00.000 No
Data as the value. Dropping a derived of GetDataStatus(ParmN)
returns a value of 0. When my ActiveX display hits these parameters,
it stops processing. Is there another field or status that I can
check to indicate these types of No Data parameters so I can just
ignore them?


Thanks,
Mike

Myers, Darrell G CTR USAF AFMC 412 TW/ENR

unread,
Mar 2, 2012, 1:36:29 PM3/2/12
to ia...@googlegroups.com
Hi Mike,

I use the StartTime function of the IParameter to see if the parameter
has a valid start time. The IADS guys may have a better way though.

Greg

-----Original Message-----
From: ia...@googlegroups.com [mailto:ia...@googlegroups.com] On Behalf Of
Mike
Sent: Friday, March 02, 2012 7:54 AM
To: IADS

Hi,


Thanks,
Mike

--

Adam Chant

unread,
Mar 2, 2012, 2:08:46 PM3/2/12
to ia...@googlegroups.com
Mike,
Our developer will take a look at this later today to give a more definitive
answer, but I would initially also suggest that you do as Darrell suggests
and check the parameter for a valid start time before trying to initialize
it.

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

-----Original Message-----
From: ia...@googlegroups.com [mailto:ia...@googlegroups.com] On Behalf Of Mike
Sent: Friday, March 02, 2012 7:54 AM
To: IADS

Hi,


Thanks,
Mike

--

James Bretz

unread,
Mar 2, 2012, 9:34:22 PM3/2/12
to IADS
Mike,

Actually, that sounds like a bug in our software... You might have to send
us those strange data files so we can investigate (if possible). DataStatus
shouldn't return 0.

My question for you is: how does it make your display "stop processing". I
think perhaps the CurrentTime function is throwing a error and maybe you
just have to catch it and skip processing? Did you try/catch?

Also, try Greg's technique. Check the "start time" and see if it's < 0,
Jim

--------------------------------------------------
From: "Mike" <michael...@navy.mil>


Sent: Friday, March 02, 2012 7:54 AM

To: "IADS" <ia...@googlegroups.com>
Subject: [IADS] Re: Creating an ActiveX display with Every Sample in C#

Mike

unread,
Mar 5, 2012, 10:06:30 AM3/5/12
to IADS
Thanks all for your responses!

I think I have a better understanding of what is going on.

Using the StartTime was the key!

Because I am running/debugging in Post Test (local mode), the
parameter StartTime was > 0, but it was still invalid because it was
greater than the CurrentTime!

As far as the "stop processing" problem, I am using try/catch.
However, I am such a clever programmer, in my catch response I
basically created an infinite loop!

Thanks again everybody,
Mike


On Mar 2, 9:34 pm, "James Bretz" <j...@iads-soft.com> wrote:
> Mike,
>
> Actually, that sounds like a bug in our software... You might have to send
> us those strange data files so we can investigate (if possible). DataStatus
> shouldn't return 0.
>
> My question for you is: how does it make your display "stop processing". I
> think perhaps the CurrentTime function is throwing a error and maybe you
> just have to catch it and skip processing? Did you try/catch?
>
> Also, try Greg's technique. Check the "start time" and see if it's < 0,
> Jim
>
> --------------------------------------------------
> From: "Mike" <michael.cus...@navy.mil>
> >http://groups.google.com/group/iads?hl=en.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages