基于Java的针织控制系统设计与实现
DOI:
CSTR:
作者:
作者单位:

西安工程大学 机电工程学院

作者简介:

通讯作者:

中图分类号:

TP312

基金项目:

国家自然科学基金(51735010); 西安现代智能纺织设备重点实验室支助项目(2019220614SYS021CG043)。


Design and Implementation of a Knitting DSL Based on Java
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对针织机操作过程可视化与智能控制需求,设计并实现了一套集成编织指令解析、状态管理、异常处理与二维可视化的针织机操作控制系统。系统采用模块化架构,包含指令解析、操作状态管理、异常处理、二维渲染与图形用户界面等核心模块。通过正则表达式与状态机方法实现对多种编织指令的自动解析与执行,支持针数设置、编织、转移、叠针、跳针、移位、引纱、退纱、反向编织等多种操作。系统利用JavaFX与Swing混合技术,开发了支持二维动画的可视化界面,实现了针床、针、纱线等结构的动态渲染与交互,能够实时反映操作序列对针床状态的影响。实验结果表明,该系统能够准确解析并执行复杂编织流程,二维可视化响应延迟低于100ms,指令解析速度达到每秒1000+条指令的处理能力。系统解析准确率达到99.8%,执行效率相比传统手工操作提升约80%。稳定性测试验证了系统在连续运行8小时、处理1000+条编织指令场景下的可靠性,无内存泄漏或性能衰减现象。极大提升了针织工艺的可视化表达与智能控制能力。该方法为针织机数字化、智能化升级提供了有效技术支撑。

    Abstract:

    To address the needs of visualization and intelligent control in knitting machine operations, this study designs and implements an integrated system for parsing knitting instructions, managing operational states, handling exceptions, and providing 2D visualization. The system adopts a modular architecture, comprising core modules for instruction parsing, operation state management, exception handling, 2D rendering, and a graphical user interface. Using regular expressions and finite-state machine methods, the system automatically parses and executes diverse knitting instructions, supporting operations such as stitch setting, knitting, transferring, stacking, skipping, shifting, yarn feeding, yarn retraction, and reverse knitting. The system employs a hybrid JavaFX and Swing framework to develop a visualization interface with 2D animation, dynamically rendering structures like needle beds, needles, and yarns, while interactively reflecting the impact of operation sequences on needle bed states in real time.Experimental results demonstrate that the system accurately parses and executes complex knitting processes, with 2D visualization response delays below 100 ms. The instruction parsing speed reaches a processing capacity of over 1000 instructions per second. The accuracy of system parsing has reached 99.8%, and the execution efficiency has been improved by about 80% compared to traditional manual operations. The stability test verified the reliability of the system in the scenario of continuous operation for 8 hours and processing over 1000 weaving instructions, without any memory leaks or performance degradation. Greatly enhancing the visual expression and intelligent control capabilities of knitting technology. This method provides effective technical support for the digital and intelligent upgrading of knitting machines.significantly enhancing the expressive visualization and intelligent control of knitting techniques.

    参考文献
    相似文献
    引证文献
引用本文

张团善,吴 妙,韩起立.基于Java的针织控制系统设计与实现计算机测量与控制[J].,2026,34(6):139-146.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-07-08
  • 最后修改日期:2025-08-19
  • 录用日期:2025-08-20
  • 在线发布日期: 2026-06-25
  • 出版日期:
文章二维码