Forum Home › Forums › Development and Integration › Rest API integration
- This topic has 12 replies, 3 voices, and was last updated 1 year, 3 months ago by
Mikhail.
-
AuthorPosts
-
July 19, 2024 at 1:09 pm #14990
r1moore
ParticipantI 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.
July 19, 2024 at 1:49 pm #14991
manjey73Participantwrite a simple driver where your code, when going somewhere for the weather, will give you data as channel values.
July 19, 2024 at 1:50 pm #14992
manjey73Participantor if the code is very simple, try using it in scada scripts
July 19, 2024 at 1:52 pm #14993
manjey73ParticipantI wrote examples when the scada script takes data from a file, for example. without creating a driver
July 19, 2024 at 1:58 pm #14994r1moore
ParticipantI have the code in scada scripts currently but I am unsure how to call it from other tables.
July 22, 2024 at 9:52 am #14999
MikhailModeratorCreating a driver seems like the best option. Check this article.
Otherwise, you could write data to a database, then read by Rapid SCADA.July 31, 2024 at 10:48 pm #15077r1moore
ParticipantI noticed in the driver documentation it says to use the Class Library template. Where can I find this?
August 1, 2024 at 11:20 am #15082
MikhailModeratorIn Visual Studio 2022 Community when create a new project.
August 5, 2024 at 3:09 pm #15095r1moore
ParticipantI 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?
August 6, 2024 at 11:23 am #15100
MikhailModeratorCheck ScadaComm.log for error. Probably the communication line is not started, therefore its log does not exist.
August 7, 2024 at 4:26 pm #15107r1moore
ParticipantWhere can I find an example of a custom driver method for writing data to an input channel?
August 8, 2024 at 10:54 am #15109
MikhailModeratorA 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 1 year, 3 months ago by
Mikhail.
August 8, 2024 at 10:56 am #15111
MikhailModeratorIt’s possible to create a client from a driver code and interact with the Server service. But it’s not as designed.
-
This reply was modified 1 year, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.