Export of custom time period and file name for VisualHMI: set_export_name

freeFree Technical Resource

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

When exporting record-type controls (data records/operation records/alarms) to CSV, specify a precise time range + customize the file name. HMI&M&DX + USB interface + customized firmware.

1. API and Registers

ProjectDescription
set_export_name(name)Export file name, UTF-8 string,must manually add .csv extension
0x0192Export start timestamp (UINT32)
0x0194Export end timestamp (UINT32)

If there are no records within the time period, the file will not be exported.

Export of custom time period and file name for VisualHMI: set_export_name插图

Export of custom time period and file name for VisualHMI: set_export_name插图1

Export of custom time period and file name for VisualHMI: set_export_name插图2

Exporting two issues:① The file name of set_export_name must include .csv, otherwise the exported file cannot be opened; ② If there is no record within the time period, the system will not generate a file (not an empty file, but none at all). The time range is controlled using two UINT32 timestamps, 0x0192/0x0194.

Compiled from the VisualHMI development documentation of Guangzhou Dacai Technology (hmi-doc.gz-dc.com) and other technical tutorials on "Customizing Time Period and File Name Export", copyright belongs to Dacai Technology.

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 *.