数据存到数据库后,如何从数据库读取

Forum Home Forums Questions in Native Languages (Experimental) Questions in Chinese. 中文问题技术交流 数据存到数据库后,如何从数据库读取

  • This topic has 2 replies, 3 voices, and was last updated 1 week ago by Zeus.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16500
    RenoPowerChen
    Participant

    我将所有的数据,通道的历史存档和当前存档、事件存档都存到PostgreSql数据库中,利用自带的ModArcPostgreSql模块,发现数据能成功存储到rapid_scada数据库中,不过我修改了数据库中某个通道当前存档的值,scadaweb界面上该通道的值却没有改变。我需要怎么做才能让界面上的通道值,从存储的数据中读取。这需要开发模块或是改写源代码吗

    #16524
    JW
    Participant

    有两个可能
    1. 这个通道有其他输入或者函数,即使修改数据库的值,也马上会被原来的输入和函数覆盖掉。
    2. Archives设定中,Curd当前数值有个FlushPeriod选项,默认30秒。server服务每30秒才读写一次cur文件,平时只读写内存。改为1的话,会每秒读写一次,接近马上生效。

    #16578
    Zeus
    Participant

    界面实时刷新数据 和存档没有关系

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.