TANG Zhichao,LI Zhonghao,JIANG Shiqi,et al.LabVIEW Driver and Application of Open-Source Firmware Marlin[J].Journal of Chengdu University of Information Technology,2023,38(06):643-648.[doi:10.16836/j.cnki.jcuit.2023.06.004]
开源固件Marlin的LabVIEW驱动程序及应用
- Title:
- LabVIEW Driver and Application of Open-Source Firmware Marlin
- 文章编号:
- 2096-1618(2023)06-0643-06
- Keywords:
- Marlin; LabVIEW; driver program; 3D control; data acquisition
- 分类号:
- TP216
- 文献标志码:
- A
- 摘要:
- 针对Marlin开源3D打印机固件无法用LabVIEW开发应用程序,不能利用已有硬件和LabVIEW的便捷性快速构建适合用户需要的3D控制平台或数据采集系统,设计一款驱动程序。该驱动程序利用串口助手和示波器的瞬间波形抓取功能,识别Marlin的USB端口与外部硬件的通信机制,并结合LabVIEW中串口工具的虚拟仪器软件架构(VISA)控件,构建能与Marlin串行通信的串口读取子VI与初始化控件,形成稳定的LabVIEW驱动Marlin程序,最后成功应用于固件的温度控制与结果显示。该方案提高了Marlin的应用灵活性,节省了二次开发成本,为3D控制平台及数据采集系统的构建提供有效参考。
- Abstract:
- As LabVIEW is unable to develop applications for Marlin open-source 3D printer firmware, the convenience of existing hardware and LabVIEW could not be used to quickly build a 3D control platform or data acquisition system to meet users’ needs. This driver program used the serial port assistant and the oscillograph’s instantaneous waveform capture function to identify the communication mechanism between Marlin’s USB port and external hardware, and combined the Virtual Instrument Software Architecture(VISA)control of the serial port tool in LabVIEW to build a serial port reading sub VI and initialization control that could communicate with Marlin serially, forming a stable LabVIEW driven Marlin program. Finally, the driver program is successfully applied to the firmware’s temperature control and result display. This project improves the application flexibility of Marlin, saves the secondary development cost, and provides an effective reference for the construction of 3D control platform and data acquisition system.
参考文献/References:
[1] 何颖,潘盛湖,鲁豪杰,等.基于运动控制器的3D打印机控制系统设计[J].机械工程与技术,2018,7(4): 285-289.
[2] Kodosky J.LabVIEW[M].Proc.ACM Program.Lang.4,HOPL,Article 78,2020:54.
[3] Bitter R,Mohiuddin T,Nawrocki M. LabVIEWTM Advanced programming techniques[M].Taylor & Francis Group,CRC press,Computer Science,Engineering & Technology,2017.
[4] Zhai X,Zhang M,Bai X,et al.A signal analysis design based on LabVIEW[C].2015 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery.IEEE,2015:473-476.
[5] Guan Y,Shen B,Zhang Y,et al.Design of color mixing 3D printing system based on LabVIEW[J].J Comput,2017,28(6):277-287.
[6] Wang W B,Li J Y,Wu Q J.The design of a chemical virtual instrument based on LabVIEW for determining temperatures and pressures[J].Journal of Automated Methods and Management in Chemistry,2007,68143.
[7] Qiu Y,Chen Q.The realization of cyclic serial port communication based on LabVIEW[C].2014 International Conference on System Science and Engineering(ICSSE).IEEE,2014:46-49.
[8] Machacek J,Drapela J.Control of serial port(RS-232)communication in LabVIEW[C].2008 International Conference-Modern Technique and Technologies.IEEE,2008:36-40.
[9] 马敏,杨胜伟.基于LabVIEW的气体监测系统串口通讯设计[J].自动化与仪表,2016,31(11):43-46.
[10] Asha K R,Tasleem P S,Kumar A V R,et al.Real time speed control of a DC motor by temperature variation using LabVIEW and Arduino[C].2017International Conference on Recent Advances inElectronics and Communication Technology(ICRAECT).IEEE,2017:72-75.
[11] He F.Measurement and analysis of transient information characteristics of IOT equipment using graphical programming[C].Journal of Physics:Conference Series.IOP Publishing,2021,1982(1):12156.
[12] 曼世超,卢会国,卢勇. 基于LabVIEW的心电信号检测平台的设计[J].成都信息工程大学学报,2016,31(3):255-260.
[13] 吴苗,许江宁,缪绣华,等.基于LabVIEW的设备驱动程序开发技术研究[J].微计算机信息,2006(S2):153-155.
[14] Hongfu Z,Xinyan X,Yong T.Serial Communication Interface Design Based on LabVIEW and VC Mix Programming[C].2007 8th International Conference on Electronic Measurement and Instruments.IEEE,2007:344-349.
[15] Cheng H X,Zhang K,Cheng L.Design a temperature control system based on LabVIEW[C].Applied Mechanics and Materials.Trans Tech Publications Ltd,2014,644:95-98.
[16] Zhu W,Liu J,Yang H,et al.Design of high precision temperature measurement system based on LabVIEW[J].Int.J.Adv.Comput.Sci.Appl.,2015,6:153-155.
[17] 朱炜敏,刘瑾,杨海马.高精度恒温控制系统的设计[J].测控技术,2017(4):89-92.
[18] 许奇,刘瑾,杨海马.基于PLC与LabVIEW的恒温控制系统设计[J].测控技术,2016,35(9):55-58.
备注/Memo
收稿日期:2022-10-17
基金项目:四川省科技厅重点资助项目(2021YFG0147); 重庆市教委科技计划资助项目(KJZD-K202103101)
通信作者:郑富中.E-mail:zfz@cuit.edu.cn