Skip to content

02. Using PyZDDE interactively in a Python shell

Indranil Sinharoy edited this page Dec 20, 2015 · 19 revisions

Interacting with ZEMAX in QtConsole

The following are few screenshots that demonstrates how one may use PyZDDE to interact with ZEMAX from an IPython QtConsole interactive console.

Note that the process of creating and closing DDE link objects has been simplified. Instead of calling link = pyz.PyZDDE() and then link.zDDEInit() (as shown in the example below), you can just call link = pyz.createLink() and start using the functions related to the data items. For closing you can either use link.close() or pyz.closeLink().

InteractiveDemoImg01 InteractiveDemoImg02 InteractiveDemoImg03 InteractiveDemoImg04 InteractiveDemoImg05

The following figures have been updated to show the color coded operand and button code lists.

InteractiveDemoImg06 InteractiveDemoImg07

Clone this wiki locally