FTView SE VBA Command Based on Tag Value

KristienP

Member
Join Date
Jan 2015
Location
Nova Scotia
Posts
44
I am running XLReporter (v14) and FTView SE (v11: Distributed Server) on the same computer (Server 2016 Standard). XLReporter is reading data from my PLC directly, and is randomly losing communications with the PLC (ControlLogix) every couple months, no alarms, nothing. Sytech tells me the only "fix" is to manually restart the XLReporter Scheduler. :mad:

Solution: XLReporter / PLC heartbeat setup. On comm loss, restart scheduler automatically. BUT, since XLreporter is NOT communicating with PLC, I need to use FTView to monitor comm loss. Use comm loss to execute a *.exe file that restarts the XLReporter. (the *.exe file is listed in their literature, this is a common problem they don't seem interested in fixing. I won't be using XLReporter again...).

Solution Problem 1: To have XLReporter monitor comm loss in FTView, need to have client purchase FTView Gateway license (They won't be happy, already had to purchase a RSLinx Gateway license...)

Solution Problem 2: Use VBA code in FTView to monitor comm loss tag and then execute the *.exe application. EXCEPT the client uses FTView Clients on workstations and NOT on the server, so can I even execute an application from the FTView Client on the server machine?

Looking for any suggestions on how to setup VBA to work on the server only, not workstations. Or other workarounds?
 
For FTView VBA, I check for a text file whenever the VBA initializes.


Code:
' Declare global(s) for enable(s)

Dim EnableDataLogging


Private Sub Display_Load()
Dim fs as Object


Set fs = CreateObject("Scripting.FileSystemObject")


if fs.FileExists("C:\FTVEnables\LogEnable.txt") Then
   EnableDataLogging = True
   LogDiagnosticsMessage "My Host Name is: " + ComputerName() + " And Logging is True"
Else:
   EnableDataLogging = False

   LogDiagnosticsMessage "My Host Name is: " + ComputerName() + " And Logging is False"


Then, check your flags in every function to see if you should do a thing or not.
 

Similar Topics

Hi all. Currently I'm working on a VBa script for FTView. I would like to understand a bit better about some commands. 1) What are the...
Replies
3
Views
591
Hi all. I'm running a VBA code on my FTView which is actually working, but everytime I open the display that calls the VBA code, it throws the...
Replies
28
Views
1,779
Greetings, I have this question: How can I add a tag, in my case LS:0 {#5} (literal string of tag #5), to a variable using VBA? I couldn't find...
Replies
4
Views
892
Hello Every one, I need a help on vba code for getting data from MSSQL server 2014 to display in FTview SE client version 12 . Thanks. Please...
Replies
4
Views
1,806
I've been messing around with trying to find a way to clear all PlantPAx AOI latched alarms via the Alarm Banner or Summary objects. So far, I can...
Replies
2
Views
1,729
Back
Top Bottom