- This topic has 27 replies, 9 voices, and was last updated 9 years, 1 month ago by
burhan num mina llah.
-
AuthorPosts
-
-
March 10, 2016 at 12:41 am #32179
Jamal
ParticipantHi 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 #32185
umer syed
Participanthi 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 #32187
umer syed
Participanthi 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 #32189
love kumar
Participantyah 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 #32200
Jamal
ParticipantPlease find the attached screenshot
-
March 10, 2016 at 1:15 am #32201
Jamal
ParticipantSee if this osd file opens
-
March 10, 2016 at 1:18 am #32204
aasif bashir dar
Participanthi 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 #32212
Jamal
ParticipantOkay thanks
Waiting
Meanwhile, please find the screenshot attached -
March 10, 2016 at 4:59 am #32217
Jamal
ParticipantUmer 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 #32261
Aabid Baba
ParticipantHello 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 #32340
Naazira Badar
ParticipantHi 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 #32369
Aabid Baba
ParticipantHello 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 #32432
Jamal
ParticipantThank 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 #32492
Aabid Baba
ParticipantHello 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 #32265
Jojo Mathew
ParticipantHello 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 #32279
Jojo Mathew
Participanthello 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 #32531
Naazira Badar
ParticipantYou are welcome, Jamal.
Regards.
-
March 12, 2016 at 11:53 pm #32579
burhan num mina llah
ParticipantHi 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 #32600
Naazira Badar
ParticipantHi 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 #32605
burhan num mina llah
ParticipantHi 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 #32757
FAYIQA NAQSHBANDI
SpectatorHI 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 #32607
Naazira Badar
ParticipantHi Burhan..
Yes. You have guided him right in interfacing MATLAB with Optisystem. (y)
Regards.
-
March 13, 2016 at 4:03 am #32610
burhan num mina llah
ParticipantHi Naazira
Thanks a lot.A fruitful discussion is always appreciated.
Regards
Burhan
-
March 13, 2016 at 4:05 am #32612
Naazira Badar
ParticipantYou’re welcome, Burhan.
Regards.
-
March 14, 2016 at 7:23 am #32753
Jamal
ParticipantJojo 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 #32755
Jamal
ParticipantJojo 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 #32760
Jamal
ParticipantJust confirming:
The sampled electrical signal that we get in matlab is in Watts ? -
March 14, 2016 at 10:21 am #32796
burhan num mina llah
ParticipantHi 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.