NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

树形控件添加子项

图1.JPG

要在程序框图中实现自动添加卡件的通道,这个通道名称用户可以自己命名,命名好以后,自动添加到树形控件中显示,请问这个功能怎么设计和实现?

0 项奖励
1 条消息(共 2 条)
3,654 次查看

According to your requirement, there are two steps

 

1. Get the channel names

 

Use DAQmx Device Node to get the physical channels. It is located under DAQmx->Advanced->System Setup

 

DAQ.png 

 

2. Add them to the tree control

 

Refer to the example Tree Enhancements.vi, just enter tree in example finder, you will find it

Best Regards

Hu Yu
0 项奖励
2 条消息(共 2 条)
3,642 次查看