comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » XML to Configure IDL Programs?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
XML to Configure IDL Programs? [message #88213] Fri, 28 March 2014 12:45 Go to next message
David Fanning is currently offline  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 Go to previous messageGo to next message
dg86 is currently offline  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 #88219 is a reply to message #88213] Fri, 28 March 2014 15:32 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 3/28/14, 1:45 PM, 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.

Not XML files for menus per se, but I have used configuration (.ini)
files for general configuration:

http://michaelgalloy.com/2013/07/12/reading-configuration-fi les.html

Not nested, like XML, but much easier to read if you don't need nested
items.

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 #88225 is a reply to message #88213] Mon, 31 March 2014 09:24 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
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.
Re: XML to Configure IDL Programs? [message #88226 is a reply to message #88225] Mon, 31 March 2014 11:16 Go to previous messageGo to next message
Michael Galloy is currently offline  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 Go to previous messageGo to next message
Andy Sayer is currently offline  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 Go to previous messageGo to next message
Jim  Pendleton is currently offline  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 Go to previous message
Andy Sayer is currently offline  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"
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: float function unexpectedly slow
Next Topic: Call builtin LAPACK on Windows

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:57:26 PDT 2025

Total time taken to generate the page: 0.19622 seconds