From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
MATLAB脚本节点只允许使用六种数据类型,这六种都是数值型的。要传入一个字符串的数据类型,首先需要将字符串转换为字节数组。使用MATLAB软件中的'double’命令将字符串转换为一维双精度型数组,然后将此数据类型传入MATLAB软件就不成问题了。在MATLAB软件里,使用'char’命令将双精度型数组转换为字符串。如果要在LabVIEW里再次使用字节数组,您需要使用Byte Array To String.vi 将字节数组转换回字符串。
请参考附件中的VI以清楚的了解。
MATLAB®是MathWorks, Inc.公司的注册商标。列出的其他产品和公司名字都是他们各自公司的商标和商品名。
|