Skip to main content

Detector viewer in zemax macro

  • December 6, 2019
  • 3 replies
  • 307 views

Dear all,

I'm in problems with using zemax macro in NSQ mode.

I want to:
1. open the detector viewer with the zemax macro.
2. save/export image and text data(not ray data!) of the detector viewer with the zemax macro.

Could someone please help me or give some macro codes for these problems?

Thanks. 

3 replies

Sean Turner
Fully Spectral
Forum|alt.badge.img+1
  • Fully Spectral
  • December 6, 2019
Hi,

EXPORTBMP will let you save the image from the detector.  

GETTEXTFILE lets you save the text data from the detector viewer window. 

I hope this helps.

Sean

Mark.Nicholson
Luminary
Forum|alt.badge.img+3
SAVEDETECTOR will also save the data in a detector (not the ray trace data, that's held in a .ZRD file). It and LOADDETECOR perform the same functions as you get under Detector Tools in the UI

  • Author
  • Monochrome
  • December 8, 2019
Thank you all!

Bless you.