- Home
- User Articles
- How to Talk to ZEMAX from MatLab
- Home
- Programming ZEMAX
- Extensions
- How to Talk to ZEMAX from MatLab
How to Talk to ZEMAX from MatLab
- By Derek Griffith
- Published 3 January 2006
- User Articles , Extensions
-
Rating:




Things to Remember when using the Toolbox
1) Your first call after starting up ZEMAX and Matlab must be to zDDEInit.
2) Timeouts can be a problem. Increase the DDE timeout limit using zSetTimeout if necessary.
3) ZEMAX has two copies of the lens data, one displayed in the Lens Data Editor, and the other stored in the DDE server. Your can copy the one to the other using the zPushLens and zGetRefresh functions. zPushLens always requires a single parameter giving the timeout in seconds.
4) zPushLens will only work if you have granted ZEMAX extensions permission to push lenses by checking the box on the Editors tab of the ZEMAX Preferences dialog.
2) Timeouts can be a problem. Increase the DDE timeout limit using zSetTimeout if necessary.
3) ZEMAX has two copies of the lens data, one displayed in the Lens Data Editor, and the other stored in the DDE server. Your can copy the one to the other using the zPushLens and zGetRefresh functions. zPushLens always requires a single parameter giving the timeout in seconds.
4) zPushLens will only work if you have granted ZEMAX extensions permission to push lenses by checking the box on the Editors tab of the ZEMAX Preferences dialog.
Related Articles
Related Links
4 Responses to "How to Talk to ZEMAX from MatLab" 
|
said this on 17 Feb 2006 3:24:12 PM PDT
A great article. I would add that the Zemax for Matlab Toolbox referenced is a bit crude. I find as I use a function for the first time, it's best to edit the function and add appropriate error checking and setting of default values. The toolbox is also starting to get dated. For example, the syntax for the SetSolve command has apparently changed slightly since the toolbox was written. Be aware you may need to account for slightly changes such as these.
|
|
said this on 01 Oct 2006 5:02:31 AM PDT
Precise fast,tells you exactly what you need.A lot better than Zemax manual.
|
|
said this on 17 Jan 2007 10:36:34 PM PDT
So surprised! So pleased when you find the method which you can make your complex work so easy!!
great work!!
|
|
said this on 20 May 2008 1:08:02 PM PDT
I've used the toolbox, and it is very convenient. Only I still have a problem trying to work with UDO's, which are not contained in the toolbox. Can anyone help on this?
|
Author)