how to access a variable defined in a Simulink.SimulationInput class on the base workspace?
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
I am using parsim to run parallel simulation with different paramters, I use Simulink.SimulationInput calss to create a row of input parameters for each simulation. But the problem is that in my simulation model I have callbacks. As I understand model or block callbacks in parsim can not have access to the modelworkspace variables. I tried to use setPreSimFcn to replace the callbacks to function which run to each worker before simulation start but for that I need to know what is the command to access a variable defined in a Simulink.SimulationInput class on the base workspace?
댓글 수: 1
  Rahul Kumar
    
 2021년 3월 15일
				Hi Laila,
Can you please let me know what callbacks function you currently have and what are they trying to do? Maybe there is a way to do what you are trying to do without using the callbacks. 
답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Run Multiple Simulations에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!