- This topic has 12 replies, 2 voices, and was last updated 9 years, 3 months ago by
alistu.
-
AuthorPosts
-
-
October 28, 2015 at 2:52 am #27184
Rend Alrays
ParticipantHi..
I’m having problems of writing codes in matlab and then exporting it to optisys ,, what are the difference between the code written in matlab and the other used in co-simulation,, as i saw in other topics the inputs will be written as (for example):
amp = InputPort1.Sampled.Signal;
freq = InputPort1.Sampled.Frequency;
instead of numbers as in matlab ,, (I’m using an available code programmed in matlab) -
October 28, 2015 at 3:14 am #27187
alistu
ParticipantHi Rend,
The codes written for co-simulation have been made with regard to the format of the vectors generated in OptiSystem. For example, for an electrical signal OptiSystem creates a time vector and a magnitude vector separately. You must know how to refer to each of these vectors in your code to be able to access them and process their data by Matlab. A good first step to understand these is to start with the videos created by Optiwave and tutorials available in OptiSystem samples in Matlab co-simulation section.
Regards
-
October 28, 2015 at 3:25 am #27188
Rend Alrays
Participantthats exactly what i was talking about i didnt understand the codes written in the example below.. Are there any steps to follow ?
according to the samples how can i run them if i dont have the m file? without writing the path??-
October 28, 2015 at 3:34 am #27190
alistu
ParticipantYou can write the code in an m file and put the m file in the same folder as the osd simulation file. This way you won’t have to writing the code path in the Run Command in the Matlab Component. You can also write the whole code in the run command, without any need to create any m file (although I have always used the first method).
-
-
October 28, 2015 at 3:39 am #27192
Rend Alrays
ParticipantSo how will I reach to the matlab code of the samples??
-
October 28, 2015 at 4:51 am #27195
Rend Alrays
ParticipantI cant open the osd file 🙁
-
October 28, 2015 at 4:53 am #27196
Rend Alrays
ParticipantIm using optisys 13
-
October 28, 2015 at 5:41 am #27202
alistu
ParticipantCan you find out the exact version you are using by choosing “about OptiSystem” option in help in the menu bar? The last OptiSystem version is 13.0.3 . You can see if yours is the same. If it was the same, try redownloading the file from the addressed forum topic and the open it. I hope it works.
-
-
October 28, 2015 at 6:06 am #27205
Rend Alrays
ParticipantIt is 13.0.1 and i have only 20 days left..
-
October 28, 2015 at 7:59 am #27212
alistu
ParticipantWell, you can download the new version, uninstall the current version that you are using now and install the new version and you will still have 20 days left. I have done this in the past and I have also seen a verification of such a thing being possible in one of the topics as far as I can remember.
-
-
October 28, 2015 at 8:33 am #27216
Rend Alrays
ParticipantHow can I download the new version?? The problem still exists and I only have 20 days..
-
October 28, 2015 at 8:57 am #27217
alistu
ParticipantYou can go to your Optiwave profile and click on “evaluation license downloads”. there, you can use OptiSystem software and download it. You can download each software evaluation for three times. I suggest that you download the 64-bit version, as I know it is version 13.0.3, although 32-bit version is also supposed to be so.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.