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.




我该如何将任务转移到另一台电脑上?



硬件: Compact FieldPoint, Legacy DAQ Devices, Modular Instruments, Multifunction DAQ (MIO), PXI/CompactPCI, SCC, SCXI

问题:
我对特定的LabVIEW程序创建了的一些任务,虚拟通道和自定义的比例,并想将其转移到其他电脑上。我该怎样方便的实现这些转移?

解答:
有两种方法来实现将任务,虚拟通道,自定义比例从一台电脑到另一台电脑的转移。  你可以通过Measurement and Automation Explorer(MAX)或者LabVIEW 8.0或其更高版本的项目来把它们导出。

Measurement and Automation Explorer: 

  1. 在下拉菜单中File » Export
  2. 使用下拉菜单选择你想到从其中导出配置信息的系统。
  3. 在To File的下拉菜单中选择你要存放配置文件的位置。
  4. 在下拉菜单中选择你的配置文件类型。
  5. 按下Next 按键。
  6. 从MAX的Configuration 列表中选择My System » Data Neighborhood » NI-DAQmx »你想要转移到新的计算机中的任务。
  7. 从MAX的Configuration 列表中选择My System » Data Neighborhood » NI-DAQmx Global Virtual Channels » 你想要转移到新的计算机中的全局虚拟通道。
  8. 然后按下 Export.
  9. 执行结束后,按下Finished.
  10. 把第二步中存在指定位置的文件拷贝到新的计算机中。
  11. 在 Measurement and Automation Explorer中选择File » Import把文件导入MAX中。
  12. 通过下拉菜单选择文件存放的位置。
  13. 通过下拉菜单选择将配置文件导入的系统。
  14. 按下 Next 按键。
  15. 选择需要导入的任务,通道和自定义比例。
  16. 按下 Import 按键。
  17. 点击Finish 按键。  所以选中的任务,通道和自定义比例将会导入新的电脑中。

LabVIEW 8.0 或更高版本:

  1. 在项目中创建你的任务,虚拟通道和自定义比例。 
    1. 在Project Explorer中将项目展开。
    2. 右击 My Computer
    3. 选择 New
    4. 选择你是否想创建一个新的NI-DAQmx Task, NI-DAQmx channel,或NI-DAQmx Scale。
    5. 通过弹出的对话框配置任务,通道或者比例。
    6. 重复d和e步骤,以创建所有需要的任务,通道和比例。
  2. 为项目创建一个zip文件。
    1. 右击Build Specifications。
    2. 选择 New » Zip File
    3. 为zip文件输入一个路径。
    4. 点击Build
    5. 到文件存放位置将其拷贝到新的电脑中。
  3. 在新的电脑中打开工程,你就可以访问工程中所有的 VIs ,以及所有的任务,通道和比例。


相关链接: KnowledgeBase 2W3ENCMU: Saving and Loading Measurement & Automation (MAX) Configurations Not Working in 2000/XP
KnowledgeBase 2GJJ9SY1: Saving the System Configuration in Measurement & Automation Explorer (MAX)
KnowledgeBase 2S8K2L2O: I Can't See the Virtual Channels That I Created and Saved In a Configuration File


附件:





报告日期: 11/06/2006
最近更新: 11/08/2006
文档编号: 425BOISK