<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>广州大彩串口屏论坛_大彩开发者交流论坛 - LUA脚本</title>
    <link>https://bbs.gz-dc.com/forum.php?mod=forumdisplay&amp;fid=68</link>
    <description>Latest 20 threads of LUA脚本</description>
    <copyright>Copyright(C) 广州大彩串口屏论坛_大彩开发者交流论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Tue, 01 Dec 2026 07:18:37 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://bbs.gz-dc.com/static/image/common/logo_88_31.gif</url>
      <title>广州大彩串口屏论坛_大彩开发者交流论坛</title>
      <link>https://bbs.gz-dc.com/</link>
    </image>
    <item>
      <title>VisualHMI  LUA编程</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2636</link>
      <description><![CDATA[我用的VisualHMI  LUA编程WIFI，调用的函数和VisualTFT  WIFI的调用函数一样吗？

VisualHMI  页面如何编辑LUA，大彩里面没有专门讲解hmi连接WiFi的，：
扫描WiFi，
连接WiFi，
WiFi状态，
静态和动态地址选择，
子掩网码，
网关，
M AC获取
 ...]]></description>
      <category>LUA脚本</category>
      <author>luoxv2785</author>
      <pubDate>Tue, 24 Nov 2026 13:17:47 +0000</pubDate>
    </item>
    <item>
      <title>什么时候大彩串口屏的SDK接入AI开发进行开发,灵活使用？</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2635</link>
      <description><![CDATA[参考    合宙   AI开发方式]]></description>
      <category>LUA脚本</category>
      <author>lbh</author>
      <pubDate>Fri, 20 Nov 2026 05:27:50 +0000</pubDate>
    </item>
    <item>
      <title>子页面控件</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2634</link>
      <description><![CDATA[页面里面某个区域放不下很多东西，所以想到用子页面+滚动条实现
页面0里放了个子页面控件2，在子页面里，设置了上下滑动切换，开始页面2 结束页面3 ； 同时页面0里还放了个滑动滚动条控件3
如何在滑动切换子页面里的页面时候，同时改变滑动滚动条上的数值。

我在实体屏 ...]]></description>
      <category>LUA脚本</category>
      <author>zaq</author>
      <pubDate>Tue, 17 Nov 2026 09:27:17 +0000</pubDate>
    </item>
    <item>
      <title>刷新问题</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2626</link>
      <description><![CDATA[触摸屏485通讯，两台设备，一台设备掉线后触摸屏读到的数据没有刷新，还是之前的旧数据，是不是我脚本里缺少了什么定时刷新的语句，]]></description>
      <category>LUA脚本</category>
      <author>士为知己者死</author>
      <pubDate>Sat, 24 Oct 2026 02:04:39 +0000</pubDate>
    </item>
    <item>
      <title>数据生成EXCEL导出功能</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2622</link>
      <description><![CDATA[请问串口屏能把测试过后的数据生成EXCEL文件保存到SD卡中吗]]></description>
      <category>LUA脚本</category>
      <author>wjs</author>
      <pubDate>Wed, 21 Oct 2026 01:59:27 +0000</pubDate>
    </item>
    <item>
      <title>自定义协议下，如何通过MCU发送数据在历史曲线控件显示</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2620</link>
      <description><![CDATA[如图所示]]></description>
      <category>LUA脚本</category>
      <author>平常心</author>
<enclosure url="https://bbs.gz-dc.com/data/attachment/forum/202610/20/134831biiimj1ynpdjxjni.png" length="137177" type="image/jpeg" />      <pubDate>Tue, 20 Oct 2026 05:49:28 +0000</pubDate>
    </item>
    <item>
      <title>使用了自由串口协议,程序里使用send_ctrl_msg无法修改灵敏度</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2615</link>
      <description><![CDATA[local clr_cmd = { 0x8A, 0x5A, 0xA5, 0x07, 0xFF, 0xFC, 0xFF, 0xFF }
clr_cmd[0] = 0xEE
send_ctrl_msg(clr_cmd)
使用的是TFT软件,以上修改灵敏度无响应,但是在界面上通过按钮发送给内部可以响应,请问怎么在lua程序里实现修改默认灵敏度,不然每块屏烧写后都需要设置灵 ...]]></description>
      <category>LUA脚本</category>
      <author>大锤八十</author>
      <pubDate>Wed, 23 Sep 2026 06:00:03 +0000</pubDate>
    </item>
    <item>
      <title>TFT软件，怎么通过LUA给内部发指令修改文本控件的前景色</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2610</link>
      <description><![CDATA[指令助手里有可以通过串口发送的方式，现需要实现在LUA里发送给内部来修改前景色，请问该怎么实现呢]]></description>
      <category>LUA脚本</category>
      <author>大锤八十</author>
<enclosure url="https://bbs.gz-dc.com/data/attachment/forum/202609/11/204818wu6r4ue08wueh8u6.png" length="40483" type="image/jpeg" />      <pubDate>Fri, 11 Sep 2026 12:49:01 +0000</pubDate>
    </item>
    <item>
      <title>【求助】LUA滑块刻度动态修改，真机set_control_position无效</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2601</link>
      <description><![CDATA[硬件：大彩EW系列串口屏，分辨率320*480

软件版本：VisualTFT VER3.0.0.1249

需求：做滑块控件的自定义刻度，有7个刻度文本控件，需要根据通道量程（电压/位移两种量程切换），在Lua脚本中完成两件事：
1、动态修改每个刻度文本的显示数值；
2、动态修改每个刻度文本 ...]]></description>
      <category>LUA脚本</category>
      <author>flyingwings99</author>
      <pubDate>Wed, 26 Aug 2026 01:02:55 +0000</pubDate>
    </item>
    <item>
      <title>record隐藏</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2596</link>
      <description><![CDATA[代码在我的附件里
我希望当record控件8显示的时候，点击其他非控件8区域，控件8要隐藏起来，这个可以实现吗？
还有个问题，这个选中效果可以添加图片效果吗，比如选中选项1，有个打勾图标

]]></description>
      <category>LUA脚本</category>
      <author>zaq</author>
      <pubDate>Thu, 13 Aug 2026 08:01:24 +0000</pubDate>
    </item>
    <item>
      <title>record 如何关闭掉</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2595</link>
      <description><![CDATA[我用record 做了个菜单，点击按钮1的时候，弹出这个菜单，
如何点击到画面其他地方的时候，如果这个record 显示的话，就把这个record 隐藏起来，
点击到record是执行定义的操作]]></description>
      <category>LUA脚本</category>
      <author>zaq</author>
      <pubDate>Tue, 11 Aug 2026 08:14:43 +0000</pubDate>
    </item>
    <item>
      <title>历史控件的Y轴刻度可以显示定点数吗？</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2594</link>
      <description><![CDATA[RT，设置1000显示为100.0，上传的数据是x10定点数的，需要定点数显示刻度]]></description>
      <category>LUA脚本</category>
      <author>aple0807</author>
      <pubDate>Tue, 11 Aug 2026 06:00:51 +0000</pubDate>
    </item>
    <item>
      <title>文本控件Text_Display多语言显示</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2589</link>
      <description><![CDATA[我用的是Text_Display，然后set_text() 
字体用的是编码是UTF-8 字体文件是tahoma.ttf(因为还要显示其他国家的语言，所以选择这个字体文件)
然后读取字段是写在lua文件里的韩语字段，例如 국제 언어 但是文本控件显示不出来或者乱码，但是我切回默认字体库就是正常显示 ...]]></description>
      <category>LUA脚本</category>
      <author>zaq</author>
      <pubDate>Thu, 06 Aug 2026 07:54:04 +0000</pubDate>
    </item>
    <item>
      <title>文本控件与变量绑定与LUA脚本</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2588</link>
      <description><![CDATA[启用默认协议，创建一个变量，并绑定到文本控件上，下载到屏幕里发现文本控件不显示值。在lua脚本里自增这个变量，文本控件还是不显示

但是虚拟串口屏显示的没问题]]></description>
      <category>LUA脚本</category>
      <author>ChenZ929</author>
      <pubDate>Tue, 04 Aug 2026 06:18:01 +0000</pubDate>
    </item>
    <item>
      <title>串口屏不能向Flash写入超长数据</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2579</link>
      <description><![CDATA[我尝试写入一个超长的字符串，写入后立即读取是正常的；如果循环写入多次后再进行读取，结果为nil；
1.写入的数据长度是否有限制？
2.有没有写入超长数据的解决方案？
3.读取的数据长度是否有限制？
 ...]]></description>
      <category>LUA脚本</category>
      <author>CoCo</author>
      <pubDate>Sat, 25 Jul 2026 07:33:15 +0000</pubDate>
    </item>
    <item>
      <title>历史曲线控件的起始值和终止值可以动态修改吗？</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2578</link>
      <description><![CDATA[如题：]]></description>
      <category>LUA脚本</category>
      <author>intheroad</author>
      <pubDate>Sat, 25 Jul 2026 06:31:41 +0000</pubDate>
    </item>
    <item>
      <title>子画面能否用按钮控件实现滑动的效果</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2577</link>
      <description><![CDATA[型号DC48854M050
子画面可以通过set_screen_range配置之后，实现手势滑动的效果，通过按钮控件，调用set_value可以实现子画面的切换，但是这个时候切换是没有效果的，能否实现点击按钮也可以实现滑动切换的效果
 ...]]></description>
      <category>LUA脚本</category>
      <author>Hony</author>
      <pubDate>Sat, 25 Jul 2026 04:24:01 +0000</pubDate>
    </item>
    <item>
      <title>仪表控件的起始值和终止值(最小值和最大值)可以动态修改...</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2576</link>
      <description><![CDATA[如题
可以用LUA动态修改吗？]]></description>
      <category>LUA脚本</category>
      <author>intheroad</author>
      <pubDate>Sat, 25 Jul 2026 01:18:53 +0000</pubDate>
    </item>
    <item>
      <title>用lua写的脚本读从机的modbus报文，显示报文是空</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2570</link>
      <description><![CDATA[用lua写的脚本读从机的modbus报文，虚拟屏用slave设的报文输入符合预期，再测串口modbus报文也是正常发，但是实体屏幕和串口连起来我用ttl抓取报错信息就显示的是我读取的03报文是nil空，这是什么问题
 ...]]></description>
      <category>LUA脚本</category>
      <author>hsj6</author>
      <pubDate>Tue, 21 Jul 2026 01:52:20 +0000</pubDate>
    </item>
    <item>
      <title>物联型怎么通过图标控件四种状态通过MODBUS下发四种数据</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2560</link>
      <description><![CDATA[1 现在又一个控件按钮 有四帧，现在添加了一个按钮控件，每次按下切换一帧，怎么把他和modbus连接上，每帧代表一种状态下发]]></description>
      <category>LUA脚本</category>
      <author>15909207257</author>
      <pubDate>Thu, 09 Jul 2026 06:44:11 +0000</pubDate>
    </item>
  </channel>
</rss>