Hi, i am using simscape library in simulink and want to know how to call and change specific block parameters from GUI.
    8 views (last 30 days)
  
       Show older comments
    
    Mohamed Elshamy
 on 27 Jan 2018
  
    
    
    
    
    Commented: Mohamed Elshamy
 on 5 Feb 2018
            I am using a solar cell block and want to make internal parameters like series resistance ... into a variable that i can change from Gui.
0 Comments
Accepted Answer
  Nick Sarnie
    
 on 1 Feb 2018
        
      Edited: Nick Sarnie
    
 on 1 Feb 2018
  
      Hi Mohamed,
First, you can use a variable in the workspace to represent a parameter of the Solar Cell block. For example, you could create a variable Rs in the workspace:
>> Rs = 0
Then, you can open the Block Parameters of the Solar Cell block, and set 'Series resistance, Rs:' to 'Rs'.
You can then change the value of 'Rs' in the GUI, which will be used when the model is simulated.
More Answers (0)
See Also
Categories
				Find more on Simscape Electrical in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
