Changes for page 05 Lua Script
Last modified by Devin Chen on 2025/03/04 14:07
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -255,7 +255,7 @@ 255 255 256 256 = **14 CSV File Generation** = 257 257 258 -The example shows convert the lua table data into csv string, then output as a file: 258 +The example shows convert the custom lua table data into csv string, then output as a file: 259 259 260 260 [[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/csvGenerate.zip]] 261 261 ... ... @@ -276,9 +276,23 @@ 276 276 (% style="text-align:center" %) 277 277 [[image:csvGenerateServerPath.png]] 278 278 279 -The table drawing andcsv file generation is mainly using the following function to implement, and csv file storage path in HMI is "udisk:weather1.csv":279 +The csv file generation is mainly using the following function to implement, the customized data is argument tab, and csv file storage path in HMI is "udisk:weather1.csv": 280 280 281 281 (% style="text-align:center" %) 282 282 [[image:csvGenerateLuaCode.png]] 283 283 284 - 284 +The table drawing is mainly using the following function to implement: 285 + 286 +(% style="text-align:center" %) 287 +[[image:csvLuaTableDrawing.png]] 288 + 289 += 15 **String customized length word-wrapped** = 290 + 291 +The example shows automatically line break for long string content according to user input length. 292 + 293 +The following are some demonstrated strings from offline simulator: 294 + 295 +(% style="text-align:center" %) 296 +[[image:WordWrapDisplayResult.png]] 297 + 298 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/CRLF.zip]]
- WordWrapDisplayResult.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Hunter - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.4 KB - Content
- csvLuaTableDrawing.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Hunter - Size
-
... ... @@ -1,0 +1,1 @@ 1 +43.9 KB - Content