DAQFactory User's Guide AzeoTech DAQFactory ® ® DAQFactory for Windows, Version
DAQFactory User's Guide AzeoTech DAQFactory ® ® DAQFactory for Windows, Version 17.1, Tuesday, August 15, 2017: Copyright © 2001-2017 AzeoTech, Inc. All rights reserved worldwide. Information in this document is subject to change without notice. AzeoTech is a registered trademark of AzeoTech, Inc. DAQFactory is a registered trademark of AzeoTech, Inc. Other brand and product names are trademarks of their respective holders. This manual: Copyright © 2017 AzeoTech, Inc. All rights reserved worldwide. No portion of this manual may be copied, modified, translated, or reduced into machine-readable form without the prior written consent of AzeoTech, Inc. DAQFactory User's Guide 3 Contents 3 © 2017 AzeoTech, Inc. Table of Contents 1 Introducing DAQFactory 15 ................................................................................................................................... 15 1.1 End User License Agreement ................................................................................................................................... 18 1.2 Acknowledgements ................................................................................................................................... 20 1.3 Welcome to DAQFactory ................................................................................................................................... 20 1.4 System Requirements ................................................................................................................................... 21 1.5 DAQFactory Performance ................................................................................................................................... 21 1.6 Licensing DAQFactory ................................................................................................................................... 23 1.7 Moving a license ................................................................................................................................... 23 1.8 Using the hardware key option ................................................................................................................................... 24 1.9 Upgrading to a different version of DAQFactory ................................................................................................................................... 24 1.10 For users of earlier versions of DAQFactory ................................................................................................................................... 25 1.11 DAQFactory's User Interface ................................................................................................................................... 28 1.12 DAQFactory Objects 2 Guided Tour 32 ................................................................................................................................... 32 2.1 Tour Overview ................................................................................................................................... 32 2.2 Tour Assumptions ................................................................................................................................... 32 2.3 Tour Terminology ................................................................................................................................... 32 2.4 Starting DAQFactory ................................................................................................................................... 32 2.5 Creating Channels ................................................................................................................................... 35 2.6 Displaying the Data ................................................................................................................................... 38 2.7 Graphing the data ................................................................................................................................... 41 2.8 Controlling an output ................................................................................................................................... 43 2.9 Logging Data 3 The DAQFactory Document 47 ................................................................................................................................... 47 3.1 Document Overview ................................................................................................................................... 47 3.2 Starting a new document ................................................................................................................................... 47 3.3 Saving a document ................................................................................................................................... 47 3.4 Saving with History ................................................................................................................................... 48 3.5 Opening a document ................................................................................................................................... 48 3.6 Safe mode ................................................................................................................................... 49 3.7 Autoloading a document ................................................................................................................................... 49 3.8 Document settings ................................................................................................................................... 51 3.9 Document Licensing DAQFactory User's Guide 4 © 2017 AzeoTech, Inc. 4 Expressions 55 ................................................................................................................................... 55 4.1 Expressions Overview ................................................................................................................................... 55 4.2 Using expressions ................................................................................................................................... 55 4.3 The command line interface ................................................................................................................................... 56 4.4 The big expression window ................................................................................................................................... 57 4.5 Arrays ................................................................................................................................... 58 4.6 Subsetting ................................................................................................................................... 59 4.7 Strings ................................................................................................................................... 59 4.8 Entering hex and binary constants ................................................................................................................................... 59 4.9 Entering in constant time values ................................................................................................................................... 60 4.10 Object variables and functions ................................................................................................................................... 61 4.11 Specifying Connections in Expressions ................................................................................................................................... 61 4.12 Expression Operator / Function Reference .......................................................................................................................................................... 61 4.12.1 Order of operations .......................................................................................................................................................... 61 4.12.2 Boolean operators .......................................................................................................................................................... 62 4.12.3 Math operators .......................................................................................................................................................... 63 4.12.4 Bitwise operators and functions .......................................................................................................................................................... 63 4.12.5 Math functions .......................................................................................................................................................... 64 4.12.6 Trigometric functions .......................................................................................................................................................... 65 4.12.7 Statistical functions .......................................................................................................................................................... 66 4.12.8 Boxcar averaging and smoothing functions .......................................................................................................................................................... 67 4.12.9 String functions .......................................................................................................................................................... 72 4.12.10 Byte conversions .......................................................................................................................................................... 77 4.12.11 Time functions .......................................................................................................................................................... 79 4.12.12 Array creation and manipulation functions .......................................................................................................................................................... 81 4.12.13 Random Number functions .......................................................................................................................................................... 81 4.12.14 Thermocouple conversion functions .......................................................................................................................................................... 81 4.12.15 Misc functions .......................................................................................................................................................... 82 4.12.16 Constants .......................................................................................................................................................... 83 4.12.17 Advanced Analysis functions ................................................................................................................................... 84 4.13 Questions, Answers and Examples .......................................................................................................................................................... 84 4.13.1 Converting a string to DAQFactory time .......................................................................................................................................................... 85 4.13.2 Calcing the max for a period of the day .......................................................................................................................................................... 86 4.13.3 A trick to avoid divide by 0 and other boolean tricks .......................................................................................................................................................... 87 4.13.5 Counting digital transitions .......................................................................................................................................................... 87 4.13.6 Calculating the current second / minute / hour 5 Sequences & Scripting 90 ................................................................................................................................... 90 5.1 Sequence Overview ................................................................................................................................... 90 5.2 Creating a New Sequence ................................................................................................................................... 92 5.3 Starting and Stopping a Sequence ................................................................................................................................... 92 5.4 The most basic sequence and assignment ................................................................................................................................... 92 5.5 More advanced assignment operators and the arraystep statement ................................................................................................................................... 93 5.6 Reading inputs with the read statement and process control loops ................................................................................................................................... 95 5.7 Programmatically starting and stopping things 5 Contents 5 © 2017 AzeoTech, Inc. ................................................................................................................................... 96 5.8 Timed sequences and the goto statement ................................................................................................................................... 97 5.9 Waiting in a sequence ................................................................................................................................... 100 5.10 Variables ................................................................................................................................... 103 5.11 Private sequence variables ................................................................................................................................... 104 5.12 Conditional branching with the if statement ................................................................................................................................... 105 5.13 Replacing multiple ifs with a switch statement ................................................................................................................................... 106 5.14 Sequence looping with the while statement ................................................................................................................................... 107 5.15 Looping while counting with the for statement ................................................................................................................................... 107 5.16 Avoiding being hanged using the infinite loop check ................................................................................................................................... 108 5.17 Using sequences as functions ................................................................................................................................... 109 5.18 Running commands in a string with the execute function ................................................................................................................................... 110 5.19 Error handling with try/catch ................................................................................................................................... 112 5.21 Sequence Threads and Thread Priority ................................................................................................................................... 112 5.22 Auto-Start ................................................................................................................................... 113 5.23 Sequence debugging ................................................................................................................................... 113 5.24 Printing to the Command / Alert window ................................................................................................................................... 114 5.25 Watch window ................................................................................................................................... 114 5.26 Sequence Functions ................................................................................................................................... 114 5.27 System Functions ................................................................................................................................... 118 5.28 System Events ................................................................................................................................... 120 5.29 Questions, Answers and Examples .......................................................................................................................................................... 120 5.29.1 Misc sequence comments .......................................................................................................................................................... 120 5.29.2 Array manipulation .......................................................................................................................................................... 123 5.29.3 Start a sequence on the second 6 Channels and Conversions 125 ................................................................................................................................... 125 6.1 Channel and Conversion Overview ................................................................................................................................... 125 6.2 Channels and the Channel Table ................................................................................................................................... 127 6.3 Channel Import and Export ................................................................................................................................... 128 6.4 Channel History and Persistence ................................................................................................................................... 130 6.5 Channel Groups ................................................................................................................................... 130 6.6 Device Configurator ................................................................................................................................... 130 6.7 The Channel View ................................................................................................................................... 131 6.8 Fine Tuning Data Acquisition ................................................................................................................................... 133 6.9 Channel Functions and Variables ................................................................................................................................... 135 6.10 Channel List Functions ................................................................................................................................... 136 6.11 Conversions and the Conversion Table ................................................................................................................................... 137 6.12 V Channels ................................................................................................................................... 138 6.13 Disabling a Device with Bypass ................................................................................................................................... 139 6.14 Questions, Answers and Examples .......................................................................................................................................................... 139 6.14.1 Oversampling a channel (averaging) DAQFactory User's Guide 6 © 2017 AzeoTech, Inc. .......................................................................................................................................................... 139 6.14.2 Creating Conversions for input channels .......................................................................................................................................................... 140 6.14.3 AddValue() and Conversions .......................................................................................................................................................... 140 6.14.4 Applying a deadband to a channel 7 Pages and Components 142 ................................................................................................................................... 142 7.1 Page and Component Overview ................................................................................................................................... 142 7.2 Adding Components to Pages ................................................................................................................................... 142 7.3 Arranging Components on the Page ................................................................................................................................... 144 7.4 Edit / Operate mode ................................................................................................................................... 144 7.5 Grouping Components ................................................................................................................................... 144 7.6 Creating User Components ................................................................................................................................... 145 7.7 Using the Grid and Movement Lock ................................................................................................................................... 145 7.9 Multiple Pages and Page Properties ................................................................................................................................... 146 7.10 Creating Popups ................................................................................................................................... 147 7.11 Full screen mode ................................................................................................................................... 147 7.12 Creating multi-lingual applications ................................................................................................................................... 149 7.13 Printing Pages ................................................................................................................................... 149 7.14 Page Functions ................................................................................................................................... 151 7.15 Component Names ................................................................................................................................... 153 7.16 Component Properties and Events ................................................................................................................................... 154 7.17 Component Actions ................................................................................................................................... 155 7.18 The Components .......................................................................................................................................................... 155 7.18.1 Static ......................................................................................................................................................... 155 7.18.1.1 Text Component ......................................................................................................................................................... 156 7.18.1.2 Panel Component .......................................................................................................................................................... 156 7.18.2 Displays ......................................................................................................................................................... 156 7.18.2.1 Variable Value Component ......................................................................................................................................................... 157 7.18.2.2 Descriptive Text Component ......................................................................................................................................................... 158 7.18.2.3 Symbol Component ......................................................................................................................................................... 160 7.18.2.4 The Color Property Page ......................................................................................................................................................... 161 7.18.2.5 The Size Property Page ......................................................................................................................................................... 161 7.18.2.6 Table Component ......................................................................................................................................................... 163 7.18.2.7 Canvas Component ......................................................................................................................................................... 167 7.18.2.8 LED Components ......................................................................................................................................................... 167 7.18.2.9 Progress Bar Component ......................................................................................................................................................... 167 7.18.2.10 Browser Component .......................................................................................................................................................... 168 7.18.3 Gauges ......................................................................................................................................................... 168 7.18.3.1 Linear Gauge and Log Gauge Component ......................................................................................................................................................... 170 7.18.3.2 Angular Gauge and Angular Log Gauge Component ......................................................................................................................................................... 172 7.18.3.3 LED Bar Gauge Component .......................................................................................................................................................... 173 7.18.4 Compasses ......................................................................................................................................................... 173 7.18.4.1 Compass Component ......................................................................................................................................................... 174 7.18.4.2 Dual Compass Component .......................................................................................................................................................... 175 7.18.5 Percent ......................................................................................................................................................... 175 7.18.5.1 Percent Bar and Pie Chart Component .......................................................................................................................................................... 176 7.18.6 Graphs ......................................................................................................................................................... 176 7.18.6.1 2D Graph Component 7 Contents 7 © 2017 AzeoTech, Inc. ......................................................................................................................................................... 176 7.18.6.2 3D Graph Component ......................................................................................................................................................... 177 7.18.6.3 Image Component ......................................................................................................................................................... 178 7.18.6.4 Spectrum Display Component .......................................................................................................................................................... 179 7.18.7 Buttons_&_Switches ......................................................................................................................................................... 179 7.18.7.1 Button Component ......................................................................................................................................................... 179 7.18.7.2 Check Box Component ......................................................................................................................................................... 180 7.18.7.3 Spin Button Component ......................................................................................................................................................... 180 7.18.7.4 Lever Switch Component ......................................................................................................................................................... 180 7.18.7.5 Rocker Switch Component ......................................................................................................................................................... 181 7.18.7.6 Toggle Switch Component ......................................................................................................................................................... 181 7.18.7.7 Valve Component ......................................................................................................................................................... 182 7.18.7.8 Three Way Rocker Component ......................................................................................................................................................... 182 7.18.7.9 Four Way Switch Component .......................................................................................................................................................... 183 7.18.8 Edit_Controls ......................................................................................................................................................... 183 7.18.8.1 Edit Box, Password Edit, and Multiline Edit Box Component ......................................................................................................................................................... 184 7.18.8.2 Date & Time Edit Component .......................................................................................................................................................... 186 7.18.9 Selection ......................................................................................................................................................... 186 7.18.9.1 Combo Box and Radio Buttons Components ......................................................................................................................................................... 186 7.18.9.2 Tree List Component .......................................................................................................................................................... 187 7.18.10 Sliders_&_Knobs ......................................................................................................................................................... 187 7.18.10.1 Knob Component ......................................................................................................................................................... 189 7.18.10.2 Slider Component ......................................................................................................................................................... 191 7.18.10.3 Scroll Bar Component ................................................................................................................................... 191 7.19 Questions, Answers and Examples .......................................................................................................................................................... 191 7.19.1 Displaying a different symbol based on a value .......................................................................................................................................................... 192 7.19.2 Using a password to protect pages .......................................................................................................................................................... 193 7.19.3 Create a popup for user name and password .......................................................................................................................................................... 195 7.19.4 Create a popup numeric keypad 8 Graphing and Trending 198 ................................................................................................................................... 198 8.1 Graph Overview ................................................................................................................................... 198 8.2 Creating a Value vs Time (Trend) graph ................................................................................................................................... 199 8.3 Graph scaling, zooming, and panning ................................................................................................................................... 200 8.4 Adding more traces to the graph ................................................................................................................................... 200 8.5 Multiple Axes ................................................................................................................................... 201 8.6 Colorizing Traces ................................................................................................................................... 201 8.7 Error Bars ................................................................................................................................... 202 8.8 Wind barbs ................................................................................................................................... 202 8.9 Axis and Line annotations ................................................................................................................................... 203 8.10 Other graph properties ................................................................................................................................... 204 8.11 X vs Y graphs ................................................................................................................................... 204 8.12 Advanced graphing ................................................................................................................................... 205 8.13 Graph variables and functions 9 Data Logging and Exporting 210 ................................................................................................................................... 210 9.1 Data Logging Overview ................................................................................................................................... 210 9.2 Creating a logging set DAQFactory User's Guide 8 © 2017 AzeoTech, Inc. ................................................................................................................................... 212 9.3 Logging Notes and Alerts ................................................................................................................................... 213 9.4 ODBC Database logging ................................................................................................................................... 215 9.5 Reading uploads/Litterature/ users-guide 7 .pdf
Documents similaires










-
31
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Mar 31, 2021
- Catégorie Literature / Litté...
- Langue French
- Taille du fichier 3.8824MB