Rest API integration

Forum Home Forums Development and Integration Rest API integration

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #14990
    r1moore
    Participant

    I have a script written in C# that makes a REST API call to collect weather data and works in a local environment. How do I integrate this script with Rapid SCADA? Specifically, I need to know where to apply it within the Admin app and how to add the results from the script as a view on the web server. Any detailed guidance or steps would be greatly appreciated.

    #14991
    manjey73
    Participant

    write a simple driver where your code, when going somewhere for the weather, will give you data as channel values.

    #14992
    manjey73
    Participant

    or if the code is very simple, try using it in scada scripts

    #14993
    manjey73
    Participant

    I wrote examples when the scada script takes data from a file, for example. without creating a driver

    #14994
    r1moore
    Participant

    I have the code in scada scripts currently but I am unsure how to call it from other tables.

    #14999
    Mikhail
    Moderator

    Creating a driver seems like the best option. Check this article.
    Otherwise, you could write data to a database, then read by Rapid SCADA.

    #15077
    r1moore
    Participant

    I noticed in the driver documentation it says to use the Class Library template. Where can I find this?

    #15082
    Mikhail
    Moderator

    In Visual Studio 2022 Community when create a new project.

    #15095
    r1moore
    Participant

    I have created a custom driver and added it as a communication line in the Scada Admin application. I selected my custom driver in the Device Polling tab and ensured its description was displayed correctly. I uploaded the configurations but I am getting the following error in the communication line log: Error reading file [Comm]/[Log]/line003.log: File not found

    What is causing this error?

    #15100
    Mikhail
    Moderator

    Check ScadaComm.log for error. Probably the communication line is not started, therefore its log does not exist.

    #15107
    r1moore
    Participant

    Where can I find an example of a custom driver method for writing data to an input channel?

    #15109
    Mikhail
    Moderator

    A driver does not write data to input channels directly. It writes data to a tag. Communicator binds tags to channels. Data sources send tag data to Server according to the bindings. Use DrvSimulator as an example.

    • This reply was modified 9 months, 2 weeks ago by Mikhail.
    #15111
    Mikhail
    Moderator

    It’s possible to create a client from a driver code and interact with the Server service. But it’s not as designed.

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