모델 오류가 시뮬링크 :내가이 사진에 대한 시뮬링크 다이어그램을 생성 했어
내 대답은 이것이다 :
나는 몇 가지 값을 준 것 a
, b
및 c
(3, 4, 5 등)이지만 실행하려고하면 다음과 같은 경고가 표시됩니다.
Warning: The model 'ex2_2' does not have continuous states, hence Simulink is using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or by setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog
Warning: 'ex2_2/Unit Delay' is discrete, yet is inheriting a continuous sample time; consider replacing unit delay with a memory block. When a unit delay block inherits continuous sample time, its behavior is the same as the memory block. Unit delay block's time delay will not be fixed and could change with each time step. This might be unexpected behavior. Normally, a unit delay block uses discrete sample time. You can disable this diagnostic by setting the 'Discrete used as continuous' diagnostic to 'none' in the Sample Time group on the Diagnostics pane of the Configuration Parameters dialog box. "
내가 잘못 여기있어 어디 그냥 단계 신호의 출력 (범위) ...
나도 몰라.
모델 구성 대화 상자에서 이산 시간, 고정 단계 솔버를 어떻게 지정할 수 있습니까? 죄송합니다. 시뮬 링크에 익숙하지 않습니다. –
@LaurentiuAdrianParaschiv 크게 변경되지 않은 한 (R2010a에 있음) 모델 구성 대화 상자 (Ctrl + E)를 엽니 다. 왼쪽에서 구성 범주를 선택할 수 있습니다. '해 찾기 '를 선택하십시오. 그런 다음 오른쪽의 '솔버 옵션'에서 '고정 스텝'** 유형 ** 및 '이산 시간'** 솔버 **를 선택하십시오. 또한 샘플 시간을 명시 적으로 지정할 수도 있습니다. '자동'으로 설정하면 Simulink는 총 50 단계를 취할 수 있도록 샘플 시간을 선택합니다. 더 나은 스코프 출력을 위해 더 많은 것을 원할 수 있습니다. –
이제 다음과 같은 오류가 발생합니다. 'ex2_2'모델의 샘플 시간을 기준으로 고정 된 단계 크기를 결정할 수 없습니다. 모델에 개별 샘플 시간이 없기 때문에 가능합니다. 시뮬레이션 시작 및 정지 시간을 기준으로 고정 된 단계 (0.2) 크기를 선택합니다. 구성 매개 변수 대화 상자의 해결 프로그램 창에서 고정 된 단계 크기를 명시 적으로 지정하거나이 매개 변수의 진단 창의 해 찾기 그룹에서 '자동 해결 매개 변수 선택'진단을 '없음'으로 설정하여 진단을 해제 할 수 있습니다. 구성 매개 변수 대화 상자. –