We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Photonics

Photonics

Topics related to Lumerical and more.

Lumerical Interconnect: how to implement an electronic feedback?

    • pranav
      Subscriber

      Hi, the output of the SUB_1 should be 0 when PHS_3 is set to 0 degrees, right now it is set to 2 degrees, I want the scripted element to be able to read the output of the SUB_1 and modulate OM_1 to give a phase shift of -2 degrees and set the output of SUB_1 to 0.

      I am trying to use the biseciton method in the feedback, the code is correct (as in it works in python c or c++) but since I do not how the simulator works, that is the sample mode, block mode etc, even though the code is correct I am getting garbage output ( I suspect there is some delay that is added due to the element and the feedback itself, and I need to write the code taking in account of that delay, how do I do it?)

      I am using sample mode at the moment, i have been breaking my head trying to figure what is going on, please help!!!!

    • GWANG
      Ansys Employee

      Hi pranav,

       

      Thank you for the post. Please have a read at this page: https://optics.ansys.com/hc/en-us/articles/360036620253-Scripted-Element-Element-Library, especially on the "Example" session. There is an example file attached for electrical scripted element in sample mode and you can refer to that example file for the script. Please let me know if you have further questions on this. 

    • pranav
      Subscriber

      Hi GWANG,

      None of the secipted element examples use the scripted element inside of a feedback loop

    • GWANG
      Ansys Employee

      Hi pranav,

      Sorry for the late reply. Please use the time domain Scripted Element as the start point and develop the script to include the feedback. Please let me know if you have any difficulties developing the script. 

Viewing 3 reply threads
  • You must be logged in to reply to this topic.