- This topic has 20 replies, 4 voices, and was last updated 9 years, 4 months ago by Damian Marek.
-
AuthorPosts
-
-
July 10, 2015 at 2:43 am #22303shamsudheen pParticipant
Hi all,
I have been trying to study the matlab component in optisystem to transmit the user defined bit sequence. I have watched the demo on the same. But while simulating I am not getting the modulated output. Attaching the project file here. please help me to solve the issue -
July 10, 2015 at 10:10 am #22323Ashu vermaParticipant
Hello, Shamsudheen p
The problem is in the signal that you are getting on the visualizer? or you are not able to co-simulate the matlab component with your user defined sequence data? Rest i will try to see your system. Are you working on OCDMA ? Can you explain the objectives ? . -
July 13, 2015 at 10:52 am #22387shamsudheen pParticipant
Hai sam sung,
I am able to co-simulate the matlab with optisystem. I was just trying out a simple programe code from the demo video. I want to modulate the laser according to the data which can be inputted as .dat file in the user defined sequence. The data is a binary valued(streams of 1’s and 0’s)-
July 13, 2015 at 2:06 pm #22392Damian MarekParticipant
You were missing a semicolon on one of the lines:
compseqMatched = ~seqMatched;
And also I think you might have changed some option in the CW Laser because it was not outputting anything. I replaced it with a default CW Laser and it works fine.
-
-
July 13, 2015 at 3:20 pm #22393shamsudheen pParticipant
Thank you Damian, It is working now. However the output frequency is very high.
I wanted to load .dat file for the same type of output. Any other things to taken care for this?-
July 13, 2015 at 4:01 pm #22395Damian MarekParticipant
You can change the Bit rate from the layout parameters, and do you mean you want to import a binary sequence to control the switch?
-
July 16, 2015 at 12:35 am #22486Joseph JiangParticipant
Hi,dear Damian.In a long time i want to know why we can not use bit sequences rather than a bit(0 or 1) to control the optical switch.we must use matlab to co-simulate if we want to use bit sequences to real-time control the optical switch state.thank you!
-
July 16, 2015 at 9:20 am #22501Damian MarekParticipant
You don’t necessarily need to use Matlab, this example is more to show how to use the Matlab component. Here is another implementation with only OptiSystem components for making an Optical Switch.
-
-
-
July 14, 2015 at 4:10 am #22402shamsudheen pParticipant
yes i wish to modulate the laser in accordance with the input binary sequence
-
July 14, 2015 at 2:37 pm #22425Damian MarekParticipant
You can change the global bit rate to a slower frequency and the User defined bit sequence generator has the option to read a sequence from a text file. The Help button will tell you exactly what the text file should look like.
-
-
July 15, 2015 at 3:06 am #22427shamsudheen pParticipant
Hi Damien, I have made some changes in my project file according to your suggestions. I am unable to view the output waveform. please help me to solve the issues.
Attaching the .osd file, input file to the user defined sequence generator, matlab code and output waveform-
July 15, 2015 at 8:28 am #22452Damian MarekParticipant
Try attaching them again, I can’t see them.
-
-
July 15, 2015 at 11:07 am #22463shamsudheen pParticipant
h
-
July 15, 2015 at 11:10 am #22465shamsudheen pParticipant
here is the matlab code,input to the user defined sequence and output obtained
-
July 15, 2015 at 3:28 pm #22472Damian MarekParticipant
There was an error in you matlab file. A missing apostrophe for a transpose. Also you switched the type of signal to frequency in the Matlab component which also is not how the component was set up. Just change the directories, so that OptiSystem can find the m file and the text file and you are golden!
-
July 21, 2015 at 1:11 pm #22620shamsudheen pParticipant
Dear Damien, Thanks.it is working.
I just replaced the cw laser with a white light source and checked the result. but error occurs. will it be due to sampling problems??-
July 23, 2015 at 9:07 am #22669Damian MarekParticipant
This error is probably coming from the fact that you did not convert the noise bins. Make sure the Layout parameter is true or checked and also that in the White Light Source component the noise bins are converted.
-
-
July 24, 2015 at 6:00 am #22698shamsudheen pParticipant
Hi Damien ,
I have checked the noise bins make it true. now matrix dimension mismatch error occurs for seqmatched,
should i match the dimension of seqmatched and InputPort1.Sampled.Signal ? I have checked in workspace and not able to correct this. please help.
I have changed the frequency of white light source to 500 nm-
July 27, 2015 at 9:38 am #22743Damian MarekParticipant
The White Light source introduces another polarization so the vector seqmatched vector just needs to be duplicated in the m file.
Try this one.
-
-
July 28, 2015 at 8:46 am #22797shamsudheen pParticipant
Hi Damien,
Thank you. there is no errors now. I have modified the project for communication using white led and received the output.
However, why i can”t reduce the frequency of output? or the output which i got is noise? I have changed the bit rate in layout parameter.
Also, the data input to the user defined sequence generator is a binary converted image. I have tried to plot the same in optisystem but not succeeded. But it worked in matlab.
I am attaching the output waveform here
also the .txt file,receiver output and the matlab codes-
July 28, 2015 at 9:42 am #22809Damian MarekParticipant
You are taking a bit sequence from a file with over 1024 bits and the layout parameter is only 16. Since the first 16 bits in your file are all 1 changing the bit rate will have no effect. Changing the layout parameter Sequence length to 1024 and you will see an effect of the bit rate on the output.
I’m not really sure about the last part of your question. This seems more like a Matlab programming challenge. It also seems like you want to use the Binary Switch component as a simple modulator. You can use anyone of our other components to do the same thing. It might be simpler.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.