VisualHMI 自定义时间段与文件名导出:set_export_name

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

记录类控件(Data recording/操作记录/告警)export CSV 时,精确指定时间範囲 + 自定义文件名。HMI&M&DX + USB Interface + 定制固件。

1. API 与レジスタ

项目説明
set_export_name(name)导出文件名,UTF-8 characters串,须手动加 .csv 扩展名
0x0192导出开始时间戳(UINT32)
0x0194导出结束时间戳(UINT32)

时间段内无记录则不导出文件。

VisualHMI 自定义时间段与文件名导出:set_export_nameFigure

VisualHMI 自定义时间段与文件名导出:set_export_nameFigure1

VisualHMI 自定义时间段与文件名导出:set_export_nameFigure2

导出2つ坑:①set_export_name 的文件名必须自己带 .csv,不然导出的文件打不开;②时间段内一件のレコード都ない,系统不会生成文件(ではない空文件,是根本ない)。时间範囲用 0x0192/0x0194 2つ UINT32 时间戳控制。

整理自 广州大彩科技 VisualHMI 开发ドキュメント(hmi-doc.gz-dc.com)其他技术チュートリアル「自定义时间段与文件名导出」,著作権は大彩科技すべての。

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.