Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
修改时间 09-16-2009 05:38 AM
大家好,我在利用labview控制仪器,在使用条件结构去选择事件的发生的时候发生了错误。当我只直接发送命令到机器而不使用条件结构就不会有错误,我现在把三个vi子程序给大家看看。希望大家比较下为什么会如此。程序分别定义为1,2,3,他们都是实现相同的功能。
1.vi :简单的写入和读写,没有问题
2.vi :可以写入一次,但是循环以后,就出现error,但是还是可以继续写入
3.vi :加了一个条件结构后(条件值=2),就无法写入命令,而且错误代码和第2个的一样的。
(请见附件)
修改时间 09-16-2009 09:47 AM
发指令太快?
循环里加个延时试试?
修改时间 09-17-2009 11:32 PM
没有delay的循环会占用很多CPU
也会让通信反应不过来
加个延时吧
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!