SWTB_Banner_Left_LogoOnly

SWTB Extender - Coding

clearpixel

HOME HOW IT WORKS FREE TRIAL
SOFTWARE FEATURES SUPPORT
& NEWS PURCHASING
& LICENSING

SWTB_6Button_BlueLine

btn_BuyNow_YellowBack_150x30
btn_Faq_YellowBack_150x30
btn_FreeDemo_YellowBack_150x30
Fully-Featured Programming Interface

Generally speaking, no coding is required.

But even the designers of the Software Toolbox Extender realize that there are some things that need to be done through code. That is why all the functions available to you in the Design Time part of the Extender is available by code.

So if using the Design Time part is so easy, how about the programming side? We're glad you asked. Here is a quick example for using the Subscription Extender:

VB.NET

'
' Create a new Subscription Extender object
'
Dim SubscriptionExtender As New _
  SoftwareToolbox.GUI.Extender.SubscriptionExtender

'
' Create a new Engine Object
'
Dim Engine As New _
  SoftwareToolbox.GUI.Extender.SWToolboxOPCDataControl

'
' Set the properties for the Subscription Extender
'
SubscriptionExtender.DataCollectionEngine = Engine

'
' Set the properties for the Engine
'

Engine.Computer = "127.0.0.1"
Engine.Server = "SWToolbox.TOPServer"

'
' Next, define a new Extension object. The arguments passed are
'  "EastRoom.Boilder.Temperature" = TagName
'  100               = Scan Rate
'  0.0               = Deadband
'  True              = Enabled State
'  "Text"             = Property Name
'  DataFlowDirectionEnum.ReadOnly = Data Flow Direction
'  String.Empty          = Format String
'
Dim Extension As New _
  SoftwareToolbox.GUI.Extender.SWToolboxExtensions( _
    "EastRoom.Boiler.Temperature", _
    100, _
    0.0, _
    True, _
    "Text", _
    DataFlowDirectionEnum.ReadOnly, _
    String.Empty)

'
' Bind the Extension to the Extender
'

SubscriptionExtender.BindTagToProperty(Label1, Extension)

'
' And Connect!
'

SubscriptionExtender.Connect()

Quick. Simple. The Software Toolbox Extender.

 

 | HOME | HOW IT WORKS | FREE TRIAL SOFTWARE | FEATURES | SUPPORT & NEWS | PURCHASING & LICENSING

P: 1-888-665-3678 (US-Sales) or 704-849-2773 (Support & International), F: 704-849-6388
148A East Charles Street, Matthews, North Carolina, USA 28105
Copyright Software Toolbox, Inc., 1996-2006, All Rights Reserved Worldwide.