- This topic has 5 replies, 2 voices, and was last updated 10 years ago by
Damian Marek.
-
AuthorPosts
-
-
April 10, 2015 at 3:56 am #19545
Tu Nguyen
ParticipantHi all,
I wonder whether we can add multiple matlab components into one project? I added three matlab blocks into one project but I cannot see the signals from two other in the workspace. Do we need to name variable differently? i.e. OutputPort1=InputPort1;com_2_OutputPort1=com_2_InputPort1; com_3_OutputPort1=com_3_InputPort1
Please look at my example bellow
Thank you -
April 10, 2015 at 11:06 am #19566
Damian Marek
ParticipantNo you don’t need to change the variable names. The reason is because the Dual Port Oscilloscope was missing an input, so it displays nothing. If you place a normal Oscilloscope you will see the output (after renaming the variables back to the default).
-
April 10, 2015 at 12:28 pm #19569
Tu Nguyen
ParticipantThank you, I have found out the problem.
So, I wonder can we use more than one matlab component in the same project?is it ok? if it is fine, I think that the in/output’s names of different matlab components should be separated, but I dont know how to separate them without changing the default names.
Thank you-
April 10, 2015 at 1:42 pm #19571
Damian Marek
ParticipantYes it is fine to use more than one Matlab component, I have never run into any problems with multiple Matlab components. Even the variables can have the same name, in fact if they are not all called Input_Port1, etc.. then I do not think the component will work properly.
Regards
-
-
April 10, 2015 at 3:13 pm #19579
Tu Nguyen
ParticipantThank you! yes, I agree, we can add multiple matlab components in a project. It runs, but how to differ signals belonging to each component in the Workspace? I used two Matlab components but I can only see the only one InputPort1 data in Workspace. How to see the other one?
Thank you-
April 10, 2015 at 3:33 pm #19580
Damian Marek
ParticipantDuring the simulation, the Matlab components are calculated in a certain order. The variables you see in the workspace belong to the last Matlab component calculated during the simulation. If there is a component you want to troubleshoot you should disable the other Matlab components.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.