Error with continuous time block when building c2000_motor_algo example
조회 수: 12 (최근 30일)
이전 댓글 표시
I am working through the c2000_motor_algo example in an attempt to familiarize myself with the basics of simulink coder. When I build the program in accordance with the instructions under "Task 2" in the documentation, I get the error:
- Block 'c2000_motor_algo/Position signal/Clock' uses continuous time, which is not supported with the current configuration. Consider selecting the support 'continuous time' option on the Configuration Parameters > Code Generation > Interface pane
And a similar error for the startTime block. I tried changing the 'continuous time' option as instructed, but then received the error,
- The Embedded-C code format does not support continuous sample time blocks
I cannot change the blocks to discrete time blocks because the file is locked (presumably because its an example).
I'm using Matlab 2012b. My target preferences are configured for a Custom board, F28335. I have my solver set to discrete, fixed-step, auto step size.
Another posting had a similar problem, but without a satisfactory resolution: http://www.mathworks.com/matlabcentral/answers/36601-the-embedded-c-code-format-does-not-support-continuous-sample-time-blocks
I appreciate any input!
댓글 수: 1
Kaustubha Govind
2013년 3월 19일
I'm not sure which library the startTime block belongs to, but I don't think the Clock block is recommended for generating embeddable code. You probably need to use a target-specific implementation of the Clock.
답변 (0개)
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
Help Center 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!