I’m working on a FTVIEW SE project that uses distributed clients and redundant servers.
I want to add a Multi-State indicator on the main screen that shows “Primary Server Active” or “Secondary Server Active“, depending on which server the client is pulling from. I feel what I’m wanting to do is fairly simple, I just cant find the tag or expression associated with it. Anyone have experience with this, or have any suggestions?
Thanks in advance!
Hi Josh. I found this tech note from Rockwell that should give you the status you are after. If you have an active Tech Connect support contract with Rockwell you can find it by the article number below.
27597 – Determining the Active and Standby Server Status in a Display Client using RSView SE Software
In View Studio, the status of the primary and secondary servers can easily be determined by opening the respective HMI or Data server’s property page. However in an SE Display Client the only way to determine the current active and standby server status is to use VBA display code. The DisplayClient Object Model provides the method GetServerStatus() which returns a server’s current status along with the name of the computer hosting the active server.
The graphic GFX files attached below provide examples of display code showing how the DisplayClient Object Model can be used to determine the server status for an HMI server and a Data server. Each file is annotated to indicate the display’s applicable CPR release.
How It Works
The Application object appStatus (declared with the WithEvents qualifier) is used initiate runtime updates of the server status indication whenever the object’s ServiceDisruption and ServiceRecovery</i> events are initiated.
The application’s method <i>GetServerStatus()</i> is used to obtain the current status for each respective server. This method call utilizes four parameters:
See below for the attached text file that provides the text version of the (common) VBA code used by these graphics.
Applicability: RSView SE CPR4, CPR6, CPR7, CPR7 Plus and FactoryTalk View SE CPR9
Note: FactoryTalk View SE CPR9 also provides new functionality to determine a server’s state. Allthough the attached displays will function correctly in a CPR9 installation, for the full server-state functionality refer to technote 44624 – FactoryTalk View SE Application – Find Server Status and State Using VBA.
Yeah, I figured it would have to be done in VBA. We dont have a Tech Connect account currently, so I cant download their reference files. Thanks for the info, though.
I have attached the 3 documents they reference in the tech note. Hopefully they help.
I have zipped the GFX files
Thanks! Yeah I also found Rockwell included a “Server Status” Display in the Libraries tab. I’m just trying to do something a little different to conserve space on the page.
Just an update. I found Rockwell’s pre-made “Server Status” Display inside FTViewSE. Used a button on home screen to open that. Also, used similar VBA Code to detect disconnect / reconnect events and change BG Color of the button for indication.