使用 "In" 块将连续的比特流从工作区导入到 simulink 中,然后使用 "buffer" 块对其进行缓冲

import a continuous bitsream from workspace into simulink using "In" block and then buffer it using "buffer" block

如何将位流形式的二进制向量从工作区导入 simulink.Actually 我发现我可以使用 simin 块或 In 块,但我的二进制向量与时间无关。我尝试使用 Const 块并且它有效,但是当我想将我的输出放在 simulink 的 Buffer 块中时,它不起作用,因为输入是连续的而不是离散的。所以我问这是否是一种在不影响结果的情况下向我的二进制单维添加时间的方法?我该怎么做? 或者是否有其他方法导入此日期以避免 Buffer 块出现此问题?

您的屏幕截图显示常量块的采样时间为 Inf。如错误消息所示,您需要将其更改为离散采样时间。此外,您还应该:

  • 检查您的模型是否使用了固定步长求解器
  • 检查您为所选固定步长求解器使用的时间步长(理想情况下与您的常量相同)。

您可以拥有多速率模型,但您需要使用 Rate Transition blocks. For more details on sample times, see the documentation, in particular how to view sample time information in a Simulink model. You should probably also have a quick look at the Choose a Solver 部分管理速率转换。