Problem with data adquisition

Forum Home Forums Understanding the Software Problem with data adquisition

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #12685
    Mikhail
    Moderator

    When a device is disconnected, channel status = 0. You should also store status in the database, or use status to convert values to NULL if status is zero.

    #12698
    feltduck
    Participant

    And how can I check the data in a specific hour? E.g I got a NULL value because the devices get disconnected at 10:15 and I want to check at that hour and replace that NULL for the real value of the device at 10:15.

    Sorry if I’m asking too much.

    #12701
    Mikhail
    Moderator

    SQL functions should be used. First of all, get the correct raw data. Then try using SQL functions to add some processing.

    #12710
    feltduck
    Participant

    What do you mean with “Get the correct raw data”?

    • This reply was modified 11 months ago by feltduck.
    #12714
    Mikhail
    Moderator

    I mean get channel value and status in your database. After that play with SQL functions to set channel value to NULL if status = 0.

    #12731
    feltduck
    Participant

    Sorry for the confusion, I already fixed that problem. I was asking you how to check the historic of 15 days ago from now.

    #12736
    Mikhail
    Moderator

    You can send a string command like

    cmd=ExportArchive
    startDT=2022-12-23 10:00:00
    endDT=2022-12-23 11:00:00

    to export historical data.
    When DB Export module receives such command, it executes the historical data queries that exist in the module configuration.

    #12769
    feltduck
    Participant

    Hi,
    I’ve been trying this one and I didn’t get any result. Maybe I’m not doing it well, how can I send a command to the DB export module?

    #12771
    Mikhail
    Moderator

    Hi,
    You need a channel of the Output type. Command code must match with the module. If you provide screenshots of the settings and sending command, I could check.

Viewing 9 posts - 16 through 24 (of 24 total)
  • You must be logged in to reply to this topic.