首页> 中文期刊> 《测控技术》 >LabWindows/CVI多线程技术在电负载系统中的应用

LabWindows/CVI多线程技术在电负载系统中的应用

         

摘要

针对电负载系统程序在顺序执行时,CPU利用率低且容易阻塞等问题,提出了利用LabWindows/CVI的多线程技术,建立独立的线程池线程分别用于数据采集和数据处理的方法.用多线程的方法解决了程序任务堵塞和资源利用率低的问题,提高了整体性能和系统的可靠性、稳定性.同时利用线程安全队列TSQ在线程间传递数据解决了数据同步的问题.实验证明这种多线程技术提高了系统性能,增加了系统的实时性和可靠性.%Aimming at procedures for the electrical load system while multi-task executes at one time, the CPU has low utilization and may block other tasks, the LabWindows/CVI multi-threading technology is used to build two independent thread pool threads used for data acquisition and data processing. The multi-thread technology solves the program task blockage. CPU utilization and system reliability and stability are increased. Using the TSQ thread-safe queue to pass data between threads can solve the problem of data synchronization. Experiments show that the multi-threading can advance deadly accuracy of the system performance, and improve real-time and reliability in data acquisition.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号