Forum Replies Created
-
AuthorPosts
-
Matt3
ParticipantHi Mikhail
Just wondering if there’s been any update on custom pages?
Also, do you think it’s practical to develop the custom pages in Blazor server-side?Thanks
MattMatt3
ParticipantHi Mikhail
Aha!!!
It makes sense now. I’ve started learning razor pages.
Is it possible to have a few example pages showing how to add a custom page (an example sowing how to get 5 or more channel values would be perfect).Thanks
MattMatt3
ParticipantHi Mikhail
Thank you for your feedback.
By moving the custom folder under wwwroot, I can show htm pages.Path
../../custom/Page1.htmArguments
../../custom/Page1.htmView Type
WebPageViewTitle
\Page1However, when I copy default.aspx page, it is not shown? Are aspx pages not supported?
Kind regards
MattMatt3
ParticipantHi Mikhail
We are using version 5.8.4 with 24 custom pages, in a production environment.
We tried to port some of our pages to version 6.1.1 but failed, so we tried a very basic html page but failed there too. I can see the menu item “TEST” in the left hand menu but when I hover the mouse pointer over it, it changes to a “no entry” icon (red circle) so we cannot click the link.
We are using the Hello World sample project and adding the custom page to item 3 in the list. I’ve been in to the browser view source option. I’ve added the source code below…1 – In version 6, if I have a file named Test.html, where should I save it (where is the custom folder located)?
2 – and what path structure should I use when I enter the path, via ScadaAdmin, in the “view” section.
Thanks
Matt<div class='node-parts'><div class='indent'></div><div class='expander left empty'></div><div class='icon'>
</div><div class='text'>Simulator</div></div> <div class='node-parts'><div class='indent'></div><div class='expander left empty'></div><div class='icon'>
</div><div class='text'>TEST</div></div>
-
This reply was modified 5 months ago by
Mikhail.
Matt3
ParticipantHi Mikhail
I’m starting to use v6 for live projects.
I need to add a custom page showing 5 tag values. I modified the code in v5 to read channel data.
Can you please provide script showing the best way to continuously read the values form from 5 channels and to show the value on the page.Thank you
MattMatt3
ParticipantThank you Mikhail. That worked perfectly.
Matt3
ParticipantHi Mikhil
Is there an equivalent function of getCurCnlDataExt() in version 6?
Kind regards
MattMatt3
ParticipantDear Mikhail
A 2nd export target fixed the issue. Thank you.
Kind regards
MattMatt3
ParticipantHi Mikhail
I’ve been trying beta 6 and so far so good.
However, I found a small issue with changing the SCH file path.
In ScadaAdmin.exe, Tools/Options/File Association/, I can not change the current file path. It is set to “C:\RapidSCADA_Beat_6\Windows\SCADA\ScadaSchemeEditor\ScadaSchemeEditor.exe”.Thanks
MattMatt3
ParticipantHi Mikhail
Thanks for releasing the beta Version 6. It’s looking great.
With version 5, we added a lot of pages to the “C:\SCADA\ScadaWeb\custom” folder.
We used aspx webforms.
In the release doc for version 6, you mention for the “Webstation” that the “app has been completely redesigned using Razor Pages technology”.
What technology do you suggest we use to create custom pages in version 6?Kind regards
MattMatt3
ParticipantHi Mikhail
I’ve been working on this issue today and I have some feedback for you.
I removed Rapid Scada from the server.
I then used your install file to install a new version (5.8.3).
I changed the install folder to SCADA2
I changed the web link from Scada to Scada2
Once installed, I tested and it worked.
I then used the sc.exe program to remove the 3 scada services
sc delete ScadaServerService
sc delete ScadaCommService
sc delete ScadaAgentServiceI then installed the 3 services again but this time with an extension of 2
sc create ScadaServerService2 binPath= “C:\SCADA2\ScadaServer\ScadaServerSvc.exe –service” DisplayName= “ScadaServerService2”
sc create ScadaCommService2 binPath= “C:\SCADA2\ScadaComm\ScadaCommSvc.exe –service” DisplayName= “ScadaCommService2”
sc create ScadaAgentService2 binPath= “C:\Customer1\ScadaAgent\ScadaAgentSvc.exe –service” DisplayName= “ScadaAgentService2″
In the svc_config.xml, in each service folder, I added the following…
<?xml version=”1.0″ encoding=”utf-8″?>
<ServiceConfig>
<ServiceName>ScadaServerService2</ServiceName>
<Description></Description>
</ServiceConfig><?xml version=”1.0″ encoding=”utf-8″?>
<ServiceConfig>
<ServiceName>ScadaCommService2</ServiceName>
<Description></Description>
</ServiceConfig><?xml version=”1.0″ encoding=”utf-8”?>
<ServiceConfig>
<ServiceName>ScadaAgentService2</ServiceName>
<Description></Description>
</ServiceConfig>I started each service from the service control panel. They started.
I managed to login via localhost/scada2
Next, I run ScadaAdmin.exe
I loaded the HelloWorld project
I click the Upload Configuration button
In the profile section, I updated the Web station URL to http://localhost/scada2
In Server / Common Parameters, I update the folders to point to Scada2… C:\SCADA2\BaseDAT\ … etc..I click the Upload Configuration button and then click the Upload button
I get the error…
Error uploading configuration.
Unable to login – invalid username or password.Also,
when I select Deploy / Deployment Profile and click the Test button, I get the same error message “Unable to login – invalid username or password.”when I select Deploy / Instance Status, for status server and communicator I get…
“Unable to login – Error validating user” and “Unable to create session” for both.Any ideas?
Thanks for all you support Mikhail
Kind regards
MattMatt3
ParticipantHi, No. I just see ScadaServerService
Kind regards
MattMatt3
ParticipantHi Mikhail
Thanks for your feedback again.
I’ve copied the SCADA files to C:\Customer1\<folders>I downloaded the 2 xml files and changed the ServiceName to “ScadaServerService-Cus1”
svc_config.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<ServiceConfig>
<ServiceName>ScadaServerService-Cus1</ServiceName>
<Description></Description>
</ServiceConfig>In svc_install.bat, I added
cd /d “%~dp0″
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /servicename=”ScadaServerService-Cus1” ScadaServerSvc.exe
PauseThe install log file is
Installing assembly ‘C:\Customer1\ScadaServer\ScadaServerSvc.exe’.
Affected parameters are:
logtoconsole =
logfile = C:\Customer1\ScadaServer\ScadaServerSvc.InstallLog
assemblypath = C:\Customer1\ScadaServer\ScadaServerSvc.exe
servicename = ScadaServerService-Cus1
Installing service ScadaServerService…
Service ScadaServerService has been successfully installed.
Creating EventLog source ScadaServerService in log Application…
Committing assembly ‘C:\Customer1\ScadaServer\ScadaServerSvc.exe’.
Affected parameters are:
logtoconsole =
logfile = C:\Customer1\ScadaServer\ScadaServerSvc.InstallLog
assemblypath = C:\Customer1\ScadaServer\ScadaServerSvc.exe
servicename = ScadaServerService-Cus1However, when I run the “Task Manager” and look at the service installed, it says ScadaServerService and not ScadaServerSerice-Cus1?
Kind regards
MattMatt3
ParticipantHi Mikhail
Thank you for your feedback.
I can follow all parts except for the last 2 lines of your feedback.“(1) create svc_config.xml for each service (example), and
(2) update svc_*.bat files to have different services for different instances.”With regards to item (1), I can see the file in github but I can’t find it in the 5.8.3 download. What is it used for and how do I use it? Is this file only needed in the ScadaServer folder?
An example of how to use the above files for the installation of 2 different instances would be great.
Kind regards
MattMatt3
Participant -
This reply was modified 5 months ago by
-
AuthorPosts