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.
修改时间 08-16-2020 09:45 PM
各位好,请教下,程序运行几天后,报错如图所示,显示的是labview自带的database的connection. llb的conn excute. vi报错。再次运行也是几天后就报错。报错图和调用图如下所示。想请教下如何处理这个问题,谢谢
修改时间 08-17-2020 12:05 AM
你好,
可以尝试将“MySQL connector/ODBC”更新至最新版本。
此外,频繁的打开连接,取数,关闭连接也可能造成此错误,可以尝试打开连接后,使用while loop不断取数以避免一直打开与关闭连接。
修改时间 08-17-2020 12:43 AM
谢谢回答,我这边
数据库连接打开是只在整个程序初始化的时候打开的,后面的话是需要进行数据库增删改的时候,才调用如图2的数据库vi(执行语句-获取结果-释放),目前是这样的。不过我之前简单的测试过(数据库打开-在while循环中以5ms的循环间隔不停的对一个数据表插入数据),600多万次插入,没有出问题的。所以我感觉不像是odbc驱动和调用方式的问题阿
修改时间 08-17-2020 03:39 PM
没用过 DB Tools Free Object
1. 是否确有必要用?
2. 此 VI 返回一个新的 Refnum , 是否应当在以后的运行中取代原来的 Refnum ?
仅供参考.
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!