- This topic is empty.
-
AuthorPosts
-
-
November 16, 2015 at 6:51 am #27745Radhika RaghavanParticipant
Hi,
I have to use optisystem matlab cosimulation to study underwater optical wireless communication. To learn the use of matlab component in optisystem I used the tutorials and application notes provided by optiwave. I don’t understand why I always get this error in matlab when trying those examples. —
Undefined function or variable ’InputPort1’.
Error in binaryxor (line 4)
OutputPort1 = InputPort1;Also it shows a warning while calculating the matlab code in optisystem compilation and I don’t get any outputs. Could anyone please help me with this?
-
November 16, 2015 at 9:40 am #27792alistuParticipant
Hi Radhika,
This error occurs when you have addressed a vector in your Matlab program that does not exist. I suggest that you upload the Matlab codes along with the osd simulation file here so it can be checked. (BTW, sometimes, when you correct an error in a Matlab program and run the simulation again, the same error will be given even though there is no error in the program. For that, you have to reopen OptiSystem and proceed with your simulation.)
Regards
-
November 19, 2015 at 10:33 am #27938Damian MarekParticipant
To help you we really need the matlab file and a screenshot or OptiSystem project file. I would guess you are using some command on line 1-3 which deletes all the variables like “clear all” or “clearvars”. Either that or the component is not connect properly.
Regards
-
November 28, 2015 at 7:35 am #28180Radhika RaghavanParticipant
Hi Alistu and Damian,
I hadn’t opened the m file from code directory in matlab command window. Fixed it. Thank you.
-
September 18, 2020 at 2:29 am #68137Adree BhattacharjeeParticipant
(Awaiting moderation)
-
September 18, 2020 at 2:41 am #68138Adree BhattacharjeeParticipant
(Awaiting moderation)
-
-
November 28, 2015 at 8:20 am #28183Radhika RaghavanParticipant
I am using Reed Solomon encoding and decoding with on off keying for underwater optical wireless communication system. Input is given using user defined bit sequence generator. When I input a 20 bit sequence directly, it showed a CIDF scheduler error and then I used the load from file option. For encoding I used matlab component. The matlab code worked when I run it separately with input given directly in matlab. But it does not work with the ‘InputPort1.Sequence’, which is actually the output from user defined bit sequence generator.
For decoding, I have to convert electrical signal from detector output to binary and then decode using matlab component. Is there any way to convert electrical signal to binary in Optisystem 7.0 ?
The files are attached.
Can anyone help me to fix this issues?-
November 28, 2015 at 8:13 pm #28194alistuParticipant
Hi Radhika,
When I ran the above osd file, I got an error stating there is something wrong with the way you have used Matlab “reshape” function, which is related to your “rsecnoder_ook” program and the first Matlab component. So I think you should do something about it first to be able to have signals after that block.
Regards
-
-
November 29, 2015 at 7:58 am #28201Radhika RaghavanParticipant
Hi alistu,
I could fix that error. The sequence length in layout properties was 32 bits and my input was 20 bits. So input was taken as 32 bit by default. That caused a mismatch in number of elements when I used reshape function.
Is there any way to convert electrical signal to binary in Optisystem 7.0 ?
-
November 29, 2015 at 10:32 am #28203alistuParticipant
I’m glad to hear that. Unfortunately, I don’t have access to OptiSystem version 7, but I believe you can do it by using M-ary threshold detector and setting its threshold levels to just one threshold and define two signal levels for it; one and zero (the same as the signal levels in a binary signal).
-
-
November 30, 2015 at 12:48 am #28209Radhika RaghavanParticipant
Hi Alistu,
Thanks a lot. I could convert the noise plus signal output of detector to an electrical pulse having 0 and 1 amplitudes. Still I have to convert the electrical signal to a binary sequence. -
November 30, 2015 at 11:23 am #28229Radhika RaghavanParticipant
Hi Alistu,
I will try it. Thank you.
-
December 1, 2015 at 5:38 am #28253Radhika RaghavanParticipant
Hi,
I used a M-ary threshold detector at the output of photodetector and a PAM sequence decoder to get the binary sequence. What I get at the output of PAM sequence decoder is a 160 bit long series of alternate 1 and 0s. This shouldn’t be the sequence I get for the given input. I think there is some problem with the PAM decoder. I have attached the osd file. Can you please check it and give some suggestions?
-
December 1, 2015 at 6:29 am #28260alistuParticipant
I do not see the attachments. I will be waiting for you to attach the file. Maybe there is something wrong with layout settings (such as the bit rate being chosen as a number that the doesn’t match the one in user defined bit sequence if it has been used for example), but I can say for sure after I see the implementation.
Regards
-
-
December 2, 2015 at 3:13 am #28299Radhika RaghavanParticipant
Sorry. Here is the .osd file.
Attachments:
-
December 2, 2015 at 3:45 am #28301alistuParticipant
Since you have made some changes in the formerly used Matlab codes to correct the cause of the “reshape” problem, I am not able to get any signal at the output as I am using the old Matlab files that you had uploaded here a few days ago. So can you please upload the corrected Matlab files here?
Regards
-
December 2, 2015 at 3:56 am #28302Radhika RaghavanParticipant
Hi Alistu,
All files are attached.-
December 2, 2015 at 11:18 pm #28335alistuParticipant
I have attached a file in which I have corrected the values of PAM decoder and M-ary threshold. Please notice the changes I have made to these components (and I don’t know if the whole scheme works fine), but do not continue your work on this implementation, as I have made other unnecessary changes to it. BTW, the “reshape” error was given for RS decoder component.
Attachments:
-
-
December 6, 2015 at 12:12 pm #28483Radhika RaghavanParticipant
Thanks a lot Alistu
-
December 12, 2015 at 1:03 am #28696Radhika RaghavanParticipant
Hi Alistu,
I could fix that problem by replacing M-ary threshold detector and PAM decoder by data recovery. Before that I was not getting a valid output sequence to decode.
I get the correct input sequence I transmitted after decoding but the BER is 0. Can you tell me why this happens?-
December 12, 2015 at 2:48 am #28706alistuParticipant
Hi Radhika,
BER being zero means data transmission in your system is done without any problem. It shows your system has a good quality. However, you can further increase the reach and/or bit rate to the point where BER reaches 1e-12 to 1e-9 (acceptable values for many practical communication systems).
Regards
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.