FT View SE VB Script

bdossantos

Member
Join Date
Mar 2018
Location
California
Posts
67
I am looking for some help with a script that I am working on. I have several trend screens that I want to condense into one and just load different trends. I havent had much luck with the VB script and accessing the tag database. What I am thinking of doing is depending on what button the operator selects it sets a value to memory tag and navigates to the trend screen. when the trend screen loads it checks the tag and them load the proper trend graph. What I dont get is how to reverence the tag in the vb script? Also if anyone has a better way of doing this, I am open to new ideas. Thank you
 
Private Sub Display_AnimationStart()
Dim objTrendNavTag As Tag
Dim TrendPage As Integer
Set objTrendNavTag = objGroup.Item("Diags\NavTrend")

TrendPage = objTrendNavTag.Value

If TrendPage = 1 Then
Trend1.Definition = "MyEnterprise.Public.Trend.Waste Gas Burner Flames"
End If

txtScreenTitle.Caption = ThisDisplay.Name
'hides the Tag Browser on launch
Trend1.ShowN***plorer = False
'hides the Toolbar on launch
Trend1.ShowToolbar = False
'hides the Date and time bar on launch
Trend1.ShowDateTimeCtrl = False
End Sub

This is what I have so far. I get a error code 424 Object required when I run the script. I am a little outside my understanding on this. I looks like I have to define the tag database with application.CreateTagGroup(Me.AreaName, 5000) but this is defined on a page that run in the background. I added objGroup.add "Diags\NavTrend" but i recieved the same error. Not sure where to go from here.
 
Last edited:
cool. can you post the working code in a
Code:
...[/ code] block?
 

FYI:


 [ATTACH]56664[/ATTACH]


Cf. [URL]https://rockwellautomation.custhelp.com/ci/fattach/get/113679/[/URL]
 
Last edited:

Similar Topics

Hi guys, I'm busy on the migration of old 3G/RS232 modems to 4-5G / Ethernet modems on about 200 pumping stations across the country. To...
Replies
0
Views
441
Hi guys I have had a thought regarding a quick hmi screen change for none experienced staff , is there a way that we can have a sd card or a usb...
Replies
1
Views
1,298
View SE Macros am I right? Yuck! It's a local app on an old 2003 terminal server. Can you run Macro scripts so they don't fill up the log? Can...
Replies
0
Views
1,798
I am Having an issue with passing strings from VB to Tag Database in FT. I am trying to pass the display name from VB to display on the Screen...
Replies
0
Views
1,903
I'm hoping that this a simple problem that I just don't see. Most of my background is with GE Cimplicity. I'm running FTView SE 6.0 on a Windows...
Replies
22
Views
14,842
Back
Top Bottom