errors in MATLAB/simulink while using logic analyzer
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I using logic analyzer in a simple design and I got some errors:
for example:
>> Logic_Anlzr_pwm1
Warning: Matching "From" for "Goto" 'pwm1/Goto24' not found
> In Logic_Anlzr_pwm1 at 5
Warning: The model 'pwm1' 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
> In Logic_Anlzr_pwm1 at 5
Error using analyzeLogicFromSimulink (line 51)
All elements in the Simulink Dataset must have the same sample time.
Error in Logic_Anlzr_pwm1 (line 7)
analyzar = analyzeLogicFromSimulink(logsout_r);
I used it before in another design and it works ok.
can anyone help me to solve this problem ?
Thanks,
Henry
1 个评论
Walter Roberson
2015-12-9
Have you considered running the Model Advisor? http://blogs.mathworks.com/seth/2008/11/04/introduction-to-model-advisor/
回答(1 个)
Bharath Venkataraman
2015-12-9
Currently, the Logic Analyzer System object can only show signals of a single rate. If the signals you are logging are different rates, you need to reconcile them into a single rate before using the Logic Analyzer. Or else, you can instantiate multiple Logic Analyzers, each for a given rate.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Configure Simulation Conditions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!