在虚拟仪器软件LabVIEW中提供的定时器的定时精度最小为1毫秒,这样,在定时精度要求更高的场合,这种定时器就不适用了。为此,本文提出一种在LabVIEW中通过它与高级语言接口来调用由C语言编写的高精度定时程序作为定时器来代替LabVIEW所提供的定时器的方法。并在实践中取得了良好的效果。关键词:LabVIEW ;定时器;虚拟仪器Abstract:The precision of timer based on the software of virtual instrument –LabVIEW is one millisecond,so ,this kind of timer isn’t suitable to the occasion where the precision of timer is supposed to be very high,for this ,a method by which the timer in LabVIEWE is replaced by a high precision timer program compiled by language c called through the interface offered by LabVIEW is described. Which is proved to be highly effective in practice.Key words:LabVIEW; timer; Virtual Instruments
猜您喜欢
评论