XML to Configure IDL Programs? [message #88213] |
Fri, 28 March 2014 12:45  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
Has anyone ever used XML files to configure IDL programs, or create IDL
menus for widget programs, that kind of thing? I'm looking for good
advice and/or ideas for how to do this kind of thing. I'd like to make
an application that can be built and/or modified by text (XML) files.
Thanks,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: XML to Configure IDL Programs? [message #88216 is a reply to message #88213] |
Fri, 28 March 2014 14:06   |
dg86
Messages: 118 Registered: September 2012
|
Senior Member |
|
|
On Friday, March 28, 2014 3:45:38 PM UTC-4, David Fanning wrote:
> Folks,
>
>
>
> Has anyone ever used XML files to configure IDL programs, or create IDL
>
> menus for widget programs, that kind of thing? I'm looking for good
>
> advice and/or ideas for how to do this kind of thing. I'd like to make
>
> an application that can be built and/or modified by text (XML) files.
>
>
>
> Thanks,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Hi David,
I've used IDL's IDLffXMLSAX objects to write a very convenient
XML configuration parser. My object inherits IDLffXMLSAX and
parses configuration into a hash of configuration options and their
values. I then use the hash to set up my program.
Here's a configuration file for the camera component of the instrument,
just to give a sense of what's been working for me:
<camera object="fabcamera_opencv"
greyscale="1"
order="1"
dimensions="[640,480]">
</camera>
The parser object is on github at
https://github.com/davidgrier/nufab/blob/master/objects/misc /fab_configurationparser__define.pro
TTFN,
David
|
|
|
|
|
Re: XML to Configure IDL Programs? [message #88226 is a reply to message #88225] |
Mon, 31 March 2014 11:16   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 3/31/14, 10:24 AM, Phillip Bitzer wrote:
> On Sunday, March 30, 2014 10:04:36 PM UTC-5, Jim P wrote:
>
>>
>> My colleague Atle Borsholm wrote an interesting article for the
>> Exelis VIS IDL Data Point blog recently that covers configuration
>> files, XML, and JSON.
>>
>>
>
> Not to hijack this post, but does anyone have a valid RSS feed for
> IDL Data Point? According to the one I have (using the RSS link on
> the Exelis page), the last post is about ENVI, 59 days ago.
>
I don't believe there is one. Closest I know of is to follow @ExelisVIS
on Twitter.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|
Re: XML to Configure IDL Programs? [message #88227 is a reply to message #88226] |
Mon, 31 March 2014 11:29   |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
I'd still been pointing my aggregator at the old link's (http://idldatapoint.wordpress.com/) feed, although of course it's now non-functional which explains the lack of new posts there- Exelis, if you read this, could you please provide an RSS feed for the new location? RSS is much more convenient for me than Twitter for staying up to date with these things.
(Apologies also for the threadjack. Afraid I have no experience related to David's question.)
Andy
On Monday, March 31, 2014 2:16:24 PM UTC-4, Mike Galloy wrote:
> On 3/31/14, 10:24 AM, Phillip Bitzer wrote:
>
>> On Sunday, March 30, 2014 10:04:36 PM UTC-5, Jim P wrote:
>
>>
>
>>>
>
>>> My colleague Atle Borsholm wrote an interesting article for the
>
>>> Exelis VIS IDL Data Point blog recently that covers configuration
>
>>> files, XML, and JSON.
>
>>>
>
>>>
>
>>
>
>> Not to hijack this post, but does anyone have a valid RSS feed for
>
>> IDL Data Point? According to the one I have (using the RSS link on
>
>> the Exelis page), the last post is about ENVI, 59 days ago.
>
>>
>
>
>
> I don't believe there is one. Closest I know of is to follow @ExelisVIS
>
> on Twitter.
>
>
>
> Mike
>
> --
>
> Michael Galloy
>
> www.michaelgalloy.com
>
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>
> Research Mathematician
>
> Tech-X Corporation
|
|
|
Re: XML to Configure IDL Programs? [message #88233 is a reply to message #88227] |
Mon, 31 March 2014 18:34   |
Jim Pendleton
Messages: 165 Registered: November 2011
|
Senior Member |
|
|
On Monday, March 31, 2014 12:29:28 PM UTC-6, AMS wrote:
> I'd still been pointing my aggregator at the old link's (http://idldatapoint.wordpress.com/) feed, although of course it's now non-functional which explains the lack of new posts there- Exelis, if you read this, could you please provide an RSS feed for the new location? RSS is much more convenient for me than Twitter for staying up to date with these things.
>
>
>
> (Apologies also for the threadjack. Afraid I have no experience related to David's question.)
>
>
>
> Andy
>
>
>
> On Monday, March 31, 2014 2:16:24 PM UTC-4, Mike Galloy wrote:
>
>> On 3/31/14, 10:24 AM, Phillip Bitzer wrote:
>
>>
>
>>> On Sunday, March 30, 2014 10:04:36 PM UTC-5, Jim P wrote:
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>> My colleague Atle Borsholm wrote an interesting article for the
>
>>
>
>>>> Exelis VIS IDL Data Point blog recently that covers configuration
>
>>
>
>>>> files, XML, and JSON.
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>> Not to hijack this post, but does anyone have a valid RSS feed for
>
>>
>
>>> IDL Data Point? According to the one I have (using the RSS link on
>
>>
>
>>> the Exelis page), the last post is about ENVI, 59 days ago.
>
>>
>
>>>
>
>>
>
>>
>
>>
>
>> I don't believe there is one. Closest I know of is to follow @ExelisVIS
>
>>
>
>> on Twitter.
>
>>
>
>>
>
>>
>
>> Mike
>
>>
>
>> --
>
>>
>
>> Michael Galloy
>
>>
>
>> www.michaelgalloy.com
>
>>
>
>> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>
>>
>
>> Research Mathematician
>
>>
>
>> Tech-X Corporation
Until an RSS feed kicks in (I'm sure someone will announce such a thing if and when it becomes available), know that those of us who were volunteered upon to write topics have a deadline for publication every Thursday morning, so check back each week. We've been on the job since the beginning of 2014, so we encourage you to check the archives.
The upcoming blog is a real page-scroller, a riveting tale of the static class and self-generating embedded imagery, a true techno-thriller.
Jim P.
"I work for Exelis VIS, but these are my own opinions and not those of the implant"
|
|
|
Re: XML to Configure IDL Programs? [message #88235 is a reply to message #88233] |
Tue, 01 April 2014 06:15  |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
Jim, I can't wait! :)
I put in a request for an RSS feed with our Account Manager at Exelis yesterday.
Andy
On Monday, March 31, 2014 9:34:37 PM UTC-4, Jim P wrote:
> On Monday, March 31, 2014 12:29:28 PM UTC-6, AMS wrote:
>
>> I'd still been pointing my aggregator at the old link's (http://idldatapoint.wordpress.com/) feed, although of course it's now non-functional which explains the lack of new posts there- Exelis, if you read this, could you please provide an RSS feed for the new location? RSS is much more convenient for me than Twitter for staying up to date with these things.
>
>>
>
>>
>
>>
>
>> (Apologies also for the threadjack. Afraid I have no experience related to David's question.)
>
>>
>
>>
>
>>
>
>> Andy
>
>>
>
>>
>
>>
>
>> On Monday, March 31, 2014 2:16:24 PM UTC-4, Mike Galloy wrote:
>
>>
>
>>> On 3/31/14, 10:24 AM, Phillip Bitzer wrote:
>
>>
>
>>>
>
>>
>
>>>> On Sunday, March 30, 2014 10:04:36 PM UTC-5, Jim P wrote:
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> >
>
>>
>
>>>
>
>>
>
>>>> > My colleague Atle Borsholm wrote an interesting article for the
>
>>
>
>>>
>
>>
>
>>>> > Exelis VIS IDL Data Point blog recently that covers configuration
>
>>
>
>>>
>
>>
>
>>>> > files, XML, and JSON.
>
>>
>
>>>
>
>>
>
>>>> >
>
>>
>
>>>
>
>>
>
>>>> >
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> Not to hijack this post, but does anyone have a valid RSS feed for
>
>>
>
>>>
>
>>
>
>>>> IDL Data Point? According to the one I have (using the RSS link on
>
>>
>
>>>
>
>>
>
>>>> the Exelis page), the last post is about ENVI, 59 days ago.
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I don't believe there is one. Closest I know of is to follow @ExelisVIS
>
>>
>
>>>
>
>>
>
>>> on Twitter.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Mike
>
>>
>
>>>
>
>>
>
>>> --
>
>>
>
>>>
>
>>
>
>>> Michael Galloy
>
>>
>
>>>
>
>>
>
>>> www.michaelgalloy.com
>
>>
>
>>>
>
>>
>
>>> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>
>>
>
>>>
>
>>
>
>>> Research Mathematician
>
>>
>
>>>
>
>>
>
>>> Tech-X Corporation
>
>
>
> Until an RSS feed kicks in (I'm sure someone will announce such a thing if and when it becomes available), know that those of us who were volunteered upon to write topics have a deadline for publication every Thursday morning, so check back each week. We've been on the job since the beginning of 2014, so we encourage you to check the archives.
>
>
>
> The upcoming blog is a real page-scroller, a riveting tale of the static class and self-generating embedded imagery, a true techno-thriller.
>
>
>
> Jim P.
>
> "I work for Exelis VIS, but these are my own opinions and not those of the implant"
|
|
|