Forum Home › Forums › Understanding the Software › execute some external app from the web interface
Tagged: CSVExport
- This topic has 8 replies, 4 voices, and was last updated 3 months, 1 week ago by
Anonymous.
-
AuthorPosts
-
January 1, 2025 at 1:03 pm #15870
fischerp
ParticipantHello,
I would like to call the function contained in Utility Pack 6.0 for creating a CSV file (CsvExport.exe) from the UI. Is this possible? Possibly even in such a way that the file name, time period and channel number are transferred directly when the function is called?January 1, 2025 at 1:22 pm #15871
manjey73ParticipantJanuary 1, 2025 at 1:40 pm #15872fischerp
ParticipantThank you for your answer, unfortunately I can’t do much with it because I don’t speak Russian.
Obviously I need to embed the code that Mikhail shows in the linked post somewhere. Is that correct?
Where?
And how do I then access the function?January 1, 2025 at 5:58 pm #15873
manjey73ParticipantThere are always online translators, which we use successfully, I also don’t know English well 🙂
January 1, 2025 at 6:00 pm #15874
manjey73Participantonline translation
You can add Scripts to the table
public double StartProcess() { Process.Start(@"C:\SCADA\1.bat"); Console.WriteLine(DateTime.UtcNow.ToString()); return 1.0; }and call this function in the output formula of the channel.
Starting an external process is an unsafe action.January 1, 2025 at 6:02 pm #15875
manjey73Participanttranslation of the readme for the module
Extension for launching external applications from RapidScada v.6.2.1.1
ModAbcLogicConfig.xml – a file for configuring the extension.
– AppObject – Settings for launching the application (each application has its own settings).
– – Input Channel – The channel number in Scada. The extension reads the value in the channel (it should be 0 or 1), 0 – does nothing, 1 -launches the application.January 2, 2025 at 12:42 pm #15882
MikhailModeratorHello,
The general algorithm is as follows:
1. Send a command via the web interface.
2. In a channel, use an output formula that executes a script.
3. As shown above, the channel’s output formula should run a command likeProcess.Start(@"C:\SCADA\1.bat");Ask for more details if needed.
January 2, 2025 at 12:44 pm #15883
MikhailModeratorNote that executing external scripts is not secure. They can hang, or can be modified by an intruder. It’s better to interact with other services via API or industrial protocols.
August 15, 2025 at 4:04 pm #16857Anonymous
InactiveThank you very much for info!
-
AuthorPosts
- You must be logged in to reply to this topic.