- This topic has 18 replies, 6 voices, and was last updated 8 years, 8 months ago by Naazira Badar.
-
AuthorPosts
-
-
May 13, 2015 at 1:18 pm #20782ahmed helmy teamaParticipant
Dear All,
Dear Damain,
If I have an simple FSO communication as attached, how can i call matlab program to establish log-normal channel in free space optical communication using optiwave 7.
note. the matlab code for log-normal distribution is
x=normrnd(a,b,c,d);
a=mean b=standard deviation c=number of rows d=number of columns
y=exp(2*x); y:log-normal random variables
Hope your support.
Regards,
Ahmed -
May 14, 2015 at 12:41 am #20801Abhishek ShramaParticipant
for example of how to co simulate matlab with optisystem there are a lot many examples on forum and in samples as well.
try looking for videos for setting up components using matlab.
For example have a look at: -
May 15, 2015 at 3:36 am #20824alistuParticipant
There Are a lot of examples regarding the co-simulation between Matlab and OptiSystem, but unfortunately all of them just give the main idea of what happens and do not save you a lot of time on learning how to do the cosimulation when it is more complicated than what is shown in the example.
To put it simply, the output and input to the channel are vectors. So first you should be able to know how to observe them and then, try to make a program that makes the changes on these vectors in Matlab. -
June 2, 2015 at 5:36 pm #21329ahmed helmy teamaParticipant
Thanks to all but I’m just a beginner, so please anyone help me to build matlab program as below
MU=0;
SIGMA=.1;
x=NORMRND(MU,SIGMA);
y=exp(2*x); y:log-normal random variables
in the FSO optiwave as attached in the figure below
Regards, -
June 6, 2015 at 5:14 pm #21430ahmed helmy teamaParticipant
Damian, where are you?
I need your help please.-
June 8, 2015 at 11:25 am #21484Damian MarekParticipant
Ahmed,
I’m back in the office this week after giving an Optiwave training in Korea last week! As for your question, I can help you get your Matlab program working with the Matlab component in OptiSystem, but unfortunately I do not have the resources to build a Matlab program from scratch for you.
If you have a m-file and project file you want to get working together please attach them and I will help you out! If you have any specific questions about how the interface between the two difference products works I can also help you there.
Regards
-
-
June 8, 2015 at 5:54 pm #21501ahmed helmy teamaParticipant
Damian,
Thank you so much. Have a nice tripe.
I will attach a Matlab program.
Thanks again for your concern.
Regards -
June 11, 2015 at 11:46 am #21612ahmed helmy teamaParticipant
Dear Damian,
Kindly fine the attached files(osd and m file) herewith our simulation that doesn’t work
thank you
yours,-
June 16, 2015 at 11:54 am #21753Damian MarekParticipant
Here I fixed the m-file. I believe you wanted to multiply the entire vector by different random numbers so I used the .* operator instead.
Your Matlab component also did not correctly call the function aaa, so I changed the initial command.
Cheers
-
-
June 13, 2015 at 1:07 pm #21666ahmed helmy teamaParticipant
Dear Damian,
Are You find the attachment, kindly i need your advice.
Thanks -
June 15, 2015 at 3:34 pm #21726Damian MarekParticipant
Yes I found the attachment thank you. This is the next item I am looking at.
-
June 16, 2015 at 1:45 pm #21756ahmed helmy teamaParticipant
Thanks Damian, but i can’t open the osd file, could you please send it to me via my my e-mail(ahmed.teama@te.eg)
yours,-
June 16, 2015 at 3:22 pm #21757Damian MarekParticipant
Unfortunately, since you have an older version of OptiSystem you will not be able to open the file. You should be able to use your original project file but make these changes:
1) Change the run command to “aaa;” which is the name of the file and also switch back the Matlab search path to where you can find the file.
2)For some reason the Optical Receiver that came placed in your file was giving me an error so I just deleted it and placed a new one and it worked fine, maybe you changed some parameters? I also changed the Bit rate of the Bit Sequence Generator to scripting mode and used the global parameter Bit rate to control the value, which is the default option.
Regards
-
-
March 2, 2016 at 10:57 am #30960Naazira BadarParticipant
Hi all..
This post was really beneficial for me, as I am also working on FSO and I want to simulate my system on various Turbulence fading models.
Could you please tell me can I use the code you have provided above for any link range and any modulation scheme that I employ in my system??Regards.
-
March 2, 2016 at 12:12 pm #30974aasif bashir darParticipant
hi damain sir,
i have the confusion that the .osd screen shot that ahmad helmy has attached shows the matlab block outside the FSO, but we have apply these fading models inside the FSO.
how could we apply such design to practical application.with regards
-
March 3, 2016 at 1:01 am #31107Naazira BadarParticipant
Hi Aasif..
Well, that option, i.e. the scintillation index inside the FSO channel component properties could be disabled.
Then the MATLAB component could be placed. Hope this helps you understand.Regards.
-
March 3, 2016 at 1:16 am #31114aasif bashir darParticipant
hi naazira,
are you confident about that such design will be useful for practical scernario.
because in environment sometimes many factors interact together to effect the signal transmission.its like you are applyinf superposition in such design.
hope you will reply soon.with regards
-
March 3, 2016 at 5:16 am #31163Naazira BadarParticipant
Hi Aasif.
Use of the MATLAB component should not be confused with the practical implication.I believe use of a MATLAB compomponent is just intended to add an additional turbulence model here.What we logically did is : Disable one model and enable the other one.That should not alter the practical scenario. Hope I was clear enough.
Regards.
-
March 3, 2016 at 5:22 am #31167Naazira BadarParticipant
Hi Damian and Ahmed..
Is the code logically right?
I mean x= normrnd(mu,sigma) generates normal distributin variables. How does the expression exp(2*x) change it to log-normal?
Also, why didn’t you directly use the function lognrnd? Kindly helpme understand it.Regards.
-
-
AuthorPosts
- You must be logged in to reply to this topic.