Vector to Bus

版本 1.1.1 (52.1 KB) 作者: thomas
Vector to bus conversion in Simulink
54.0 次下载
更新时间 2019/12/2

Convert a vector of doubles into a (non-virtual) bus object. The input vector size must match the size of all the bus elements.

Unlike the built-in bus to vector block, the data type of the bus elements need not be consistent (input vector is cast to each elements data type). The top level bus may also contain nested nested buses, but arrays of buses are not supported.

As the S-Function contains simStruct macros that are not supported during code generation a TLC file is provided to inlines the S-Function during code generation.

Tested only on Linux (Ubuntu). Probably needs some changes to compile on Windows.

Build with:
>> mex('CFLAGS="$CFLAGS -std=c99 -Wall"','v2b_sf.c');

引用格式

thomas (2024). Vector to Bus (https://github.com/thomas169/v2b), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Composite Signals 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.1.1

Github

1.1.0

TLC bug fixes

1.0.1

Edit platform compatibility.

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库