Photonics

Photonics

Topics related to Lumerical and more.

Export eye diagram on interconnect from script file

    • lipee36
      Subscriber

      I am creating and simulating designs with Python for Interconnect simulations. So far everything is doing great, but I am not able to export my eye diagram plot using the scripts. I can do that if I open the GUI and manually export it.

      I've tried different workarounds, like using getresult, getresultdata, etc, but I was not able to properly reproduce the same plot.

      Is there a way to do it properly from the script file?

      Thanks in advance!

    • GWANG
      Ansys Employee
      Hi lipee36
      You can use the "getresult" command to get the eye diagram result form the EYE Diagram analyzer, then use the following command to plot the eye diagram:
      eye_meas = getresult("eye_diag1", "eye diagram");
      eye_time = eye_meas.time;
      eye_amp = getattribute(eye_meas, "amplitude (a.u.)");
      plot(eye_time * 1e12, eye_amp, "Time [psec]", "", "Eye diagram ", "retrace, density=150");

      Note "trace" is the overlaping method we use to plot the eye diagram and "density" is the color density for the plot.
    • lipee36
      Subscriber

      indeed, I was missing the retrace command. Like this it works just fine. Thank you very much!
    • lipee36
      Subscriber

      an unrelated, related question. I am facing a curious situation. When I use the exportimage command from within the GUI (in the Script Prompt) it exports normally the circuit figure. Now, if I do that from the python script, and hence with the GUI not open, it creates an empty figure in the destination, as my circuit was empty. Any clues on that?
      Thanks once again!
Viewing 3 reply threads
  • The topic ‘Export eye diagram on interconnect from script file’ is closed to new replies.