sample time error for simulink model consisting of xilinx block sets

30 views (last 30 days)
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.

Answers (1)

Kaustubha Govind
Kaustubha Govind on 6 Jun 2012
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 Comments
Kaustubha Govind
Kaustubha Govind on 13 Jun 2013
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 on 13 Jun 2013
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 !

Sign in to comment.

Tags

Products

Community Treasure Hunt

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

Start Hunting!