TAGGED: interconnect, lumerical, lumerical-script
-
-
October 18, 2024 at 10:24 am
pranav
SubscriberHi, 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!!!! -
October 22, 2024 at 6:02 pm
GWANG
Ansys EmployeeHi 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.
-
November 11, 2024 at 11:09 am
pranav
SubscriberHi GWANG,
None of the secipted element examples use the scripted element inside of a feedback loop -
February 5, 2025 at 9:36 pm
GWANG
Ansys EmployeeHi 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.
-
- You must be logged in to reply to this topic.
-
2773
-
965
-
841
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.