- This topic has 27 replies, 9 voices, and was last updated 8 years, 9 months ago by burhan num mina llah.
-
AuthorPosts
-
-
March 10, 2016 at 12:41 am #32179JamalParticipant
Hi all,
I am trying to find the signal to noise ratio of the output of a photonically sampled ADC. For the SNR calculation I have used a matlab component. On the start of the project, the project gives one value, and each time I rerun the project, the value of SNR differs by a small amount.
Can anyone suggest the problem with the simulation.
I am also attaching the osd and matlab file. -
March 10, 2016 at 12:51 am #32185umer syedParticipant
hi jamal,
the .osd file you have attached does not open;can u please upload screen shot of your .osd file.
the variation in the results can be the random ness of the components. i suggewst you to check random seed of each component in your .osd file and untick them all. this will remove randomness of your components.
with regards
-
March 10, 2016 at 12:58 am #32187umer syedParticipant
hi jamal,
i think you have posted the replicated query in another post;
please do not posted same posts repeatedly, as it makes the improper discussion, discusion on one post will lead to some conclusionwith regards
-
March 10, 2016 at 12:58 am #32189love kumarParticipant
yah i agree with umer syed .. after disabling random seed of very component will make you result more stable .. moreover shot noise of photo detectoer may the the one of reason ..
-
March 10, 2016 at 1:14 am #32200JamalParticipant
Please find the attached screenshot
-
March 10, 2016 at 1:15 am #32201JamalParticipant
See if this osd file opens
-
March 10, 2016 at 1:18 am #32204aasif bashir darParticipant
hi jamal,
i am unable to open the .osd file you have attached in optwave 14, i dont know why i am unable to open the attached file s on forum with my software package.
be patient , some one will open youe .osd file.
with regards
-
March 10, 2016 at 2:10 am #32212JamalParticipant
Okay thanks
Waiting
Meanwhile, please find the screenshot attached -
March 10, 2016 at 4:59 am #32217JamalParticipant
Umer Syed thank you for the suggestion.
I have unchecked all the random seed options from the components, but I am still getting a slight variance in the output SNR -
March 10, 2016 at 10:12 am #32261Aabid BabaParticipant
Hello jamal,
Please can you tell us what exactly is the MATLAB module you are using and what operation does it have..?
Normally if one comes across such problems in optisystem it is believed to do with enabling/disabling “generate random seed” option. For now you can disable the generate random seed option and see how it works..
Regards -
March 10, 2016 at 3:01 pm #32340Naazira BadarParticipant
Hi all…
yes, the random seed in the components of the system is the only reason the results vary in different simulations. Given the parameters are constant, the results stay same no matter how many times you simulate provided the random seed of components is disabled.Regards.
-
March 10, 2016 at 10:29 pm #32369Aabid BabaParticipant
Hello naazira,
Yeah that may be reason most probably and in fact is most often.
Anyway thank you
regards
-
-
March 11, 2016 at 12:57 am #32432JamalParticipant
Thank you Umer , Kumar, Naazira and Aabid
The trick works. By disabling random seed of each component, the simulation is giving a constant answer every time it is run.-
March 11, 2016 at 9:39 am #32492Aabid BabaParticipant
Hello jamal,
You are welcome anytime. The problem had to be because of generate seed thing. Once you disable it your results will become static and moreover very consistent.
Regards
-
-
March 11, 2016 at 6:42 am #32265Jojo MathewParticipant
Hello to the man who is raising the queries related to the matlab electrical component. I am also working on the project that requires the interface with the electrical components from the matlab. If you have any solution then please share. Also explain why such problems arise.
Regards.
-
March 11, 2016 at 6:42 am #32279Jojo MathewParticipant
hello jamal,
i am unable to open the .osd file you have attached in optwave 14, i dont know why i am unable to open the attached files on forum with my software package. Can you please tell me the version of the software that you are using?
Have patience , some one will open youe .osd file.
with regards
-
March 12, 2016 at 1:48 am #32531Naazira BadarParticipant
You are welcome, Jamal.
Regards.
-
March 12, 2016 at 11:53 pm #32579burhan num mina llahParticipant
Hi All
A basic thing that everyone working on optisystem should know that we need to remove the random seed (uncheck) in order to get the static result.
Jojo Mathew regarding ur query that u want to interface electrical component with the optisystem. i would like to know that do u want to interface a matlab code or just any existing electrical component in optisystem?Best regards
Burhan
-
March 13, 2016 at 3:20 am #32600Naazira BadarParticipant
Hi Burhan..
I believe he is trying to interface a MATLAB component.
Hi Jojo.. Well , what exactly are the issues you are facing? Please elaborate.
Regards.
-
March 13, 2016 at 3:51 am #32605burhan num mina llahParticipant
Hi Naazira Badar and Jojo Mathew
yeah i was actually enquiring about that and jojo if u r asking about interfacing an electrical component with optisystem we have already discussed in various other topics but still i would repeat here that u need to right the matlab code and then add a matlab component in the design and double click on the component to import the m.file u can do that by writing the path of that file in the option asking about path and in run command part u have to mention the name of m.file followed by semicolon. then load matlab and run. this is how we interface matlab rest if u r referring to something else please convey.
Regards
Burhan
-
March 14, 2016 at 8:45 am #32757FAYIQA NAQSHBANDISpectator
HI ALL
very well explained by burhan. Thanks burhan for sharing such an important information on how to interface a MATLAB code with Optisystem. Down the line everyone would require it and you have put in very simple words. Cannot get simpler than this.
Thanks and regards
-
-
March 13, 2016 at 3:58 am #32607Naazira BadarParticipant
Hi Burhan..
Yes. You have guided him right in interfacing MATLAB with Optisystem. (y)
Regards.
-
March 13, 2016 at 4:03 am #32610burhan num mina llahParticipant
Hi Naazira
Thanks a lot.A fruitful discussion is always appreciated.
Regards
Burhan
-
March 13, 2016 at 4:05 am #32612Naazira BadarParticipant
You’re welcome, Burhan.
Regards.
-
March 14, 2016 at 7:23 am #32753JamalParticipant
Jojo Mathew, the problem was there because some components have ‘random seed’ option in their properties. Just untick the option so that you get same result each time you run the simulation
I am also using optisystem 14.
Please find the attached osd. file
Or let me know your email address, I shall send via email then. -
March 14, 2016 at 7:37 am #32755JamalParticipant
Jojo Mathew
The problem arises because of the ‘random seed’ parameter in the properties of a few components. Just un-tick this option and you will get one answer each time you run the simulationI am attaching my osd. file again
I am using optisystem 14.
If you are still unable to download the file , let me know if I should email you. -
March 14, 2016 at 8:53 am #32760JamalParticipant
Just confirming:
The sampled electrical signal that we get in matlab is in Watts ? -
March 14, 2016 at 10:21 am #32796burhan num mina llahParticipant
Hi jamal
I believe jojo mathew raised a different query to which we were replying. And the random seed issue is already solved as is evident from previous comments on this post.
Regards
Burhan
-
-
AuthorPosts
- You must be logged in to reply to this topic.