simscape

Simulink Simscape simple circuit not working

与世无争的帅哥 提交于 2019-12-13 05:20:12
问题 I am new to Matlab and I'm trying to make a simple circuit in Simulink library Simscape. I have an AC voltage source with RMS value 50V and frequency 50Hz. But as shown in the image, the scope displays a noise, not a sine wave as I expected. What could be the problem? Thanks. 回答1: No, the scope does display the correct signal, which is a sine wave at 50Hz. 50Hz corresponds to a period of 20ms, so if you want to see the sine wave correctly, you need to zoom in until you have a sufficient

Adding a DC Motor to a Simscape Multibody Revolute Joint

旧城冷巷雨未停 提交于 2019-12-11 03:54:34
问题 I have the following Model of a DC motor and a Simscape Multibody Model of a 2-wheel Robot. DC Motor with Torque Output: Simscape Multibody Model of my Robot: I want to control speed of the robot (Simscape Multi-Body Model). So I want to interface the DC motor to the revolute joint of the robot. The above generated model appears to work but, the motor rotates above no-load speed and motor-torque nears stall torque as measured at the revolute joint. How would I ensure that the DC motor torque

Programmatically connect two subsystems

心不动则不痛 提交于 2019-12-02 19:54:15
问题 I'm trying to build a complex model programmatically reusing some custom blocks/models I have developed before, but I cannot manage to connect two PMC_Port This is what I have: % Main system sys_name = 'model'; sys = new_system(sys_name) open_system(sys_name) load_system('circuit_cell') % Subsystem with 6 PMC_Port elements % stored in circuit_cell.mdl file % Add cell #1 add_block('built-in/Subsystem', [sys_name '/cell1']) Simulink.BlockDiagram.copyContentsToSubSystem('circuit_cell', [sys_name

Programmatically connect two subsystems

房东的猫 提交于 2019-12-02 11:37:10
I'm trying to build a complex model programmatically reusing some custom blocks/models I have developed before, but I cannot manage to connect two PMC_Port This is what I have: % Main system sys_name = 'model'; sys = new_system(sys_name) open_system(sys_name) load_system('circuit_cell') % Subsystem with 6 PMC_Port elements % stored in circuit_cell.mdl file % Add cell #1 add_block('built-in/Subsystem', [sys_name '/cell1']) Simulink.BlockDiagram.copyContentsToSubSystem('circuit_cell', [sys_name '/cell1']); % Add cell #2 add_block('built-in/Subsystem', [sys_name '/cell2']) Simulink.BlockDiagram