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.
|
有几种方法来实现这一点。每个方法都需要两件事:设置默认值,并在运行VI时将数组控件初始化为默认值。
设置默认值:
选项1-手动键入默认值
选项2-使用初始化数组自动设置为默认值
重新初始化为默认值:
将初始化以后的数组控件放在while循环中,以允许用户编辑它。要确保在运行VI时立即初始化数组控件,请将错误簇连接到while循环中以强制数据流执行顺序。下面是一个程序范例,允许用户编辑已初始化的数组,并将这些值写入文本文件。这是实现要求的许多可能性之一。
|