Full assignment to data missing using multiple Simulink states within charts
    15 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hiya,
I'm trying to simulate a circuit that contains one stateflow chart with multiple Simulink states within it. When using two or more Simulink states the following error gets returned
'Full assignment to data 'Out' is missing. Specify values for all elements of Stateflow chart locals and outputs. For more information, see Supported Operations for Vectors and Matrices. For structure types, a full assignment is not necessary when the type is specified as "Bus: typename" and not inherited or parameterized.'
The files are attached to open the code for Simulink and Matlab, the Matlab code contains some extra variables you can ignore (any variables for the ventricles).
I've done some reading but honestly have no clue what I can do to fix this problem. I've tried defining the output blocks as empty arrays within Matlab before running the simulation, using the same and different names for each output block.
Thank you to anyone that can help! I've been stuck on this for a couple days now :)
2 Kommentare
  hx j
 am 27 Nov. 2023
				I solved this problem by initializing the variable with "Initial value" in the model explorer screen
Antworten (1)
  Teresa Hubscher-Younger
    
 am 2 Dez. 2024
        Looks like the solution is initializing the variable for the output in Model Explorer. Did that work?
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



