How can i select 1 of the 2 outputs on the basis of conditions?
    9 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Mati
 el 27 de Jun. de 2017
  
    
    
    
    
    Comentada: Mati
 el 3 de Jul. de 2017
            
I am designing a controller. I have certain logical conditions on which one of the two controllers i.e. Main controller and sub controller is to be selected . I am using an "if block" with two "if action" sub blocks for selection. The output of both the controllers is a 3x1 vector. Now "if block" will select the controller based on certain conditions. But how to select one of two outputs from the controllers is my problem!! Kindly see the attached Simulink model for more clear idea of my problem. I have already tried merge and mux blocks but both of these cannot select one of the outputs.
1 comentario
  Image Analyst
      
      
 el 27 de Jun. de 2017
				
      Editada: Image Analyst
      
      
 el 27 de Jun. de 2017
  
			Nothing is attached. Edit your original post and this time, use the paperclip icon to attach a file, or the frame icon to insert a picture.
Respuesta aceptada
  Astik Sachan
      
 el 28 de Jun. de 2017
        Merge Block will work fine here as 1 output at a time will be enabled by IfElse Block.
6 comentarios
  Astik Sachan
      
 el 30 de Jun. de 2017
				
      Editada: Astik Sachan
      
 el 30 de Jun. de 2017
  
			No, Switch Block is not at all encouraged for combining two inputs from If action Subsystems.Merge block is what MathWorks also suggest.
Please enable signal Dimension and Port data type so that I will be able to see what is coming from If Action Subsystem.
- Goto: Display>>signal Dimension
- Goto: Display>>Port data type
and if possible attach the model here I will look into it. or reach me on mail astiksachan8@gmail.com
Más respuestas (0)
Ver también
Categorías
				Más información sobre Ports and Subsystems en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




