Modelling in simulink to obtain a function taking one parameter after code generation
    8 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
 void DoProcessing(ReceiveEvent enEvent)
{
    switch(enEvent)
    {
      case a:
             abcd();
             break;
      case b:
             efgh();
             break;
     }
 }
How can a model be developed in simulink (without using thhe Matlab function block)which on code generation generates a function of the above nature?
Thanks!
0 Commenti
Risposte (2)
  Joseph Stalin
      
 il 26 Feb 2013
        To pass an argument of a function please configure the sybsystem block to reusable function having the argument passed via Input port.
Code generation is more flexible that you can create this function in a user specified function name and file name as well.
0 Commenti
Vedere anche
Categorie
				Scopri di più su Simulink Coder in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


