SL-GMS® Developer for Microsoft® .NET User's Guide
Total Page:16
File Type:pdf, Size:1020Kb
SL-GMS® Developer for Microsoft® .NET User’s Guide SL Corporation® OBJECT-ORIENTED GRAPHICAL MODELING SYSTEM Version 3.3 --10 June 2010 Part Number DDUG-400610 The information in this document is subject to change without notice and should not be construed as a commitment by the Sherrill-Lubinski Corporation. The Sherrill-Lubinski Corporation assumes no responsibility for any errors that may appear in this document. The software described in this document is furnished under a license and may be used or copied only in accordance with the terms of such license. This software is based in part on the work of the Independent JPEG Group. SL-GMS® Developer for Microsoft® .NET User’s Guide This manual is for use only in connection with the described software and may not be used for any commercial purpose or copied, distributed, sold, displayed, modified, published, or posted in whole or in part without the prior written permission of Sherrill-Lubinski Corporation. SL-GMS, SL Corporation, the SL Logo, and all Sherrill-Lubinski product names referenced in this manual are trademarks or registered trademarks of the Sherrill-Lubinski Corporation; any unauthorized use of these marks is strictly prohibited. All trademarks and registered trademarks referenced in this document are property of their respective companies. SL-GMS (3.3a) 10 June 2010 Configuration: D33a1_400610 Copyright (c) 1987-2010 Sherrill-Lubinski Corporation. All Rights Reserved. LIMITATIONS ON USE Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in the Technical Data - Commercial Items clause at DFARS 252.227-7015, the Rights in Data - General clause at FAR 52.227-14, and any other applicable provisions of the DFARS, FAR, or the NASA FAR supplement. SL Corporation 240 Tamal Vista Blvd., Suite 110 Corte Madera, CA 94925 TECHNICAL SUPPORT Phone 800.548.6881 (inside U.S.) 415.927.8400 Fax 415.927.8401 E-mail [email protected] 6/17/10 Table of Contents 1. SL-GMS® Developer for Microsoft® .NET User’s Guide Introduction................................................................................. 1-1 Why Microsoft .NET? ................................................................. 1-1 How does Visual Studio .NET help? ............................................ 1-2 How does SL-GMS Developer for Microsoft .NET fit in this environment?........................................................................... 1-3 SL-GMSDraw Dynamic Graphic Editor ....................................... 1-5 Dynamic Graphics ....................................................................... 1-7 Using the SL-GMS Microsoft .NET Viewer Control .................... 1-8 Example Scenario ........................................................................ 1-8 Summary ..................................................................................... 1-9 2. Getting Started with SL-GMS® Developer for Microsoft® .NET Introduction................................................................................. 2-1 Installation from Download File .................................................. 2-1 License Types .............................................................................. 2-1 Learning to use SL-GMS Developer for Microsoft .NET.............. 2-2 A Simple Exercise ....................................................................... 2-2 Using the GmsStreamComponent................................................. 2-12 3. Example Applications SimpleViewer .............................................................................. 3-3 SimpleViewer_VB ....................................................................... 3-7 SimpleViewer_Cache................................................................... 3-11 Graphs......................................................................................... 3-15 Interaction ................................................................................... 3-23 Browser ....................................................................................... 3-32 SharePoint SL-GMS Viewer Web Part ......................................... 3-46 ZoomPan ..................................................................................... 3-68 AutoZoomMode .......................................................................... 3-73 EmbeddedControls ...................................................................... 3-77 Dynamic Creation........................................................................ 3-86 User Methods .............................................................................. 3-89 Variable Binding.......................................................................... 3-94 Version 3.3 - June 2010 SL-GMS Draw Users Guide page i Version 3.3 - June 2010 SL-GMS Draw Users Guide ii List of Figures Number Title Page Figure 1-1: Furnace Model in Visual Studio .NET.......................................... 1-4 Figure 1-2: SL-GMSDraw Displaying Furnace Model..................................... 1-6 Figure 1-3: Custom Equipment Palette ......................................................... 1-7 Figure 1-4: Symbol Factory Objects Included with SL-GMSDraw................... 1-7 Figure 3-1: SimpleViewer Example Displaying Valve 1 Model........................ 3-3 Figure 3-2: SimpleViewer_VB Example Displaying Valve 2 Model ................. 3-7 Figure 3-3: SimpleViewer_Cache Example at startup.................................... 3-11 Figure 3-4: Graphs Example Displaying a Trend Graph ................................. 3-15 Figure 3-5: Graphs Example Pull-Down Menu............................................... 3-18 Figure 3-6: Interaction Example Displaying Auxiliary Furnace Model............. 3-23 Figure 3-7: Cursor Change and Name Display .............................................. 3-29 Figure 3-8: Popup menu (2 Entries) .............................................................. 3-30 Figure 3-9: Popup Menu for Named Object ................................................... 3-30 Figure 3-10: Object Property Dialog ............................................................... 3-31 Figure 3-11: Browser Example Displaying Valve 1 Model ................................ 3-32 Figure 3-12: ZoomPan Example ..................................................................... 3-68 Figure 3-13: Auto Zoom Mode Example .......................................................... 3-73 Figure 3-14: Embedded Controls Example...................................................... 3-79 Figure 3-15: Dynamic Creation Example......................................................... 3-86 Figure 3-16: User Method Example ................................................................ 3-89 Figure 3-17: Variable Binding Example ........................................................... 3-94 Version 3.3 - June 2010 SL-GMS Draw Users Guide iii Version 3.3 - June 2010 SL-GMS Draw Users Guide iv SL-GMS® Developer for Microsoft® .NET User’s Guide Sherrill−Lubinski ® Introduction SL-GMS is known worldwide as the most complete, high performance dynamic graphics system available for real-time monitoring and control applications. SL-GMS is widely used in various industries such as process automation, network monitoring, power distribution and traffic control. Providing products since 1985, SL has maintained the goal of protecting its customers from shifting trends in user interface technologies. SL has helped its customer base retain its investment in user interface implementations, making the transition smooth between such varied technologies as proprietary graphics systems, XWindows, Motif, Microsoft Windows, MFC, Internet applications, ActiveX, Java, and Microsoft .NET. As technologies change, the SL customer doesn't have to think about entire re-writes of user interfaces. SL-GMS Developer for Microsoft .NET is a graphical development system specifically designed for use with Microsoft’s Visual Studio .NET development environment. Why Microsoft .NET? Software product architects in the past often focused on solving a particular focused business problem and created applications highly specified to addressing that point solution. This was effective in that it enabled developers to deliver applications that would be successful at providing needed functionality to a well-defined user. Recognizing that many of these point solutions use common building blocks gave rise to the concept of having common components that would promote re-use of software and reduction of development costs. Technologies such as Microsoft COM, CORBA, and Enterprise Java Beans were developed to address this need for component object brokering between applications. This has been a powerful architectural model for a number of years; however, it can create “application stovepipes” or “islands of information” that cause significant problems in architectural reuse when trying to integrate these applications to implement enterprise-wide business solutions. Version 3.3 - June 2010 SL-GMS Draw Users Guide 1-1 Today, complex enterprise solutions are being constructed that integrate existing application services that may reside on the local network or are accessible only on the Internet. Older common object model technologies are often not suited for this new type of solution because they are difficult to implement, not scalable, not suited for Internet communication across firewalls, and integrate only with common implementation technologies and platforms. Microsoft .NET resolves many of these issues with .NET server