1.查找范例
C:\Users\Public\Documents\National Instruments\TestStand 2019 (64-bit)\UserInterfaces\Simple\LabVIEW:这是NI自己写的官方的调用,非常值得学习
2.查找API详细说明
C:\Program Files\National Instruments\TestStand 2019\Doc\Help\TSHelp.chm:结合来看,理解架构
很明显的是我们基本要用到,方法,属性,和回调事件
3.打开例子
很明显可以看出来在这一步需要将基本所有的控件引用放到全局变量中去,关于这一步骤,在之前的NI例程显然不是这样----通过自定义簇,将所有的控件按照功能给到簇中去,在放入寄存器中去。
在此我们要讨论一下前面板控件为什么要引用,引用只有在不得已的情况或者说是连线连不到的地方才使用,关于这点涉及到NI关于前面板和后面板不同的空间配置,总的来说前面板是给你一个人机交互的地方,后面板是程序运行的逻辑,那么可以以说引用的使用一定程度上复杂化了程序,从而使得程序更大,运行内存更大。