sample time error for simulink model consisting of xilinx block sets

14 次查看(过去 30 天)
we have designed a model with xilinx block sets .i given sample period 10 ns . while running it is showing fallowing error.
The periodic sample time 1000000 is not allowed because the ratio of this sample time over base rate (1e-008) is greater than the maximum value of uint32.

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2012-6-6
The error appears to be pretty clear. Do you have a sample time of 1000000 anywhere in your model? You either need to reduce that sample rate, or increase the base rate of your model.
If you have not set such a sample-time in your model, it seems like other people have run into this issue with System Generator before. I would recommend contacting Xilinx Support for help.
  5 个评论
Kaustubha Govind
Kaustubha Govind 2013-6-13
Have you tried the Sample Time Display to 'All' to see where the large sample-times are originating. Typically it is one of the blocks in the path with the sample-time that specifies it.
Lijo
Lijo 2013-6-13
Yes I did. I have a multi rate system with blocks running at integer multiples of each other. I use some down samplers to synchronise them.
Interestingly, all the blocks which run with sample times less than 1 are colored and shown on the sample legend while those sample times more than 1 (in my case are 1e6,2e6,3e6 etc) are colored and given annotation on the Sample Legend but not identified on the blocks.
All my blocks are supposed to be running at sample periods below 1 and my input arrives at a sample period of 1. All the multi rated blocks are colored and shown correctly on the Sample Legend. There are also a few hybrid blocks !
Hybrid blocks have their own color representation but I don't think they can be the villains in my design. I am really clueless which block takes 5e6 sample time while I have specified only sample times less than 1 or inherited the sample times from blocks which have sample times less than 1.
Am I clear to you? Have you come across such scenarios? Thanks a lot again. Hope you can help me out !

请先登录,再进行评论。

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by