How to programmatically pause and resume UUT Simulation in Test Sequence Block ?
    9 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Is there a way to pause unit uder test, UUT, simulation from test sequence, yet allow test sequence block to execute to evaluate verify statement?
I'm using test sequence to test a state machine that will transition between some of the states strickly based on timer expired; i need a way to pause simulation while it is timing and/or at the timer expiration but before it transition to new state, let test sequence verify some signals, then let it resume simulation back.
0 Commenti
Risposte (1)
  Jesús Zambrano
    
 il 26 Mag 2021
        Maybe you can add one or more breakpoints in different steps so to pause in the moment you prefer. Here I include documentation showing the steps to do it:
7 Commenti
  Jesús Zambrano
    
 il 30 Mag 2021
				In this case I suggest to implement all the pause/evaluate/continue logic using a MATLAB function block or create an script with all the evaluations. 
set_param(bdroot,'SimulationCommand','pause');
run('myscript.m'); %
set_param(bdroot,'SimulationCommand','continue');
Good to recall that you could use callbacks (model callback and bloc callbacks) to execute different actions at soecific moments. 
No specific functions about pause/continue are available in a test sequence/test assessment block. Also, pausing a especific block in a model is not supported.
Vedere anche
Categorie
				Scopri di più su Inputs 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!

