留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

基于Qt的负离子源中性束注入控制与监测系统设计与实现

刘敖 梁立振 郑晓亮 张亮 刘伟

刘敖, 梁立振, 郑晓亮, 等. 基于Qt的负离子源中性束注入控制与监测系统设计与实现[J]. 强激光与粒子束, 2025, 37: 124001. doi: 10.11884/HPLPB202537.250114
引用本文: 刘敖, 梁立振, 郑晓亮, 等. 基于Qt的负离子源中性束注入控制与监测系统设计与实现[J]. 强激光与粒子束, 2025, 37: 124001. doi: 10.11884/HPLPB202537.250114
Liu Ao, Liang Lizhen, Zheng Xiaoliang, et al. Design and implementation of Qt-based neutral beam injection control and monitoring system for negative ion sources[J]. High Power Laser and Particle Beams, 2025, 37: 124001. doi: 10.11884/HPLPB202537.250114
Citation: Liu Ao, Liang Lizhen, Zheng Xiaoliang, et al. Design and implementation of Qt-based neutral beam injection control and monitoring system for negative ion sources[J]. High Power Laser and Particle Beams, 2025, 37: 124001. doi: 10.11884/HPLPB202537.250114

基于Qt的负离子源中性束注入控制与监测系统设计与实现

doi: 10.11884/HPLPB202537.250114
基金项目: 合肥综合性国家科学中心能源研究院(安徽省能源实验室)项目(21KZS202); 安徽高校协同创新项目(GXXT-2022-003); 安徽省住房城乡建设科学技术计划项目(2022-YF175)
详细信息
    作者简介:

    刘 敖,liu15005667027@163.com

    通讯作者:

    刘 伟,liuwei13@ipp.ac.cn

  • 中图分类号: TL99

Design and implementation of Qt-based neutral beam injection control and monitoring system for negative ion sources

  • 摘要: 为满足负离子源中性束注入系统对控制与监测功能的需求,设计了基于Qt的负离子源中性束注入控制与监测系统。针对传统基于NI-PXIe硬件与LabVIEW-FPGA架构系统存在的开发周期长、硬件成本高、扩展性不足等方面的问题,提出基于国产PXIe平台、Linux实时系统与Qt5.9框架的模块化控制方案。通过国产化硬件替代与Linux实时内核优化控制,结合C++面向对象编程开发多线程控制程序,攻克了高成本、低扩展性瓶颈。实验表明,该系统实现了微秒级同步精度,在提供更高的可扩展性和控制精度的情况下,控制与监测系统可以满足实验有关定时控制方面的需求。
  • 图  1  NNBI系统总体组成示意图

    Figure  1.  Schematic diagram of the overall composition of the NNBI system for negative ion beam sources

    图  2  控制系统组成结构图

    Figure  2.  Block diagram of control system components

    图  3  控制与监测系统硬件架构图

    Figure  3.  Control and monitoring system hardware architecture diagram

    图  4  控制与监测系统软件结构图

    Figure  4.  Control and monitoring system software structure diagram

    图  5  UI界面一

    Figure  5.  UI Ⅰ

    图  6  UI界面二

    Figure  6.  UI Ⅱ

    图  7  UI界面三

    Figure  7.  UI Ⅲ

    图  8  程序运行时UI界面

    Figure  8.  Program runtime UI

    图  9  两通道数据部署图

    Figure  9.  Two channel data deployment diagram

    图  10  两通道DO波形图

    Figure  10.  Two-channel DO waveform

    图  11  两通道AO波形图

    Figure  11.  Two-channel AO waveform

    图  12  MAG通道AO、DO波形图

    Figure  12.  MAG channel AO, DO waveforms

    图  13  四通道数据部署图

    Figure  13.  Four-channel data deployment diagram

    图  14  四通道部署波形图

    Figure  14.  Four-channel deployment waveforms

    图  15  四通道AO输出波形图

    Figure  15.  Four-channel AO waveform

     int first_positive_time = -1;
     if (start1 > 0) {
      first_positive_time = start1;
     } else if (peak1 > 0) {
      first_positive_time = start1;
     } else if (hold1 > 0) {
      first_positive_time = hold1;
     } else if (rise2 > 0) {
      first_positive_time = hold1;
     } else if (hold2 > 0) {
      first_positive_time = hold2;
     } else if (fall > 0) {
      first_positive_time = hold2;
     }
     if (i >= fall) {
      dovalue[channel]=false;
      aovalue[channel]=0;
     } else if (first_positive_time != -1 && i >= first_positive_time) {
      dovalue[channel]=true;
      aovalue[channel]=value;
     } else {
      dovalue[channel]=false;
      aovalue[channel]=0;
     }
    }
    if(ui->cbChannel_0->isChecked()){
     QAOController::hAOTask->WriteSinglePoint(aovalue[0], 0);
     ConnectDO(dovalue[0],0);
    }
    if(ui->cbChannel_1->isChecked()){
     QAOController::hAOTask->WriteSinglePoint(aovalue[1], 1);
     ConnectDO(dovalue[1],1);
    }
    下载: 导出CSV
    for (int i = 0; i < sampletoup && !stopFlag; ++i) {
     QMutexLocker locker(&mutex);
     if (stopFlag) break;
     for (int chIndex = 0; chIndex < pChannels.size(); ++chIndex)
     {
      int ch = pChannels[chIndex];;
      double start1 = samplingRate * timePoints[ch][0];
      double peak1 = samplingRate * timePoints[ch][1];
      double hold1 = samplingRate * timePoints[ch][2];
      double rise2 = samplingRate * timePoints[ch][3];
      double hold2 = samplingRate * timePoints[ch][4];
      double fall = samplingRate * timePoints[ch][5];
      if (fall > sampletoup) fall = sampletoup;
      double value = 0.0;
      if (i < start1) {
       value = 0.0;
      } else if (i < peak1) {
       value = amplitudes[ch][0] * (i - start1) / (peak1 - start1);
      } else if (i < hold1) {
       value = amplitudes[ch][0];
      } else if (i < rise2) {
       value = amplitudes[ch][0] + (amplitudes[channel][1] - amplitudes[channel][0]) * (i - hold1) / (rise2 - hold1);
      } else if (i < hold2) {
       value = amplitudes[ch][1];
      } else if (i < fall) {
       double delta = (fall - hold2) > 0 ? (1.0 - (i - hold2) / (fall - hold2)) : 0;
       value = amplitudes[ch][1] * delta;
      } else {
       value = 0.0;
      }
    下载: 导出CSV
  • [1] Wan Yuanxi, Li Jiangang, Liu Yong, et al. Overview of the present progress and activities on the CFETR[J]. Nuclear Fusion, 2017, 57: 102009. doi: 10.1088/1741-4326/aa686a
    [2] Hemsworth R, Decamps H, Graceffa J, et al. Status of the ITER heating neutral beam system[J]. Nuclear Fusion, 2009, 49: 045006. doi: 10.1088/0029-5515/49/4/045006
    [3] Song Yuntao, Wu Songtao, Li Jiangang, et al. Concept design of CFETR tokamak machine[J]. IEEE Transactions on Plasma Science, 2014, 42(3): 503-509. doi: 10.1109/TPS.2014.2299277
    [4] 胡纯栋, 梁立振, 谢远来, 等. CFETR中性束注入系统概念设计[J]. 核聚变与等离子体物理, 2022, 42(4): 388-392

    Hu Chundong, Liang Lizhen, Xie Yuanlai, et al. Conceptual design of neutral beam injection system for CFETR[J]. Nuclear Fusion and Plasma Physics, 2022, 42(4): 388-392
    [5] Hu Chundong. Conceptual design of neutral beam injection system for EAST[J]. Plasma Science and Technology, 2012, 14(6): 567-572. doi: 10.1088/1009-0630/14/6/30
    [6] 胡纯栋, 许永建. EAST中性束注入器研制进展[J]. 核技术, 2015, 38: 110603

    Hu Chundong, Xu Yongjian. Development progresses of EAST neutral beam injector[J]. Nuclear Techniques, 2015, 38: 110603
    [7] Hu Chundong, Xie Yahong, Xie Yuanlai, et al. Overview of development status for EAST-NBI system[J]. Plasma Science and Technology, 2015, 17(10): 817-825. doi: 10.1088/1009-0630/17/10/02
    [8] 赵远哲, 胡纯栋, 谢远来, 等. CFETR NBI控制系统概念设计[J]. 核电子学与探测技术, 2021, 41(6): 1066-1073

    Zhao Yuanzhe, Hu Chundong, Xie Yuanlai, et al. Conceptual design of CFETR NBI control system[J]. Nuclear Electronics & Detection Technology, 2021, 41(6): 1066-1073
    [9] 张亮, 王宾, 梁立振, 等. 中性束注入联锁保护系统设计[J]. 兰州文理学院学报(自然科学版), 2024, 38(3): 65-68

    Zhang Liang, Wang Bin, Liang Lizhen, et al. Design of neutral beam injection interlocking protection system[J]. Journal of Lanzhou University of Arts and Science (Natural Sciences), 2024, 38(3): 65-68
    [10] 李洋, 胡纯栋, 郑长勇, 等. 射频负离子源分布式定时同步系统设计[J]. 核电子学与探测技术, 2021, 41(1): 178-182

    Li Yang, Hu Chundong, Zheng Changyong, et al. Design of distributed timing system for RF-driven negative ion source[J]. Nuclear Electronics & Detection Technology, 2021, 41(1): 178-182
    [11] Liu Wei, Hu Chundong, Liang Lizhen, et al. Progress of the control system for negative ion source based neutral beam injector prototype at ASIPP[J]. Fusion Engineering and Design, 2021, 165: 112257. doi: 10.1016/j.fusengdes.2021.112257
    [12] 李洋. 射频负离子源运行参数分析与性能预测研究[D]. 合肥: 中国科学技术大学, 2024

    Li Yang. Research on operation parameter analysis and performance prediction for RF-driven negative ion source[D]. Hefei: University of Science and Technology of China, 2024
    [13] 段练, 刘智民, 宋士花, 等. 基于WinCC的负离子源中性束电源状态监控系统设计[J]. 核科学与工程, 2023, 43(2): 481-487

    Duan Lian, Liu Zhimin, Song Shihua, et al. Design of state monitoring system of the NNBI power system based on WinCC[J]. Nuclear Science and Engineering, 2023, 43(2): 481-487
    [14] 李维斌, 王雅丽, 任青华, 等. 托卡马克脉冲电源实时控制系统设计[J]. 强激光与粒子束, 2019, 31: 096003 doi: 10.11884/HPLPB201931.190016

    Li Weibin, Wang Yali, Ren Qinghua, et al. Design of a real-time control system for pulse power supply in tokamak[J]. High Power Laser and Particle Beams, 2019, 31: 096003 doi: 10.11884/HPLPB201931.190016
    [15] 舒先来, 刘智民, 谢亚红, 等. 基于射频功率调节的负离子源束流反馈控制研究[J]. 强激光与粒子束, 2022, 34: 116002 doi: 10.11884/HPLPB202234.220098

    Shu Xianlai, Liu Zhimin, Xie Yahong, et al. Research on beam feedback control of negative ion source based on RF power regulation[J]. High Power Laser and Particle Beams, 2022, 34: 116002 doi: 10.11884/HPLPB202234.220098
  • 加载中
图(15) / 表(2)
计量
  • 文章访问数:  217
  • HTML全文浏览量:  85
  • PDF下载量:  11
  • 被引次数: 0
出版历程
  • 收稿日期:  2025-04-30
  • 修回日期:  2025-08-20
  • 录用日期:  2025-08-22
  • 网络出版日期:  2025-09-01
  • 刊出日期:  2025-11-06

目录

    /

    返回文章
    返回