没有合适的资源?快使用搜索试试~ 我知道了~
首页iPlot控件的使用说明书(IOCOMP组件群)
资源详情
资源评论
资源推荐

The Standard in Industrial Automation and Scientific Components for Real-Time Applications
Plot Pack Manual
Version 3.0.4
Version 3.0.4 [August 28, 2003]

Authors Patrick Carroll, Joe Castoro
Technical Reviewers Todd Oster
Proofreader Cyrus Edson
Copyright
Copyright © 1998-2003 Iocomp Software Incorporated. All rights reserved.
Portions of the software described in this document copyright Microsoft Corporation, Borland Corporation, and Linus Torvalds. All Rights Reserved.
No part of this publication may be reproduced, stored in a retrieval system or transmitted by any means, electronic, mechanical, photocopying, recording, or
otherwise, without written permission from the publisher. Except for the limited warranty as described in the End User License Agreement, the information
and material contained in this book are provided “As Is” without warranty of any kind, express or implied, including without limitation any warranty
concerning the accuracy, adequacy, or completeness of such information or material or the results to be obtained from using such information or material
contained within this manual or documentation. Neither Iocomp Software nor the author shall be responsible for any claims attributable to errors, omissions,
or other inaccuracies in the information or material contained in this book, and in no event shall Iocomp Software or the author be liable for direct, indirect,
special, incidental, or consequential damages arising out of the use of such information or material. Some states do not allow limitations of duration of any
implied warranty, so the above limitations may not apply to you.
Trademarks
Iocomp and the Iocomp Logo are registered trademarks of Iocomp Software Incorporated. Microsoft, Visual Basic, Visual C++, DotNet, Visual FoxPro,
Windows, Microsoft Office, and ActiveX are trademarks or registered trademarks of Microsoft Corporation. Borland, Delphi, Kylix, C++ Builder, VCL, and
CLX are trademarks or registered trademarks of the Borland Corporation. Linux is a registered trademark of Linus Torvalds. All other names, products, or
marks are trademarks or registered trademarks of their respective companies.
Initial Printing 03/2001
Second Printing 08/2002
Third Printing 09/2002
Fourth Printing 12/2002
Fifth Printing 08/2003
Manufactured in the United States of America

Table of Contents
Contents At A Glance
Chapter 1 - Introduction...................................................................................................................................................................................................................1
Chapter 2 - Deciding Which Component To Use............................................................................................................................................................................3
Chapter 3 - Overall Theory..............................................................................................................................................................................................................5
Chapter 4 - Main Interface...............................................................................................................................................................................................................8
Chapter 5 - Channels......................................................................................................................................................................................................................14
Chapter 6 - Data View...................................................................................................................................................................................................................29
Chapter 7 - Axes............................................................................................................................................................................................................................32
Chapter 8 - Legend.........................................................................................................................................................................................................................42
Chapter 9 - ToolBar.......................................................................................................................................................................................................................45
Chapter 10 - Labels........................................................................................................................................................................................................................48
Chapter 11 - Tables........................................................................................................................................................................................................................50
Chapter 12 - Data Cursors..............................................................................................................................................................................................................53
Chapter 13 - Annotations...............................................................................................................................................................................................................60
Chapter 14 - Limits........................................................................................................................................................................................................................71
Chapter 15 - Visual Layout Manager.............................................................................................................................................................................................75
Chapter 16 - Adding Data..............................................................................................................................................................................................................79
Chapter 17 - Null Data and Empty Data Handling........................................................................................................................................................................87
Chapter 18 - AutoScale and AutoLabel.........................................................................................................................................................................................91
Chapter 19 - Tracking....................................................................................................................................................................................................................94
Chapter 20 - Cartesian Axes..........................................................................................................................................................................................................98
Chapter 21 - Translation................................................................................................................................................................................................................99
Chapter 22 - Interpolation............................................................................................................................................................................................................101
Chapter 23 - User Interface Control.............................................................................................................................................................................................104
Chapter 24 - Loading and Saving Data........................................................................................................................................................................................107
Chapter 25 - Graphical Export.....................................................................................................................................................................................................110
Chapter 26 - Printing....................................................................................................................................................................................................................112
Chapter 27 - Plot Pack Events.....................................................................................................................................................................................................114
Chapter 28 - Layout Control Through Code................................................................................................................................................................................147
Chapter 29 - Layer Control..........................................................................................................................................................................................................154
Chapter 30 - Pixel, Percent, and Position....................................................................................................................................................................................156
Chapter 31 - Implementing ToolBar Externally..........................................................................................................................................................................157
Chapter 32 - Implementing Legend Externally............................................................................................................................................................................158
Chapter 33 - Performance Tuning................................................................................................................................................................................................160
Chapter 34 - Memory Utilization.................................................................................................................................................................................................164
Chapter 35 - Using With Databases.............................................................................................................................................................................................167
Chapter 36 - Visual C++ Disp vs. iDispatch Interface................................................................................................................................................................168
Chapter 37 - ASP (Active Server Pages).....................................................................................................................................................................................170
Chapter 38 - Internet Explorer (Client Side)................................................................................................................................................................................171
Chapter 39 - OPC (OLE For Process Control)............................................................................................................................................................................174
Chapter 40 - Scope Component...................................................................................................................................................................................................177
Appendix A - Plot Pack Property Editors....................................................................................................................................................................................185
Appendix B - Getting Started with Microsoft Visual Basic 6.0..................................................................................................................................................218
Appendix C - Getting Started with Microsoft Visual C++ 6.0 (Disp Interface)..........................................................................................................................224
Appendix D - Getting Started with Microsoft Visual C++ 6.0 (iDispatch).................................................................................................................................235
Appendix E - Getting Started with Microsoft .NET (VB.NET)..................................................................................................................................................245
Appendix F - Getting Started with Microsoft .NET (C#.NET)...................................................................................................................................................251
Appendix G - Getting Started with Delphi (Windows/Linux).....................................................................................................................................................257
Appendix H - Getting Started with CBuilder (Windows/Linux).................................................................................................................................................263
Appendix I - ActiveX HTML Properties and Events..................................................................................................................................................................269
Appendix J - Color Codes and Constants....................................................................................................................................................................................278
Appendix K - Interfaces...............................................................................................................................................................................................................279
Appendix L - What is DateTime Format?....................................................................................................................................................................................287
Appendix M - Working with Variant Arrays...............................................................................................................................................................................289
Appendix N - Frequently Asked Questions.................................................................................................................................................................................297
Index............................................................................................................................................................................................................................................314
Iocomp Components – Plot Pack Manual Page iii

Table of Contents
Table of Contents
Chapter 1 - Introduction...............................................................................................................................................................................................................1
Sample Code Conventions........................................................................................................................................................................................................1
Visual C++ Special Compiler Notes.........................................................................................................................................................................................1
Delphi (Windows/Linux), Special Compiler Notes..................................................................................................................................................................2
C++Builder (Windows/Linux) Special Compiler Notes...........................................................................................................................................................2
Component Naming Conventions.............................................................................................................................................................................................2
Source Code Unit Naming Conventions (Borland Development Environments Only)...........................................................................................................2
Chapter 2 - Deciding Which Component To Use........................................................................................................................................................................3
iPlot...........................................................................................................................................................................................................................................3
iXYPlot.....................................................................................................................................................................................................................................4
iScope........................................................................................................................................................................................................................................4
Chapter 3 - Overall Theory...........................................................................................................................................................................................................5
Generic Example:......................................................................................................................................................................................................................5
Specific Examples:....................................................................................................................................................................................................................5
Plot Objects...............................................................................................................................................................................................................................6
Plot Object Index...............................................................................................................................................................................................................6
Plot Object Name...............................................................................................................................................................................................................6
Get Plot Object Index By Name .......................................................................................................................................................................................7
Get Plot Object Name by Index.........................................................................................................................................................................................7
Chapter 4 - Main Interface...........................................................................................................................................................................................................8
General......................................................................................................................................................................................................................................8
User Can Edit Objects........................................................................................................................................................................................................8
User Can Add/Remove Channels......................................................................................................................................................................................8
Clip Annotations to Axes...................................................................................................................................................................................................8
Editor Form Style...............................................................................................................................................................................................................8
Copy to Clip Board Format...............................................................................................................................................................................................8
Data File Column Separator...............................................................................................................................................................................................8
Border Style.......................................................................................................................................................................................................................9
Outer Margin......................................................................................................................................................................................................................9
Update Frame Rate & Auto Frame Rate............................................................................................................................................................................9
Title...........................................................................................................................................................................................................................................9
Title Visible.......................................................................................................................................................................................................................9
Title Text............................................................................................................................................................................................................................9
Title Margin.......................................................................................................................................................................................................................9
Title Font.........................................................................................................................................................................................................................10
Background.............................................................................................................................................................................................................................10
Background Color............................................................................................................................................................................................................10
Background Gradient Enabled.........................................................................................................................................................................................10
Background Gradient Direction.......................................................................................................................................................................................10
Background Gradient Start Color....................................................................................................................................................................................10
Background Gradient Stop Color....................................................................................................................................................................................11
Print.........................................................................................................................................................................................................................................11
Print Show Dialog............................................................................................................................................................................................................11
Print Orientation..............................................................................................................................................................................................................11
Print Margin.....................................................................................................................................................................................................................11
Print Document Name......................................................................................................................................................................................................11
Hint.........................................................................................................................................................................................................................................12
Images.....................................................................................................................................................................................................................................12
File I/O....................................................................................................................................................................................................................................12
Translation..............................................................................................................................................................................................................................13
Annotation Defaults................................................................................................................................................................................................................13
Chapter 5 - Channels...................................................................................................................................................................................................................14
Visible.....................................................................................................................................................................................................................................14
Visible In Legend....................................................................................................................................................................................................................14
Trace Lines.............................................................................................................................................................................................................................14
Fast Draw................................................................................................................................................................................................................................15
Tracking..................................................................................................................................................................................................................................15
Ring Buffer.............................................................................................................................................................................................................................15
Asynchronous and Synchronous Data....................................................................................................................................................................................15
Channel Data Logging............................................................................................................................................................................................................15
Adding Data ...........................................................................................................................................................................................................................15
Data Markers...........................................................................................................................................................................................................................16
Individual Data Markers.........................................................................................................................................................................................................16
Channel Fill.............................................................................................................................................................................................................................16
Bar Support.............................................................................................................................................................................................................................17
Digital Channel Option...........................................................................................................................................................................................................17
OPC.........................................................................................................................................................................................................................................19
Channel Stats...................................................................................................................................................................................................................20
Page iv Iocomp Components – Plot Pack Manual

Table of Contents
File I/O ...................................................................................................................................................................................................................................20
Data Styles..............................................................................................................................................................................................................................21
Data Storage Issues.................................................................................................................................................................................................................22
Precision: How Channel Data is Stored...........................................................................................................................................................................22
Full Feature Options...............................................................................................................................................................................................................22
High/Low ...............................................................................................................................................................................................................................23
High/Low Only.......................................................................................................................................................................................................................23
High/Low Open-Close............................................................................................................................................................................................................23
High/Low Close......................................................................................................................................................................................................................24
High/Low Open-Close with Trace Line.................................................................................................................................................................................24
Candlestick..............................................................................................................................................................................................................................25
Multi-Colored TraceLine.................................................................................................................................................................................................25
Multi-Width TraceLine....................................................................................................................................................................................................25
Multi-TraceLineStyles ....................................................................................................................................................................................................26
Multi-Colored Markers....................................................................................................................................................................................................26
Multi-Shaped Markers.....................................................................................................................................................................................................27
Multi-Character Markers.................................................................................................................................................................................................27
Multi-Colored Bars..........................................................................................................................................................................................................27
Multi-Reference Bars.......................................................................................................................................................................................................28
Multi-Width Bars.............................................................................................................................................................................................................28
Chapter 6 - Data View.................................................................................................................................................................................................................29
Enabled Property.....................................................................................................................................................................................................................29
PopupEnabled Property..........................................................................................................................................................................................................29
AxesControl Feature ..............................................................................................................................................................................................................29
Background Feature................................................................................................................................................................................................................29
Layer Property........................................................................................................................................................................................................................29
Grid Feature............................................................................................................................................................................................................................30
Chapter 7 - Axes...........................................................................................................................................................................................................................32
Span........................................................................................................................................................................................................................................32
Min and Max...........................................................................................................................................................................................................................32
Rotated Axes...........................................................................................................................................................................................................................32
Desired Start...........................................................................................................................................................................................................................33
Desired Increment...................................................................................................................................................................................................................33
Label Formats.........................................................................................................................................................................................................................33
Reverse Scales........................................................................................................................................................................................................................33
Master UI Input.......................................................................................................................................................................................................................33
Axes Enabled..........................................................................................................................................................................................................................34
Labels Default /Cursor/Legend Tabs......................................................................................................................................................................................34
Scale Types.............................................................................................................................................................................................................................34
Linear...............................................................................................................................................................................................................................34
Logarithmic Base 10........................................................................................................................................................................................................34
LabelSeparation......................................................................................................................................................................................................................35
LabelsMargin..........................................................................................................................................................................................................................35
LabelsMinLength....................................................................................................................................................................................................................36
LabelsMinLengthAutoAdjust.................................................................................................................................................................................................36
StackingEndsMargin...............................................................................................................................................................................................................37
Force Stacking........................................................................................................................................................................................................................37
Tracking..................................................................................................................................................................................................................................37
User Interface..........................................................................................................................................................................................................................37
Axis GridLinesVisible.....................................................................................................................................................................................................38
Axis Visible.....................................................................................................................................................................................................................38
AlignRefAxisName.........................................................................................................................................................................................................38
Scale Factor.............................................................................................................................................................................................................................39
Customizing Tick Labels........................................................................................................................................................................................................40
Cartesian Master.....................................................................................................................................................................................................................41
Cartesian Child.......................................................................................................................................................................................................................41
Chapter 8 - Legend......................................................................................................................................................................................................................42
Predefined Columns................................................................................................................................................................................................................42
Turning On and Off Column Titles........................................................................................................................................................................................44
Chapter 9 - ToolBar.....................................................................................................................................................................................................................45
Buttons....................................................................................................................................................................................................................................45
Hiding and Showing Buttons..................................................................................................................................................................................................46
Code Control...........................................................................................................................................................................................................................46
Configuration..........................................................................................................................................................................................................................46
Chapter 10 - Labels......................................................................................................................................................................................................................48
Properties................................................................................................................................................................................................................................48
Caption.............................................................................................................................................................................................................................48
Alignment........................................................................................................................................................................................................................48
Font..................................................................................................................................................................................................................................48
Margin Left......................................................................................................................................................................................................................48
Margin Right....................................................................................................................................................................................................................48
Margin Top......................................................................................................................................................................................................................48
Margin Bottom.................................................................................................................................................................................................................48
Iocomp Components – Plot Pack Manual Page v
剩余347页未读,继续阅读




安全验证
文档复制为VIP权益,开通VIP直接复制

评论4