- This topic has 2 replies, 2 voices, and was last updated 3 years, 6 months ago by Nikhila Ragipindi.
-
AuthorPosts
-
-
May 19, 2021 at 9:18 am #69378Nikhila RagipindiParticipant
Hi,
I would like to build a control loop. I want an output of 3V at the electrical adder. I am giving an input of 1V. MATLAB components acts as a comparator. It compares the adder output to 3. If it is less than 3, it keeps on adding 1V at the other input(MATLAB component output) of adder. If the adder output is 3, the other input will be maintained at same voltage. It basically has to act as a controller loop. Please let me know how to achieve this. I am attaching the .osd file and MATLAB component in a zipped folder.
Thank you,
Nikhila -
May 20, 2021 at 8:27 am #69395Ahmad AtiehModerator
Dear Nikhila,
you need to make the control loop inside the Matlab component by modifying the code to allow checking the input voltage and compare it to 3 or you could make the check within a range of 3 (between 2.99 and 3.01 for example), if it is less than three (or the range) you add (some value; could be a fraction of 1) and if it is larger than 3 you subtract (some value; again could be fraction of 1 like 0.1). once you match the value of the loop inside the Matlab component to 3 or the range, you stop and use the value to be added to the input of the adder as shown in the attached figure. please contact me at ahmad.atieh@optiwave.com if you’d like to discuss further.
Regards,
Ahmad -
May 22, 2021 at 6:20 am #69404Nikhila RagipindiParticipant
Dear Ahmad,
Thanks for looking into it. Actually I am working on a bias controller for Mach Zehnder Modulator. The question I asked is a simpler version of the problem I am looking at. MATLAB component has to take output from the adder and verify whether its less than 3 or not. Then provide the required amount of voltage to the ‘adder input’ as a controller loop. I am attaching the block diagram of how the loop has to be.
The problem I am facing is how to run the circuitry in loop. How can we adjust the circuit to take at least 2 loops.Thank you,
Nikhila
-
-
AuthorPosts
- You must be logged in to reply to this topic.