LabVIEW能否判断设备是否为仿真设备?
主要软件:
主要软件版本: N/A
主要软件修正版本: N/A
次要软件: N/A
问题: 在我的Measurement and Automation Explorer (MAX)中有一些DAQmx设备和DAQmx仿真设备。如何在LabVIEW中编程判断某设备是否为仿真设备?
解答: 利用DAQmx设备属性节点(
Functions» All Functions» NI Measurements » DAQmx - Data Acquisition»DAQmx Advanced » DAQmx Constants & Property Nodes),可以有两种方法来判断一个设备是否为仿真设备:
- "Device Simulated" 属性 - 如果该设备为仿真设备,该属性返回一个布尔值"true";
- "Device Serial Number" 属性 - 如果该设备为仿真设备,该属性返回0。

相关链接: Knowledgebase 3JLD2HB9: What are NI-DAQmx Simulated Devices and How Do I Use Them?
附件:
- Screenshot.JPG
报告日期: 08/12/2005
最近更新: 10/30/2008
文档编号: 3OBDB2XR
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.