Re: IDL DDE and ZEMAX [message #53514] |
Tue, 17 April 2007 09:09 |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
DDE? That was shipped with windows 3.1! It was dropped with IDL 5. I
think your lucky that you're getting anything to work :)
Does ZEMAX provide a COM interface? If so, you could use
IDLcomIDispatch, although it is a bit limited. There are JAVA based DDE
libraries that you could use along with the IDL_JAVA bridge but that
would probably take some work. Lastly, you can try using CALL_EXTERNAL
to call DDEML.DLL directly.
Hopefully someone else will have some better ideas...
-Rick
lbusoni wrote:
> Hi all,
> I need to send commands to the ZEMAX raytracer from IDL.
> ZEMAX accepts DDE commands, and IDL has a kind of discontinued support
> of DDE.
>
> In fact, Get* commands to retrieve data from the ZEMAX session work
> fine, but when I use the Set* commands to modify a value in the ZEMAX
> datasheet nothing happens even if the return value says 'ok'.
> I don't think the problem is on the ZEMAX side because everything
> works fine using MATLAB or C examples available on the Zemax web site;
> it seems to be a problem with DDE client in IDL.
>
> Any idea on how to convince IDL and ZEMAX to communicate?
> Did anybody have this kind of problem before?
>
> thanks
>
> Lorenzo
> --
> Lorenzo Busoni - LBT AdOpt Group
> Osservatorio Astrofisico di Arcetri
> L.go E. Fermi 5 50125 Firenze (Italy)
>
|
|
|