Home Forums SYSTEM MAtlab Electrical Component

MAtlab Electrical Component

Profile Photo
(joined August 2015)
Participant

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.

Responses (27):

    • #32179
      Profile Photo
      Jamal
      Participant

      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.

    • #32185
      Profile Photo
      umer syed
      Participant

      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

    • #32187
      Profile Photo
      umer syed
      Participant

      hi jamal,
      i think you have posted the replicated query in another post;

      MAtlab Electrical Component


      please do not posted same posts repeatedly, as it makes the improper discussion, discusion on one post will lead to some conclusion

      with regards

    • #32189
      Profile Photo
      love kumar
      Participant

      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 ..

      +1
    • #32200
      Profile Photo
      Jamal
      Participant

      Please find the attached screenshot

    • #32201
      Profile Photo
      Jamal
      Participant

      See if this osd file opens

    • #32204
      Profile Photo
      aasif bashir dar
      Participant

      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

    • #32212
      Profile Photo
      Jamal
      Participant

      Okay thanks
      Waiting
      Meanwhile, please find the screenshot attached

      Attachments:
    • #32217
      Profile Photo
      Jamal
      Participant

      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

    • #32261
      Profile Photo
      Aabid Baba
      Participant

      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

      +6
    • #32340
      Profile Photo
      Naazira Badar
      Participant

      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.

      +2
      • #32369
        Profile Photo
        Aabid Baba
        Participant

        Hello naazira,
        Yeah that may be reason most probably and in fact is most often.
        Anyway thank you
        regards

        +1
    • #32432
      Profile Photo
      Jamal
      Participant

      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.

      • #32492
        Profile Photo
        Aabid Baba
        Participant

        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

        +2
    • #32265
      Profile Photo
      Jojo Mathew
      Participant

      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.

    • #32279
      Profile Photo
      Jojo Mathew
      Participant

      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

    • #32531
      Profile Photo
      Naazira Badar
      Participant

      You are welcome, Jamal.

      Regards.

Login You must be logged in to reply to this topic.