Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Retrieving items from config file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike  
View profile  
 More options Nov 4, 10:58 am
From: Mike <michael.cus...@navy.mil>
Date: Wed, 4 Nov 2009 07:58:50 -0800 (PST)
Local: Wed, Nov 4 2009 10:58 am
Subject: Retrieving items from config file
Hi,

I'm converting various algorithms from our front end to IADS.  I'm
just getting started in IADS algorithm developement and I'm new to the
Windows platform and MS Visual Studio, C++, C#, basically new to
object oriented programming (I've been working in C on a Unix system),
so I have a huge learning curve to overcome.  I have been able to
follow the basic examples for creating an algorithm for IADS or a COM
dll such as the sample function in C++.  I'm sure someone has already
asked this question and the answer is already in this group, but I
guess I'm either not entering the right search key words or
understanding what I am finding.  Anyway,  I need to fetch the units
and sample rate of the input parameter to the algorithm,  do I have
access to that information through the IadsFunction.idl interface or
can I access it from the config file easily?

Thanks,
Mike


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Bretz  
View profile  
 More options Nov 4, 12:57 pm
From: "James Bretz" <j...@iads-soft.com>
Date: Wed, 4 Nov 2009 09:57:53 -0800
Local: Wed, Nov 4 2009 12:57 pm
Subject: Re: [IADS] Retrieving items from config file
Hi Mike,

> I'm converting various algorithms from our front end to IADS.  I'm
> just getting started in IADS algorithm developement and I'm new to the
> Windows platform and MS Visual Studio, C++, C#, basically new to
> object oriented programming (I've been working in C on a Unix system),
> so I have a huge learning curve to overcome.  I have been able to
> follow the basic examples for creating an algorithm for IADS or a COM
> dll such as the sample function in C++.  I'm sure someone has already
> asked this question and the answer is already in this group, but I
> guess I'm either not entering the right search key words or
> understanding what I am finding.  Anyway,  I need to fetch the units
> and sample rate of the input parameter to the algorithm,  do I have
> access to that information through the IadsFunction.idl interface or
> can I access it from the config file easily?

No problem... Actually, I don't think anyone has actually asked that
question before ;)

Unfortunately, there's no way currently to obtain the exact parameter that's
being passed into your function. At this time, the equation engine simply
evaluates the expression in the argument position and sends in the resultant
value to the function. The current technique is to simply pass in the
required information as follows:

Functions.MyFunction( param, GetUpdateRate(param), GetUnits(param) )

It's not pretty, but it should work. Think of the custom function being more
similar to C that say C++. At this point in time, your not able to pass
"classes" into the function, so you'll have to send the actual value of the
desired input.

Let me know if you have any further questions,
Jim


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options Nov 4, 1:06 pm
From: Mike <michael.cus...@navy.mil>
Date: Wed, 4 Nov 2009 10:06:47 -0800 (PST)
Local: Wed, Nov 4 2009 1:06 pm
Subject: Re: Retrieving items from config file
Thanks Jim!
That works!  Uses what is already available and it's simple...No
wonder I didn't think of it!

Mike


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Bretz  
View profile  
 More options Nov 4, 1:10 pm
From: "James Bretz" <j...@iads-soft.com>
Date: Wed, 4 Nov 2009 10:10:03 -0800
Local: Wed, Nov 4 2009 1:10 pm
Subject: Re: [IADS] Re: Retrieving items from config file

> Thanks Jim!
> That works!  Uses what is already available and it's simple...No
> wonder I didn't think of it!

LOL! ;)

No problem,
Jim


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Jones  
View profile  
 More options Nov 4, 1:14 pm
From: Michael Jones <mjo...@iads-soft.com>
Date: Wed, 4 Nov 2009 10:14:41 -0800 (PST)
Local: Wed, Nov 4 2009 1:14 pm
Subject: Re: Retrieving items from config file
Mike,

Just a small headsup, keep in mind that the units field is sometimes
incorrectly defined. Think of it as more of a 'visual indicator' than
a data type.

Ultimately if you will be using this field to autoconvert data, suchas
from Degrees to Radians, it might be a good idea to spotcheck the
reliability of how that field is being used.

Good Luck,
Miek

On Nov 4, 10:10 am, "James Bretz" <j...@iads-soft.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options Nov 4, 1:28 pm
From: Mike <michael.cus...@navy.mil>
Date: Wed, 4 Nov 2009 10:28:11 -0800 (PST)
Local: Wed, Nov 4 2009 1:28 pm
Subject: Re: Retrieving items from config file

That's a good point.  Issues with this algorithm are almost always
related to typos in the units field. Maybe I'll just create 2, one for
degrees, one for radians.

Thanks again!


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google