DAQFactory User's Guide - AzeoTech

Transcription

AzeoTech DAQFactory DAQFactory User's Guide

DAQFactory User's GuideDAQFactory for Windows, Version 5.86, Tuesday, September 20, 2011:Copyright 2001-2011 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 registeredtrademark of AzeoTech, Inc. Other brand and product names are trademarks oftheir respective holders.This manual: Copyright 2011 AzeoTech, Inc. All rights reserved worldwide.No portion of this manual may be copied, modified, translated, or reduced intomachine-readable form without the prior written consent of AzeoTech, Inc.

Contents3Table of Contents1 Introducing DAQFactory151.1 End User License.Agreement151.2 Acknowledgements. 181.3 Welcome to DAQFactory. 191.4 System Requirements. 191.5 DAQFactory Performance. 201.6 Licensing DAQFactory. 211.7 Moving a license. 221.8 Using the hardware.key option231.9 Upgrading to a.different version of DAQFactory231.10 For users of earlier.versions of DAQFactory241.11 DAQFactory's.User Interface251.12 DAQFactory Objects. 27322 Guided Tour2.1 Tour Overview. 322.2 Tour Assumptions. 322.3 Tour Terminology. 322.4 Starting DAQFactory. 322.5 Creating Channels. 322.6 Displaying the .Data352.7 Graphing the data. 392.8 Controlling an .output442.9 Logging Data . 462.10 Viewing Data .on the Web483 The DAQFactory Document533.1 Document Overview. 533.2 Starting a new .document533.3 Saving a document. 533.4 Saving with History. 533.5 Opening a document. 543.6 Safe mode. 543.7 Autoloading a document. 553.8 Document settings. 55 2011 AzeoTech, Inc.3

4DAQFactory User's Guide594 Expressions4.1 Expressions Overview. 594.2 Using expressions. 594.3 The command .line interface594.4 The big expression.window604.5 Arrays. 614.6 Subsetting. 624.7 Strings. 634.8 Entering hex and.binary constants634.9 Entering in constant.time values644.10 Object variables.and functions644.11 Specifying Connections.in Expressions654.12 Expression Operator./ Function Reference654.12.1 Order of operations.4.12.2 Boolean operators.4.12.3 Math operators.4.12.4 Bitwise operators.and functions4.12.5 Math functions.4.12.6 Trigometric functions.4.12.7 Statistical functions.4.12.8 Boxcar averaging.and smoothing functions4.12.9 String functions.4.12.10 Byte conversions.4.12.11 Time functions.4.12.12 Array creation.and manipulation functions4.12.13 Random Number.functions4.12.14 Thermocouple.conversion functions4.12.15 Misc functions.4.12.16 Constants.4.12.17 Advanced 894.13 Questions, Answers.and Examples904.13.1 Converting a string.to DAQFactory time4.13.2 Calcing the max.for a period of the day4.13.3 A trick to avoid.divide by 0 and other boolean tricks4.13.4 Doing things on.the hour4.13.5 Counting digital.transitions4.13.6 Calculating the.current second / minute / hour5 Sequences & Scripting909192939595985.1 Sequence Overview. 985.2 Creating a New.Sequence985.3 Starting and Stopping.a Sequence1005.4 The most basic.sequence and assignment1005.5 More advanced.assignment operators and the arraystep statement1005.6 Reading inputs.with the read statement and process control loops101 2011 AzeoTech, Inc.

Contents55.7 Programmatically.starting and stopping things1035.8 Timed sequences.and the goto statement1045.9 Waiting in a sequence. 1055.10 Variables. 1085.11 Private sequence.variables1125.12 Conditional branching.with the if statement1135.13 Replacing multiple.ifs with a switch statement1145.14 Sequence looping.with the while statement1155.15 Looping while.counting with the for statement1155.16 Avoiding being.hanged using the infinite loop check1165.17 Using sequences.as functions1175.18 Running commands.in a string with the execute function1185.19 Error handling.with try/catch1195.21 Sequence Threads.and Thread Priority1215.22 Auto-Start . 1225.23 Sequence debugging. 1225.24 Printing to the.Command / Alert window1225.25 Watch window. 1235.26 Sequence Functions. 1235.27 System Functions. 1245.28 System Events. 1275.29 Questions, Answers.and Examples1295.29.1 Misc sequence.comments5.29.2 Array manipulation.5.29.3 Start a sequence.on the second6 Channels and Conversions1291301321346.1 Channel and Conversion.Overview1346.2 Channels and.the Channel Table1346.3 Channel Import.and Export1376.4 Channel History.and Persistence1376.5 Channel Groups. 1396.6 Device Configurator. 1406.7 The Channel View. 1406.8 Fine Tuning Data.Acquisition1406.9 Channel Functions.and Variables1436.10 Channel List.Functions1456.11 Conversions.and the Conversion Table1466.12 V Channels . 1476.13 Questions, Answers.and Examples1486.13.1 Oversampling.a channel (averaging)148 2011 AzeoTech, Inc.5

6DAQFactory User's Guide6.13.2 Creating Conversions.for input channels6.13.3 AddValue() and.Conversions6.13.4 Applying a deadband.to a channel7 Pages and Components1481491491517.1 Page and Component.Overview1517.2 Adding Components.to Pages1517.3 Arranging Components.on the Page1517.4 Edit mode. 1527.5 Grouping Components. 1537.6 Creating User.Components1537.7 Using the Grid.and Movement Lock1547.8 Component Find.and Replace1547.9 Multiple Pages.and Page Properties1547.10 Creating Popups. 1557.11 Full screen mode. 1567.12 Creating multi-lingual.applications1577.13 Printing Pages. 1597.14 Page Functions. 1597.15 Component Names. 1617.16 Component Properties.and Events1627.17 Component Actions. 1647.18 The Components. 1657.18.1 Static.7.18.1.1 Text Component.7.18.1.2 Panel Component.7.18.2 Displays.7.18.2.1 Variable.Value Component7.18.2.2 Descriptive.Text Component7.18.2.3 Symbol.Component7.18.2.4 The Color.Property Page7.18.2.5 The Size.Property Page7.18.2.6 Table Component.7.18.2.7 Canvas.Component7.18.2.8 LED Components.7.18.2.9 Progress.Bar Component7.18.3 Gauges.7.18.3.1 Linear .Gauge and Log Gauge Component7.18.3.2 Angular.Gauge and Angular Log Gauge Component7.18.3.3 LED Bar.Gauge Component7.18.4 Compasses .7.18.4.1 Compass.Component7.18.4.2 Dual Compass.Component7.18.5 Percent.7.18.5.1 Percent.Bar and Pie Chart Component7.18.6 Graphs.7.18.6.1 2D 7177177177179182183183184185185187187 2011 AzeoTech, Inc.

Contents77.18.6.2 3D Graph.Component7.18.6.3 Image .Component7.18.6.4 Spectrum.Display Component7.18.7 Buttons & Switches.7.18.7.1 Button.Component7.18.7.2 Check .Box Component7.18.7.3 Spin Button.Component7.18.7.4 Lever Switch.Component7.18.7.5 Rocker.Switch Component7.18.7.6 Toggle.Switch Component7.18.7.7 Valve Component.7.18.7.8 Three .Way Rocker Component7.18.7.9 Four Way.

Contents 2011 AzeoTech, Inc.