Solved

Error on conversion from .seq to .zos

  • 22 September 2023
  • 4 replies
  • 87 views

Userlevel 2

While converting a file from Code V (.seq) to Zemax i get an error which suggests that the surfaces of the model were not recognised. Do you know why Zemax gets stuck and how can I overcome this?

I attach the log file of the conversion, along with the .seq file (inside .zip), in case someone could give me a help with that.

 

Kind regards,

icon

Best answer by KEn 4 October 2023, 13:29

View original

4 replies

Userlevel 7
Badge +3

At the end of the log file, it says:

Number of Surfaces           :     2

Error: (Main) -    -1

There has to be at least three surfaces

Elapsed time 1.9 seconds.

How many surfaces are there in your seq file?

  • Mark
Userlevel 2

The system contains a doublet and an aspheric (5 surfaces). However, the conversion script does not seem to read them properly.

Userlevel 7
Badge +3

I’m no CodeV expert, but I don’t think your .seq file is complete. If you ignore all the lines that are commented out, the file reads as:


0002    AUT


0005    CT  S4 z1 < 5.6      !TH L1 Vs D1

0006    CT  S4 z1 >3.0

0007    CT  S5 z1 < 2      !TH L1 Vs D1

0008    CT  S5 z1 >0.30

0009    CT  S8 z1 < 3      !TH D2S2

0010    CT  S8 z1 >0.4

0011    CT S10 z1 < 6.5

0012    CT S10 z1 > 4.3

0013    CT S14 z1 < -4.1

0014    CT S14 z1 > -6.6

 

0042    CUY S5 > -0.151


0062    X R1 SI W3 F1 Z1 = 0

0063    PTC 0.1 0.5 8

0064    X R1 SI W3 F2 Z1 = 2.58

0065    PTC 0.1 0.5 8

0066    X R1 SI W3 F3 Z1 = -2.58

0067    PTC 0.1 0.5 8

0068    X R1 SI W3 F4 Z1 = 0

0069    PTC 0.1 0.5 8

0070    X R1 SI W3 F5 Z1 = 0

0071    PTC 0.1 0.5 8

0072    y R1 SI W3 F1 Z1 = 0

0073    PTC 0.1 0.5 8

0074    y R1 SI W3 F2 Z1 = 0

0075    PTC 0.1 0.5 8

0076    y R1 SI W3 F3 Z1 = 0

0077    PTC 0.1 0.5 8

0078    y R1 SI W3 F4 Z1 = 1.72

0079    PTC 0.1 0.1 8

0080    y R1 SI W3 F5 Z1 = -1.72

0081    PTC 0.1 0.1 8



0113    ERR CDV

0114    VLI I1..L 0

0115    Mxc 50 !Max cycle limit

0117    TAR 0.1 45

0118    IMP 0.00001

0119    MXT 7

0120    MNT 0.1

0121    MNE 0.1

0122    DEl 0.1

 

If you just enter this into CodeV does it do anything useful?The lines from 0113 on are to do with optimization, but I just don’t see anything that says a doublet and an asphere here. I am no CodeV expert though.

Badge

Hi Jonasz,

The observation of Mark is correct. There are no element defined, only constraints. The file ‘AUVI.SEQ’ is a Code V sequence file (a kind of macro) to run a Code V optimization. It is not a lens design file.

Best regards,

Kai

 

Reply