SystemTest's Limit Check throws an error as the variable being tested on is empty. How do I get this LimitCheck working?
이전 댓글 표시
I have a SystemTest of a Simulink model, where the outport signals are mapped to Test Variables.
When I try and perform a limitcheck, I get the Error Message: "[variableName] is empty."
I've not managed to figure out a workaround. When I attach a scope onto the outport signal, I find it is producing a signal right from the start of model simulation.
채택된 답변
추가 답변 (1개)
Fangjun Jiang
2011년 8월 26일
0 개 추천
I think the problem might be that the signal is not logged. Do you have a signal label for that signal line? Does the "variableName" exist in the base workspace after the simulation? Right click the signal line, choose "signal properties", you will see a dialog to specify the signal name, log name, etc. Make it match the variable name.
댓글 수: 9
James
2011년 8월 26일
James
2011년 8월 26일
Fangjun Jiang
2011년 8월 26일
That is probably unrelated. The scope has a default of 5000 points limit.
James
2011년 8월 26일
Fangjun Jiang
2011년 8월 26일
What do you mean? A signal line is connected to your Outport block. You are performing a limit check. The check has to be performed on a variable which contains the data representing the signal values along time. Do you check the 'variableName' in the workspace? How and where do you record the data? What variable do you use to record the data?
James
2011년 8월 26일
Fangjun Jiang
2011년 8월 26일
Maybe because that variable was accidentally cleared.
Bart Addis
2011년 8월 31일
If you are comparing doubles, it is likely that the values you are comparing against are not exact double precision matches for the outputs of the model. This could be a combination of conversion to binary and limited number of significant digits. You probably want to use the Tolerance Check tab of the Limit Check Element. This will give you control over how much precision you expect from the test.
James
2011년 9월 14일
카테고리
도움말 센터 및 File Exchange에서 Outputs에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!