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.



LabVIEW FPGA 以外的定长数组的行为



主要软件:
主要软件版本: 8.0
主要软件修正版本: N/A
次要软件: N/A

问题: 我何时能使用定长数组?

解答: LabVIEW 只在 FPGA VI 中支持定长数组。在 LabVIEW 7.1 及更早的版本中,如果您安装了 LabVIEW FPGA 模块,您可以在 FPGA VI 以外创建一个定长数组。但是,定长数组不支持在非 FPGA 执行目标下执行。在 LabVIEW 8.0 中,您不能在 FPGA VI 以外创建定长数组。但是,如果您在 FPGA VI 中创建一个定长数组,然后在 My Computer 下打开 FPGA VI,定长数组仍然存在。

为了避免使用定长数组,选择 File»VI Properties,并从 Category 菜单中选择 Execution,然后去掉 Autopreallocate arrays and strings 选项框中的选择。在 LabVIEW 7.1 以及更早的版本中,FPGA 模块为所有的 VI 使能该选项,无论所选择的执行目标是那种类型。在 LabVIEW 8.0中,FPGA 模块只在 Project Explorer 窗口中 FPGA 目标下的 VI 使能该选项。如果您从早先的 LabVIEW 中引入一个 VI 到 LabVIEW 8.0,Autopreallocate arrays and strings 复选框可能会被选中。去掉 Autopreallocate arrays and strings 复选框的选择以避免使用定长数组。

相关链接:

附件:





报告日期: 06/20/2006
最近更新: 09/23/2007
文档编号: 3UK9BCHB