TAGGED: eyesdiagram, interconnect, python
-
-
September 21, 2021 at 5:55 pm
lipee36
SubscriberI 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!
September 22, 2021 at 8:50 pmGWANG
Ansys EmployeeHi 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.
September 22, 2021 at 8:54 pmlipee36
Subscriber
indeed, I was missing the retrace command. Like this it works just fine. Thank you very much!
September 22, 2021 at 9:46 pmlipee36
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.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3832
-
1414
-
1193
-
1100
-
1015
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-