SQL Export Issues

Forum Home Forums Uncategorized Issues SQL Export Issues

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3180
    schmidtw
    Participant

    I’ve installed RapidSCADA, added a MODBUS device successfully and everything is working in that regard. I’ve also added the configuration for writing to SQL, which is semi-functional, but I’m having some issues with it.

    I want to capture current data every 10 minutes and export it to SQL. To do this, I’ve disabled all writing except for minute data, every 10 minutes. At this time, every 10 minutes or so, it will write 20 channels (even though I only have 10 active and only 10 show if I view minute data). Also, randomly, it will export the values for a mix of the channels. How can I get this so it’s only exporting the 10 active channels every 10 minutes, and nothing else?

    • This topic was modified 6 years, 2 months ago by schmidtw.
    #3184
    Mikhail
    Moderator

    ExportDB module executes SQL when it receives new data from a controller. To do your task, you should create other more complex SQL scripts.

    #3220
    schmidtw
    Participant

    If you have to control timing with SQL scripts, what’s the point of their being timing options in the file save parameters of the SCADAServer module? Are those specifically for local data?

    #3222
    Mikhail
    Moderator

    SQL executes when data are coming from Communicator, but SCADA-Server saves all data to a disk periodically at the same moment. Value can change several times before saving to a disk.

    #3283
    schmidtw
    Participant

    I changed the delay in communicator to only poll at the interval I wanted, but there are more values in SQL being written.

    For example, it will write the value of 20 sensors (even though only 10 are active) at the interval I want fairly consistently, but then it will skip a 10 minute interval, or in between intervals, a few other sensors will generate SQL data, but they are all on the same setting.

    #3284
    Mikhail
    Moderator

    Try set “Sending all device data period” to 0 in Communicator.

    #3296
    schmidtw
    Participant

    That doesn’t seem to have had a major effect, even after restarting all pertinent services.

    Even with that change, it will write all 20 sensors (even though 10 are active in Administrator), then 10 minutes later it skips writing anything, then 10 minutes later it will write all 0 (impossible), and then 10 minutes later it will write actual values for all 20 sensors again, with the 10 inactive ones as 0.

    #3303
    Mikhail
    Moderator

    I suppose, this issue requires a remote connection to analyze the logs and DB. But this is a commercial service. If you interested in the service, please contact me by email.

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