Manuel d'utilisation / d'entretien du produit BridgeVIEW du fabricant National Instruments
Aller à la page of 455
User Manual BridgeVIEW User Manual May 1998 Edition Part Number 321294C-01.
Internet Support E-mail: support@ natinst.com FTP Site: ftp.natinst.com Web Address: http://www.natinst.com Bulletin Board Support BBS United States: 512 794 5422 BBS United Kingdom: 01635 551422 BBS .
Important Information Warranty The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, du e to d efects in mate rials an d workman sh ip, for a period of 9 0 d ays from d ate o f sh ip m ent, as evidenced by receipts or other documentation.
© National Instruments Corporation v BridgeVIEW User Manual Contents About This Manual Organization of This Manual .............. ........... .............. ............ .............. ........... .............. ..... xix BridgeVIEW Concepts ........
Contents BridgeVIEW User Manual vi © National Instruments Corporation Chapter 2 BridgeVIEW Environment What Is G? ............... ........... ... ........... ... ............ .. ............ .. ............ ... ........... ... ........... ... .......
Contents © National Instruments Corporation vii BridgeVIEW User Manual What Is the Tag Configuration Editor?............. ........... ............... ........... .............. ........... ..... 3-3 How Do You Create a Tag? .................. .......
Contents BridgeVIEW User Manual viii © National Instruments Corporation Alarms .................. ............ .............. ........... .............. ........... ............... ........... ....... 3-31 How Do You Configure Alarms for a Tag? .....
Contents © National Instruments Corporation ix BridgeVIEW User Manual General Principles of G HMI Programming ............................... .............. .............. ........... 4-25 How Do You Implement Event-Driven Programming in G?..........
Contents BridgeVIEW User Manual x © National Instruments Corporation How Do You Change the Y Axis? ........ ............ .............. ........... .......... 6-12 How Do You Change the Plot Colors and Style in the Trend? ............ 6-13 How Do You Zoom In on the Trend?.
Contents © National Instruments Corporation xi BridgeVIEW User Manual How Do You Programmatically Log an Operator In to Your Application? .................. .............. ........... .............. ........... ...... 7-17 How Do You Programmatically Log an Operator Out of Your Application?.
Contents BridgeVIEW User Manual xii © National Instruments Corporation P ART II G Tutor ial Chapter 9 Creating VIs What is a Virtual Instrument?...... ........... .............. ........... ............... ........... .............. ........... . 9-1 How Do You Build a VI? .
Contents © National Instruments Corporation xiii BridgeVIEW User Manual Shift Registers ......... ........... ... ........... ... ........... ... ........... ... ............ .. ............ ... ........... ... .... .. 1 1-11 Using Uninitialized Shift Registers .
Contents BridgeVIEW User Manual xiv © National Instruments Corporation Chapter 16 Program Design Use Top-Down Design ..................... ............... ........... .............. ........... .............. ............ .... 16-1 Make a List of User Requirements .
Contents © National Instruments Corporation xv BridgeVIEW User Manual Figure 2-6. Select Tags to Monitor Dialog Box......................... ................. .............. ... 2-22 Figure 2-7. Write to Tag dialog box....................... ........
Contents BridgeVIEW User Manual xvi © National Instruments Corporation Figure 8-1. Server Browser ............... ........... ... ........... ... ............ .. ............ ... ........... ... ...... 8-6 Figure 8-2. View Server Information Dialog Box .
Contents © National Instruments Corporation xvii BridgeVIEW User Manual Activities Activity 2-1. Open and Run a VI ........ .............. ........... .............. ............ .............. ........... .. 2-8 Activity 3-1. Configure a Tag, and View the Tag Configuration Parameters and Tag Values .
© National Instruments Corporation xix BridgeVIEW User Manual About This Manual The BridgeVIEW User Manual contains the information you need to get started with the BridgeVIEW software package.
About This Manual BridgeVIEW User Manual xx © National Instruments Corporation programming language upon which BridgeVIEW is built, the BridgeVIEW Engine Manager , system errors and e vents, the T ag Monitor utility , and the T ag Browser utility .
About This Manu al © National Instruments Corporation xxi BridgeVIEW User Manual • Chapter 12, Case and Sequence Structures and the Formula Node , introduces the basic concepts of Case and Sequence.
About This Manual BridgeVIEW User Manual xxii © National Instruments Corporation Conventions Used in This Manual The following con ventions are used in this manual: bold Bold text denotes a parameter , menu name, palette name, menu item, return v alue, fun ction panel item, or dialog box button or option.
About This Manu al © National Instruments Corporation xxiii BridgeVIEW User Manual This icon to the left of b old text denotes the b eginning of an activity, w hich contains step-by-step instructions you can follow to learn more about BridgeVIEW.
Part I BridgeVIEW Concepts This section contains information about the BridgeVIEW environment, tag configuration, Human Machine Interface, alarms and events, historical data logging and extraction, servers, and advanced application topics such as system control and security.
Part I BridgeVIEW Concepts BridgeVIEW User Manual I-2 © National Instruments Corporation • Chapter 6, Historical Data Logging and Extraction , explains the concept of a trend, how to log and e xtra.
© National Instruments Corporation 1-1 BridgeVIEW User Manual 1 Introduction This chapter describes the unique BridgeVIEW approach to Human Machine Interface (HMI) and Supervisory Control and Data Acquisition (SCADA).
Chapter 1 Introduction BridgeVIEW User Manual 1-2 © National Instruments Corporation Required System Configuration BridgeVIEW is distributed on a CD-ROM that includes the complete BridgeVIEW 2.0 release. The W indows 95/NT v ersion of Brid geVIEW runs on any system that supports W indows 95 or W indows NT 4.
Chapter 1 Introduction © National Instruments Corporation 1-3 Bridge VIEW User Manual What Is BridgeVIEW? BridgeVIEW is a software package specifically targeted at industrial automation applications. BridgeVIEW prov ides configurable solutions for common HMI and SCADA functions while leveraging the flexibility of graphical programming.
Chapter 1 Introduction BridgeVIEW User Manual 1-4 © National Instruments Corporation information, ackn o wledge alarms, vi e w real-time trends and retri e v e historical data. F or more information abo ut h o w to get started with BridgeVIEW, see the Where Should I Start? section at the end of this chapte r .
Chapter 1 Introduction © National Instruments Corporation 1-5 Bridge VIEW User Manual • Attri b ute Nodes— Attri b ute n odes are special block diagram nodes that you can use to control the appearance and functional characteristics of controls and indicators.
Chapter 1 Introduction BridgeVIEW User Manual 1-6 © National Instruments Corporation Connection Connection includes the following tag attributes: • Access rights (input onl y , output onl y , Input.
Chapter 1 Introduction © National Instruments Corporation 1-7 Bridge VIEW User Manual Events An event is something that happens within the Bri dgeVIEW sy stem. Events can be divided into two groups: tho se that pertain to individual tag s and those that pertain to the overall BridgeVIEW system.
Chapter 1 Introduction BridgeVIEW User Manual 1-8 © National Instruments Corporation What Is the BridgeVIEW System Architecture? The BridgeVIEW system contains three sets of processes: the user HMI Application, the BridgeVIEW Engine, and industrial automation device servers, as shown in Figure 1-1.
Chapter 1 Introduction © National Instruments Corporation 1-9 Bridge VIEW User Manual wit h the BridgeVIEW Engine to read and write tag values, acknowledge alarms, access historical data, and read and write tag attributes. BridgeVIEW makes d e v elopment of operator graphic displays easy and fast.
Chapter 1 Introduction BridgeVIEW User Manual 1-10 © National Instruments Corporation the value, the timestamp of when the item w as sampled, and status information to the BridgeVIEW Engine. Output items are written on demand only when the BridgeVIEW Engine passes a new output value to the server .
Chapter 1 Introduction © National Instruments Corporation 1-11 BridgeVIEW User Manual ( BridgeVIEWActivitySolutions ) that contains the completed VIs for each acti vity in this manual. Y ou can vie w the VI for an activity that you hav e not completed yet, or use the VIs in this directory as a means of verifying your work.
© National Instruments Corporation 2-1 Bridge VIEW User Manual 2 BridgeVIEW Environment This chapter describes the BridgeVIEW environment. It explains th e basi c concepts behind G, the programming l.
Chapter 2 BridgeVIEW Environment BridgeVIEW User Manual 2-2 © National Instruments Corporation Virtual Instruments VIs have both an interactive user interface and a source code equivalent, and accept parameters from higher-level VIs.
Chapter 2 BridgeVIEW Environm ent © National Instruments Corporation 2-3 Bridge VIEW User Manual Stop button —Ab orts VI e x ecution. Pause/Continue button — P auses VI e x ecution/Continues VI e x ecution. Font ring —Sets font options, including font type, size, style, and colo r .
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-4 © National Instruments Corporation T ools Palett e BridgeVIEW has a floating Tools palette, which you can use to edit and debug VIs. You use the <Tab> k ey to tab through th e commonly used tools on the palette.
Chapter 2 BridgeVIEW Environm ent © National Instruments Corporation 2-5 Bridge VIEW User Manual Controls Palette The Controls palette consists of a graphical, floating palette that opens when you launch BridgeVIEW. You use this palette to place controls an d indicators on the front panel of a VI.
Chapter 2 BridgeVIEW Environment BridgeVIEW User Manual 2-6 © National Instruments Corporation Controls and Indicat ors Controls and indicators in G are similar to in put and output parameters o r graphs in traditional programming languages.
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-7 BridgeVIEW User Manual Boolean You use Boolean controls and indicators for entering and displaying Boolean (TRUE/FALSE) values. Boolean objects simulate switches, buttons, and LEDs.
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-8 © National Instruments Corporation Ta g You use tag controls and indicators for entering and displaying tag names or group names contained in the loaded tag configuration ( .scf ) file. You can find tag controls an d indicators in Controls»String Table Tags .
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-9 BridgeVIEW User Manual 2. Run the VI by clicking on the Ru n button in the toolbar . The button changes appearance to indicate that the VI is running. 3. Use the Operating tool to change the v alues of the Inflow Rates and other controls.
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-10 © National Instruments Corporation diagram as source code. The components of the block diagram represent program nodes such as F or Loops, Case structures, and multiplication functions. The co mp onents are wired to gether to show the flow of d ata within the block di agram.
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-11 BridgeVIEW User Manual Launch Engine Launches the BridgeVIEW Engine. The BridgeVIEW Engine manages the Real-T ime Database, communicates with device servers, and performs alarm management and historical data logging.
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-12 © National Instruments Corporation What Is the BridgeVIEW Engine Manager? When you run any G application that accesses the BridgeVIEW Real-Time Database, the BridgeVIEW Engine launches automat ically, opening either the configuration ( .
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-13 BridgeVIEW User Manual T able 2-2 provides a description of each of the f ields in the Engine Manager dialog box. This table provides basic informat ion about the Engine Manager dialog box options.
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-14 © National Instruments Corporation The Engine Manager sho ws the current state of the Engine, and has a System Event Display that sho ws .
Chapter 2 BridgeVIEW Environm ent © National Instruments Corporation 2-15 Bridge VIEW User Manual The Ser v er Br o wser is sh o wn in the foll o wing illu st ration. F or more information about d e vice ser v ers, see Chapte r 8 , Servers . Figure 2-3 .
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-16 © National Instruments Corporation Detailed system error and e vent messages are logged to a system log f ile. The messages are written to an ASCII f ile with a .log extensio n in the SYSLOG directory .
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-17 BridgeVIEW User Manual Table 2-3. T ag Browse r Field Descriptions Field Description Configuration File Displays the name of the configuration f ile you are browsing.
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-18 © National Instruments Corporation If the BridgeVIEW Engine is loaded, you can vie w the tags currently loaded with the T ag Browser . If the BridgeVIEW Engine is not loaded, the T ag Bro wser displays the currently loaded .
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-19 BridgeVIEW User Manual Figure 2-5. T ag Monitor Utility Note Selecting the T ag Monitor from the Project menu automatically launc hes th e BridgeVIEW Engine if it is not running already .
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-20 © National Instruments Corporation The Status D etails dialo g box, shown in Fig ure 2-6, displays a summary of the status for each tag in the system. T ags that hav e a warning are highlighted in blue, and tags in error are red.
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-21 BridgeVIEW User Manual Figure 2-6. Status Details Dialog Box Wi t h t h e Select Tags to Monitor dialog box, shown in Figure 2-7, you can select which tags to monitor and configure ho w often to refresh th e monitor display .
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-22 © National Instruments Corporation Select Tag Monitor»Preferences to bring up the Tag Monitor Preferences dialog box, sho w n in Figure 2 -8, which lets you cho ose how certain types of tags are display ed.
Chapter 2 B ridgeVIEW Environment © National Instruments Corporation 2-23 BridgeVIEW User Manual How Do Y ou Access Online Help? Choose Help»Show Help . When you place one of the tools on a subVI node, the Help window shows the icon for the subVI with wires attached to each terminal.
Chapter 2 BridgeVIEW En vironment BridgeVIEW User Manual 2-24 © National Instruments Corporation In the Help window , required inputs appear in bold text, recommended inputs appear in plain text, and optional inputs appear in gray text.
© National Instruments Corporation 3-1 BridgeVIEW User Manual 3 T ag Configuration This chapter describes tags, the Tag Configuration Editor, how you edit tags within the BridgeVIEW system, and includes an activity that illustrates how to use the Tag Configuration Editor.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-2 © National Instruments Corporation General Attributes General attributes include d ata type, max imum length for string and bit array tags, and the name, description, and tag group of the tag. The BridgeVIEW system supports four types of tags: analog, discrete, string, and bit array.
Chapter 3 T ag Configuration © National Instruments Corporation 3-3 BridgeVIEW User Manual Alarm Attributes Alarm attributes describe abnormal process conditions for a given tag.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-4 © National Instruments Corporation Figure 3-1. T ag Configuration Editor The T ag Configuration Editor records all tag information and Engine parameters and stores this information in a BridgeVIEW Configuration File with the extension .
Chapter 3 T ag Configuration © National Instruments Corporation 3-5 BridgeVIEW User Manual Note Communication between the BridgeVIEW Engine and any device server is stopped temporarily when the Engine shuts do wn and restarts.
Chapter 3 T ag Configuration BridgeVIEW User Manual 3-6 © National Instruments Corporation Note If you delete a tag and sa v e the .scf file, the tag and its configuration information are rem o v ed from th e .
Chapter 3 T ag Configuration © National Instruments Corporation 3-7 BridgeVIEW User Manual How Do Y ou Add Network T ags? On the BridgeVIEW server, all tag s in an allowed .scf file can be viewed by another BridgeVIEW system by opening the Tag Configuration Editor and selecting Configure»Allow Network Access .
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-8 © National Instruments Corporation The default v alues apply when creating a new tag, importing a tag from the server re gistry , or importing a tag from a spreadsheet. In the case of spreadsheet, a v alue in the spreadsheet overrides the def ault value for the field.
Chapter 3 T ag Configuration © National Instruments Corporation 3-9 BridgeVIEW User Manual For easy vie wing and editing in the spreadsheet, press the Use Default Order button. After you edit the file, sa ve it as a .txt f ile. Then, from the T ag Configuration Editor , select File»Import… to import the information from the spreadsheet file.
Chapter 3 T ag Configuration BridgeVIEW User Manual 3-10 © National Instr uments Corporation How Do Y ou Configure T ags? When you configure a tag with the Tag Configuration Editor, you define several attributes for the tag. You can separate these attributes into five categories: general, connection, operations, scaling, and alarms.
Chapter 3 T ag Configuration © National Instruments Corporation 3-11 Bridge VIEW User Manual String T ags A string tag is an ASCII character representation of a connection to a real-world I/O po int or memory v ariable. Use a string tag when you h a v e binary information or an ASC II v alue.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-12 © National Instruments Corporation Connection You associate a tag with its real-worl d I/O point by assigning it a Server , I/O Group , and Item in the Connection tab of the Tag Configuration dialog box, shown in Figure 3-5.
Chapter 3 T ag Configuration © National Instruments Corporation 3-13 BridgeVIEW User Manual Figure 3-5. T a g Connection Dialog Box If a device server does not appear in the serv er name list, you must run the configuration or registration utility for your server before BridgeVIEW can access the server .
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-14 © National Instruments Corporation I/O Group Configuration I/O Groups are used to configure item rate and deadband for items of a server and to select a specific device, if the server uses devices.
Chapter 3 T ag Configuration © National Instruments Corporation 3-15 BridgeVIEW User Manual server uses devices, with only one device. A server can have multiple I/O Groups associated with it.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-16 © National Instruments Corporation T able 3-3 provides descriptions of the operations that can be p erformed on an I/O Group. For information about other opeations that can be performed on an I/O Group, see T able 3-2.
Chapter 3 T ag Configuration © National Instruments Corporation 3-17 BridgeVIEW User Manual Communication Resource Configuration Options For IAK ser vers, use the Create… button to invoke a new, untitled IAK Create Communication Resource Configuration dialog box.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-18 © National Instruments Corporation Use the Edit… button to in vok e the Edit De vice Configuration dialog box for the de vice currently selected in the device list. The options in this dialog box vary depending on the type of server .
Chapter 3 T ag Configuration © National Instruments Corporation 3-19 BridgeVIEW User Manual The Edit… button in vok es a server-dependent conf igu ration dialog bo x, which you can use to edit the conf iguration of the selected item.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-20 © National Instruments Corporation Example 2When to Use a Memor y T ag A simple device server returns several items of data that, through a linear combination of values, represent a meaningful measurement in engineering units.
Chapter 3 T ag Configuration © National Instruments Corporation 3-21 BridgeVIEW User Manual selecting Append Tags to SCF? (def ault mode) or you can create a new configuration f ile.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-22 © National Instruments Corporation Y ou can use tag groups to help define a subset of tags in the system. T ag groups are helpful when you want to e xamine the alarm states for a subset of tags in the system.
Chapter 3 T ag Configuration © National Instruments Corporation 3-23 BridgeVIEW User Manual Table 3-4. Operations Configuration At tributes Attrib ute Applies to Data T ypes Description Update Deadband all Determines when the Real-T ime Database (R TDB) updates the value for this tag.
Chapter 3 T ag Configuration BridgeVIEW User Manual 3-24 © National Instr uments Corporation What Is Deadband? In process instrumentation, deadband is the range through which an in put signal can vary without initiating an observable change in output signal.
Chapter 3 T ag Configuration © National Instruments Corporation 3-25 BridgeVIEW User Manual How Do Y ou Configure a T ag to Log Its Data or Events? While editing a tag, click on the Log Data or Log/Print Events checkbox. If you want to log historical data or events, the BridgeVIEW Engine must have these processes enabled.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-26 © National Instruments Corporation The next sections e xplain how to scale data. Often your application needs BridgeVIEW to manipulate th e raw data used in the de vice serv er to put it in a form, called engineering units, suitable for the operators.
Chapter 3 T ag Configuration © National Instruments Corporation 3-27 BridgeVIEW User Manual Analog T ags You can define the raw range and engineering range for a tag to perform simple conversions between the two ranges. The raw range, defined by Raw Full Scale and Raw Zero Scale, refers to the values used by the device server.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-28 © National Instruments Corporation Configure the tag for ra w range from zero (Raw Zero Scale) to f iv e (Raw Full Scale). Select Linear , and set the engineering range from 50 (Eng Zero Scale) to 100 (Eng Full Scale).
Chapter 3 T ag Configuration © National Instruments Corporation 3-29 BridgeVIEW User Manual Figure 3-9. Scaling for Discrete T ag Configuration Bit Array T ags Bit array tags can have invert and/or select mask scaling. You can use the invert mask to determine which bits are inverted between the device server and the BridgeVIEW Engine.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-30 © National Instruments Corporation Figure 3-10. Scaling for Bit Array T ag Configuration Table 3-6.
Chapter 3 T ag Configuration © National Instruments Corporation 3-31 BridgeVIEW User Manual Alarms These attributes include whether to enable alarms, under what circumstances a tag is in alarm, the priority level of an alarm, and how alarms are acknowledged.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-32 © National Instruments Corporation HI_HI Limit analog Determin es the value, in engineering u nits, that i n vokes a HI_HI alarm condition. The tag alarm state remains HI_HI until the tag value goes belo w the HI_HI alarm limit minus the alarm deadband.
Chapter 3 T ag Configuration © National Instruments Corporation 3-33 BridgeVIEW User Manual Alarm on discrete, bit array Determines whether a discrete tag should be alarm on ON (high) or OFF (low). Determines whether a bit array goes into alarm if all of its bits are in alarm or if an y of its bits are in alarm.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-34 © National Instruments Corporation How Do Y ou Configure Alarms for a T ag? While editing a tag, click the Enable Alarms checkbox. Alarms are generated depending on the value or state of a tag.
Chapter 3 T ag Configuration © National Instruments Corporation 3-35 BridgeVIEW User Manual Discrete T ags Discrete tags have one alarm state— either the tag is in alarm or it is not. You can determine whether a tag is in alarm when it is ON (High) or OFF (Low).
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-36 © National Instruments Corporation Figure 3-13. Alarms for Bit Array T ag Configuration String T ags String tags have no alarm states based on tag value.
Chapter 3 T ag Configuration © National Instruments Corporation 3-37 BridgeVIEW User Manual This type of situation clogs ev ent files with redundant information and can cause operators some frustration in having to ackno wledge alarms constantly when the tag has not changed signif icantly .
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-38 © National Instruments Corporation User Must Ack With this option enabled, an alarm remains unacknowledged until the operator acknowledges the alarm.
Chapter 3 T ag Configuration © National Instruments Corporation 3-39 BridgeVIEW User Manual Note This configuration file uses da ta simulated by the T anks Server . Y ou must ensure that the Tanks Server is registered with the BridgeVIEW Engine by selecting Project»Server Tools»Server Browser .
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-40 © National Instruments Corporation Table 3-10. Co nfiguration Settings for Activity 3-1 Category Attribute Setting General Ta g N a m e Produ.
Chapter 3 T ag Configuration © National Instruments Corporation 3-41 BridgeVIEW User Manual 8. Modify the Mixer , Liquid , and Powder tags, as specified in T able 3-11, to configure them for Historical Logging and Alarm Acknowledgement.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-42 © National Instruments Corporation 9. Sav e the configuration by selecting File»Save . The modif ied .scf file is provided for you in the BridgeVIEWActivitySol utions directory . 10. V ie w the tag configuration using the T ag Browser .
Chapter 3 T ag Configuration © National Instruments Corporation 3-43 BridgeVIEW User Manual The T ag Monitor is a quick way to look at tag v alues and alarm states without building an HMI. It is also a great debugging tool. When you launch the T ag Monitor, it automatically launches the Engine.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-44 © National Instruments Corporation How Do Y ou Configure Other Engine Parameters? There are other Engine parameters you can configure within the Tag Configuration Editor.
Chapter 3 T ag Configuration © National Instruments Corporation 3-45 BridgeVIEW User Manual Note Although you can configure these parameters, it is highly recommended you maintain the default values.
Chapter 3 T ag Configurati on BridgeVIEW User Manual 3-46 © National Instruments Corporation How Do Y ou Launch Ser ver Configuration Utilities from the T ag Configuration Editor? When you register a server in your system, BridgeVIEW registers the location of its configuration utility, if it exists.
© National Instruments Corporation 4-1 BridgeVIEW User Manual 4 Human Machine Interface This chapter explains what a Human Machine Interface (HMI) is and how you can monitor and control tags from your HMI.
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-2 © National Instruments Corporation There are sev eral g eneral G programming principles with which y ou should be familiar before you build an HMI.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-3 BridgeVIEW User Manual Front Panel Objects A front panel is the user interface of a virtual instrument (VI). You build the front panel of a VI with a combin ation of controls and indicators representing the values of the tags.
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-4 © National Instruments Corporation The HMI G W izard associates a front panel control or indicator with a tag, and generates the necessary W izard subdiagram for a configuration that you specify .
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-5 BridgeVIEW User Manual Display discrete va l u e s Indicate an alarm state Boolean Indicator In vok e the HMI G Wizard on a B oolean indicator to associate a discrete input tag value or an alarm state with that indicator .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-6 © National Instruments Corporation Display event history information Event History Display or any T able Indicator In voke the HMI G Wizard on a table indicator to obtain a history of past ev ents and alarms (Ev ent History).
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-7 BridgeVIEW User Manual T o in voke the W izard, pop up on a front panel object, and select HMI G Wizard… . For example, the HMI G W izard dialog box for an analog input tag appears in Figure 4-1 by popping up on a numeric indicator .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-8 © National Instruments Corporation Generate the Block Diagram Once you associate a front panel object with a tag and set the various parameters, the HMI G Wizard generates the appropriate code and places it on the block diagram.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-9 BridgeVIEW User Manual For this acti vity , you will use the ta gs configured in mytanks.scf , which you edited in A ctivity 3-1 and is located in the BridgeVIEWActivity directory .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-10 © National Instruments Corporation If you do not see a list of available tags or the tag name Mixer is not in the list when you click on the Tag menu ring, pop up on the menu ring and select Tag Browser… to select the correc t .
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-11 BridgeVIEW User Manual 5. Return to the front panel and run the VI. It launches the Eng ine if it is not running already . The Engine reads mytanks.scf and launches the T anks Server .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-12 © National Instruments Corporation How Do Y ou Customize Front Panel Objects? You can customize BridgeVIEW controls and indicators to change their default appearance on the front panel with the Control Editor.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-13 BridgeVIEW User Manual If you want to use the control in other VIs, you can sav e it as a custom control by selecting File»Save . After you sav e the control, you can place it on other front panels using the Controls»Select a Control… .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-14 © National Instruments Corporation 4. Click on the Edit Mode button in the Control Editor toolbar . The wrench changes to a pair of tweezers to illustrate that you are in Customize mode. In Customize mode, the control is brok en into se v eral parts.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-15 BridgeVIEW User Manual 7. Click on the pair of tweezers to return to Edit mode. Y ou can finish editing the control in Edit mode. 8. Pop up on the housing of the slide and select Scale»Style»None .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-16 © National Instruments Corporation How Do Y ou Monitor and Control T ags? The Tags VI library and Alarms and Events VI library contain VIs for your HMI application to interact with the BridgeVIEW Real-Time Database.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-17 BridgeVIEW User Manual T ag Data T y pe BridgeVIEW has a special data type called the tag data type that is aware of the available tag names and tag group names contained in the current .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-18 © National Instruments Corporation Y ou also can enter the name of the tag you want to use. The tag control performs a T ype Look Ahead as you type, and displays the closest tag or group name to what you enter .
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-19 BridgeVIEW User Manual The tag data type imports tag and tag group names from a tag configuration fil e ( .scf ). When you launch BridgeVIEW , the tag data type list of av ailable tag names and tag group names is automatically updated from your default .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-20 © National Instruments Corporation T ag constants in your diagram (and tag controls and indicators if th ey are sav ed with default values) retain the tag name or tag group name selected when your VI is sav ed.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-21 BridgeVIEW User Manual period is exceeded, whiche ver occurs f irst, then reads the database and returns the current tag in formation.
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-22 © National Instruments Corporation Block Diagram 2. T o create the block diagram, pop up on the tank and select HMI G Wizard… . Select Product for th e T ag and click OK , as shown in the follo wing il lustratio n.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-23 BridgeVIEW User Manual 3. The HMI G W izard generates a diagram for you that calls the Read T ag VI, as shown in the follo wing illustrat ion. 4. Pop up on the lock in the top right co rner of the While Lo op and select Release Wizard Lock .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-24 © National Instruments Corporation 9. Sav e the VI as Monitor Product.vi in the BridgeVIEW Activity directory . 10. Run the VI. The Engine launches, unless it is running already . The tank lev el changes to reflect the changing values of the Product tag.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-25 BridgeVIEW User Manual General Principles of G HMI Programming You can choose how to monitor and co ntrol tag values as we ll as operator interface controls and indicators in your HMI.
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-26 © National Instruments Corporation alarm state indicator , and con trols the blinking of the Mixer in Alarm indicator .
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-27 BridgeVIEW User Manual How Do Y ou Implement Polled Programming in G? You do not have to use a separate loop for each Tags or Alarms and Events VI.
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-28 © National Instruments Corporation Figure 4-4. Process View Display VI How Do Y ou Initialize and Shut Down Multiple-Loop Applications? .
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-29 BridgeVIEW User Manual How Do Y ou Display Real-Time T rends? You can build a real-time trend by dropping a real-time trend indicator on your front panel and popping up on it to select the HMI G Wizard.
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-30 © National Instruments Corporation Figure 4-5. T wo T rend Displa y VI The real-time trend indicator updates with a v alue for each tag e very time the indicator is written to. If a VI using this indicator is executed se veral times, it still has previous data displayed.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-31 BridgeVIEW User Manual This example illustrates the use of dataflow programming to enforce the order of two structures that otherwise are not related b y data flow .
Chapter 4 Human Machine Inter face BridgeVIEW User Manual 4-32 © National Instruments Corporation Figure 4-7. Using the T ag Attributes VIs to Initialize Front Panel Indicators, Frame 0 Figure 4-8 illustrates the subsequent frame of the Sequence structure.
Chapter 4 Human Machine Inter face © National Instruments Corporation 4-33 BridgeVIEW User Manual Figure 4-8. Using the T ag Attributes VIs to Initialize Front Panel Indicators, Fram e 1.
© National Instruments Corporation 5-1 BridgeVIEW User Manual 5 Alarms and Events This chapter introduces the basic concepts of alarms and events, and explains how to view, acknowledge, and configure them within the BridgeVIEW system.
Chapter 5 Alarms and Events BridgeVIEW User Manual 5-2 © National Instruments Corporation Alarm Priority An alarm priority indicates the severity of an alarm. Priorities range from 1 (lowest) to 15 (highest). You can filter the alarms displayed in your HM I by alarm priority.
Chapter 5 Alarms and Events © National Instruments Corporation 5-3 BridgeVIEW User Manual can change the def ault colors of alarms, acknowledged alarms and unacknowledged tags that ha ve returned to normal with the Color Codes for Alarm Summary control, which also is av ailabl e in the Alarms and Ev ents palette.
Chapter 5 Alarms and Events BridgeVIEW User Manual 5-4 © National Instruments Corporation 3. Now , you can select the tags to monitor . In the tag list, select <ALL> to view alarms on all the tags that hav e alarms conf igured. Click on the Add button to add all tags to the list.
Chapter 5 Alarms and Events © National Instruments Corporation 5-5 BridgeVIEW User Manual The diagram abov e uses ev ent-driven programming to wait for an alarm summary ev ent before updating the Alarm Summary Display . The Read Alarm Summary VI returns when an alarm e v ent occurs on any of the tags in the tag constant array .
Chapter 5 Alarms and Events BridgeVIEW User Manual 5-6 © National Instruments Corporation How Do Y ou Display Event Histor y Information? To read all the alarms and events in the BridgeVIEW system th.
Chapter 5 Alarms and Events © National Instruments Corporation 5-7 BridgeVIEW User Manual remains at UNACK until the user presses the ACK button on the HMI and ackno wledges the alarm. Y ou can select the tags for which you want to ackno wledge alarms.
Chapter 5 Alarms and Events BridgeVIEW User Manual 5-8 © National Instruments Corporation 3. Select Alarm Acknowledgement for the Attach Control to: o ption. 4. Select the tags to monitor . In the tag list, select <ALL> to view alarms on all the tags that hav e alarms configured.
Chapter 5 Alarms and Events © National Instruments Corporation 5-9 BridgeVIEW User Manual The Ackno wledge Alarm VI is called when the front panel ACK button is pressed. This b utto n is polled in a separate While Loop and the Read Alarm Summary VI waits for e v ents in its own While Loop.
Chapter 5 Alarms and Events BridgeVIEW User Manual 5-10 © National Instruments Corporation How Do Y ou Configure Logging and Printing of Alarms and Events? You can configure logging and printing options for Alarms and Events through the Event Configuration dialog box, shown in Figure 5-1.
Chapter 5 Alarms and Events © National Instruments Corporation 5-11 BridgeVIEW User Manual There are various format options for logging and printing. The print selections are a set of se veral parameters that determine the fo rm at of the data to be printed.
Chapter 5 Alarms and Events BridgeVIEW User Manual 5-12 © National Instruments Corporation How Do Y ou Log Alarms and Events? Events are logged in ASCII files named in the format YYMMDDHHMM.evt using the timestamp of the first point to be logged. YY is the year, MM is the Table 5-2.
Chapter 5 Alarms and Events © National Instruments Corporation 5-13 BridgeVIEW User Manual month, DD is the day, HH is the hour, MM is the minute and .evt is the extension for all event log files. There are three steps you must complete to log alarms and e vents: 1.
Chapter 5 Alarms and Events BridgeVIEW User Manual 5-14 © National Instruments Corporation There are three techniques for turning event p rinting on or off: • Y ou can configure e vent printing in the T ag Configuration Editor . T o turn on printing, select Configure»Events… .
© National Instruments Corporation 6-1 BridgeVIEW User Manual 6 Historical Data Logging and Extraction This chapter explains the concept of a trend, how to log and extract historical data, and how to use the Historical Trend Viewer (HTV), a utility that displays historical data that has been logged to disk with BridgeVIEW.
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-2 © National Instruments Corporation manipulate, and analyze historical data automatically from outside the BridgeVIEW environment. For more information, see Appendix B, Citadel and Open Database Connectivity .
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-3 BridgeVIEW User Manual How Do Y ou Configure Historical Logging? You can reach the Historical Logging Configuration dialog box by selecting Configure»Historical… from the Tag Configuration Editor.
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-4 © National Instruments Corporation How Do Y ou Extract and View Data from Historical Log Files? There are two methods for viewing historical data that has been logged to disk.
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-5 BridgeVIEW User Manual If the Citadel Path is empty , the Fi le Dialo g function is executed. This brings up a File dialog box that lets the operator select the directory containing the historical data files.
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-6 © National Instruments Corporation Activity 6-1. Use the Historical Data VIs The objective of this ex ercise is to create a VI that programmatically reads historical information from Citadel and determines sta tistical information of the data.
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-7 BridgeVIEW User Manual Y ou will display previously logged data, which is included in the BridgeVIEWActivityData directory . It contains a 25-minute run of data. Y ou can change the time axis to display the f irst minute of this data.
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-8 © National Instruments Corporation 6. On the front panel, create an array of numeric indicators.
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-9 BridgeVIEW User Manual on the data that is displayed. Y ou can use the panning tool to display a different section of data. The averages are updated automatically .
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-10 © National Instruments Corporation How Do Y ou Select the T ags to Display? Select File»Select Tags… , and the Select Tags dialog box appears, as shown in Figure 6-3. With this dialog box, you can select either a .
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-11 BridgeVIEW User Manual Panning Buttons The Panning button s allow you to move backward and forw ard through the historical data in the trend. The buttons do not affect the timespan of the trend.
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-12 © National Instruments Corporation How Do Y ou Change the Timespan of Data Displayed? The timespan indicator displays the amount of relative time between the start and end points of the time axis.
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-13 BridgeVIEW User Manual How Do Y ou Change the Plot Colors and Style in the T rend ? Click on the Trend Legend . The pop -up window contains several optio ns with which you can change the plot colors and styles used in the trend.
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-14 © National Instruments Corporation Select the Remember settings on exit checkbox if you want to update you r settings each time you exit the HTV .
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-15 BridgeVIEW User Manual Activity 6-2. Use the Historical T rend Viewer The objective of this activity is to view logged data with the Historical T rend V iewer . Y ou will use mytanks.
Chapter 6 Historical Data Loggi ng and Extraction BridgeVIEW User Manual 6-16 © National Instruments Corporation The HTV displays the trends for the Powder , Mixer , Liquid and Product tags. The A vailable Data display sho ws the start and stop timestamps of the logged data.
Chapter 6 Historical Data Logging and Extraction © National Instruments Corporation 6-17 BridgeVIEW User Manual 7. T o see the value of a particular data point, use the two v ertical cursors on the trend. Y ou can see the v alue of the data point on each trend at the giv en cursor location in the Dat a Display .
© National Instruments Corporation 7-1 BridgeVIEW User Manual 7 Advanced Application T opics This chapter explains advanced topics you need to understand to make optimum use of BridgeVIEW for developing applications.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-2 © National Instruments Corporation How Do Y ou Use the Panel G Wizard? The Panel G Wizard only operates on Boolean controls. To invoke the Wizard, pop up on a front panel Boolean control and select Panel G Wizard… .
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-3 BridgeVIEW User Manual Y ou can configure the Panel G W izard to store the file path as a relati ve path or as an absolute path.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-4 © National Instruments Corporation 2. Sav e the VI as My Menu Bar.vi in the BridgeVIEWActivity directory . 3. Pop up on the Alarms b utto n an d select Panel G Wizard… . Configure the b utton to open the My Alarm Summary with Ack.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-5 BridgeVIEW User Manual 5. Make a copy of the Alarms button. Click on the button text with the labeling tool and name the button Monit or . 6. Pop up on the Monitor button and select Panel G Wizard… .
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-6 © National Instruments Corporation For e xample, you might find it unnecessary to load certain panels into your application until they are needed. By using these functions, you can control when your panels are loaded into memory .
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-7 BridgeVIEW User Manual How Do Y ou Control Panel Visibility? There are several ways to control the visibility of an operator interface panel from your application.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-8 © National Instruments Corporation How Do Y ou Start or Stop the BridgeVIEW Engine from Y our Application? Use the Engine Launch VI to launch the BridgeVIEW Engine programmatically with a specified configuration file.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-9 BridgeVIEW User Manual T ag Attributes VIs There is a set of VIs in the Tag Attributes palette with which you can read or change configuration information about tags programmatically.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-10 © National Instruments Corporation When you change programmatic attrib utes with the T ag Configuration Editor , you can update Engine processes without shutting down and restarting the Engine, provided no changes require the Engine to reconfigure.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-11 BridgeVIEW User Manual 4. Run the VI. Because the Product tag is configured to go into HI alarm when it exceeds a v alue of 800, you can see that the tank color is blue while the tag value is belo w 800.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-12 © National Instruments Corporation 8. Sav e the VI as Change Alarm Limit.vi in the BridgeVIEWActivity director y . 9. Run this VI. This dynamically changes th e HI limit for the Product tag from 800 to 500.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-13 BridgeVIEW User Manual BridgeVIEW Security BridgeVIEW security is broken into two general categories: • En vironment Security (User Pri vileges) • Operator Interface Security Security does not take effect until you conf igure it.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-14 © National Instruments Corporation A user’ s BridgeVIEW Environment pri vile ges are completely independent of the user’ s access lev el, and do not directly af fect access to objects in the operator interfaces that you de velop for your application.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-15 BridgeVIEW User Manual How Do Y ou Log In and Out? To log in, choose Project»Security»Login . Type in your account name and password. If you do not know your login name, or have forgotten your password, contact your BridgeVIEW administrator.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-16 © National Instruments Corporation Figure 7-3. Priv ileges Dialog Bo x For more information about BridgeVIEW user privileges, refer to Ta b l e 7 - 1 . How Do Y ou Change Y our Password? You must be logged in to change your password.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-17 BridgeVIEW User Manual information about this or any other VI, refer to Appendix A, HMI Function Reference . How Do Y ou Programmatically Log an Operator In to Y our Application? Use the Programmatic Login VI in the System»Security palette.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-18 © National Instruments Corporation choose Project»Security»Edit User Accounts… , and the Edit User Accounts dialog box appears, as shown in Figure 7-4. Figure 7-4. Edit User Accounts Dialog Box Click the Add New Users>> button to create a ne w user account.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-19 BridgeVIEW User Manual example, change the access le vel of se veral accounts to be the same v alue), hold do wn the <Shift> ke y when selecting users from the list.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-20 © National Instruments Corporation file is that all user account information, including passw ords, is included in the file.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-21 BridgeVIEW User Manual For e xample, a user named user , having acce ss lev el 100 and privile ges to use the T ag Monit.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-22 © National Instruments Corporation If you choose File»Import»Network BridgeVIEW , a dialog box appears in which you can type in the name of the computer to import the accounts from, or you can bro wse the network.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-23 BridgeVIEW User Manual How Do Y ou Limit User Access to HMI Objects? You can use security information to control visibility attributes on HMI objects. There is a set of security VIs you can use to implement security in your HMI, found in the System»Security palette.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-24 © National Instruments Corporation the security loop. This ensures that the security loop terminates when the Engine shuts do wn.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-25 BridgeVIEW User Manual 3. After creating the two accounts, select << Done Adding Users . Click the OK button. 4. Unless you were previously logged in, a Login dialog box appears.
Chapter 7 Advanced Application T opics BridgeVIEW User Manual 7-26 © National Instruments Corporation e. W ire the “Disabled” attribute v alue outpu t of th e VI to the Attrib ute Node. f. In vert the sh utdown output of the VI and wi re it to th e continuation te rminal of the While Loop.
Chapter 7 Advanced Application T opics © National Instruments Corporation 7-27 BridgeVIEW User Manual 8. Log in as Anyone with Password Viewer by selecting Project»Security»Login . 9. The Acknowledge button is no w disabled. This is because operability access is gi ven to users with Le vel 50 or abov e in BridgeVIEW .
© National Instruments Corporation 8-1 BridgeVIEW User Manual 8 Ser vers This chapter explains how to use servers with BridgeVIEW. BridgeVIEW supports several types of servers including OPC Servers, DDE Servers, and National Instruments Standard IA Device Servers.
Chapter 8 Servers BridgeVIEW User Manual 8-2 © National Instruments Corporation The device serv ers also handle and report communications and device errors to BridgeVIEW . There are different serv ers available for dif ferent device f amilies and commu nication networks.
Chapter 8 Servers © National Instruments Corporation 8-3 BridgeVIEW User Manual When you register a de vice server , its name appears in the list of servers sho wn in the v arious Edit T ag screens of the T ag Configuration Editor . Once you configure your server , you can create a BridgeVIEW Configuration using that server .
Chapter 8 Servers BridgeVIEW User Manual 8-4 © National Instruments Corporation All Channels created with the NI-D A Q Channel W izard appear as items when the D A Q OPC Server is selected in BridgeVIEW .
Chapter 8 Servers © National Instruments Corporation 8-5 BridgeVIEW User Manual Browser utility. Y ou can remove these servers from the server list by selecting the Unregister Ser ver optio n in th e Server Bro wser ut ilit y .
Chapter 8 Servers BridgeVIEW User Manual 8-6 © National Instruments Corporation Figure 8-1. Ser ver Browser When an OPC server is selected in the Serv ers list, you can press the View Server Information… button to br ing up the V ie w Serv er Information for OPC Servers dialog box, as sho wn in Figure 8-2.
Chapter 8 Servers © National Instruments Corporation 8-7 BridgeVIEW User Manual This dialog box displays general information about the OPC Server as read from your local system re gistry .
Chapter 8 Servers BridgeVIEW User Manual 8-8 © National Instruments Corporation to use the server on another machine from your machine, use the netw ork tree control to open the machine, and select one of the OPC servers shown on that machine and press the Add Server>> button.
Chapter 8 Servers © National Instruments Corporation 8-9 BridgeVIEW User Manual How Do Y ou Use DDE Ser vers with BridgeVIEW? BridgeVIEW can communicate with any server using Microsoft Dynamic Data Exchange (DDE) as its interface. A DDE Server is treated as a simple server in which you type in a device and item string to select a specific point.
Chapter 8 Servers BridgeVIEW User Manual 8-10 © National Instruments Corporation Use the Server Bro wser to unregister a device serv er th at you no longer want to use (BridgeVIEW de vice servers only). This keeps the server and related information from appearing in the Edit T ag screens.
Chapter 8 Servers © National Instruments Corporation 8-11 BridgeVIEW User Manual Note Unregistering a server means that BridgeVIEW can no longer access that server , and any tag configured to use that server no longer has a valid configuration.
Chapter 8 Servers BridgeVIEW User Manual 8-12 © National Instruments Corporation How Do Y ou Develop an IA Device Ser ver? You can write an IA Device Server as a BridgeVIEW VI. Several of the example simulation servers installed with BridgeVIEW are VI-based servers.
Part II G T utorial This section contain s information ab out the functionality of G that you need to get started with most BridgeVIEW applications. Par t I I , G Tutorial , contains the following chapters.
© National Instruments Corporation 9-1 BridgeVIEW User Manual 9 Creating VIs This chapter introduces the basic concepts of virtual instruments and provides activities that explain the following: • .
Chapter 9 Creating VIs BridgeVIEW User Manual 9-2 © National Instruments Corporation using a VI library . For a list of the adv a ntages and disad vantages of using VI libraries and indi vidual files, see the section Saving VIs in Chapter 2, Editing VIs , of the G Programm ing Reference Manual .
Chapter 9 Creating VIs © National Instruments Corporation 9-3 BridgeVIEW User Manual Y ou can create an indicator and wire it to an output terminal by popping up on the terminal and selecting Create Indicator .
Chapter 9 Creating VIs BridgeVIEW User Manual 9-4 © National Instruments Corporation floating-point numbers, green wires carry Booleans, and pink wires carry strings. For more information about wire styles and colors, see the G Programming Quick Reference Card .
Chapter 9 Creating VIs © National Instruments Corporation 9-5 BridgeVIEW User Manual Note When you place the W iring tool over a node, G displays wire stubs that indicate each input and output. The wire stub has a dot at its end if it is an input to the node.
Chapter 9 Creating VIs BridgeVIEW User Manual 9-6 © National Instruments Corporation Bad Wires A dashed wire represents a bad wire. You can get a bad wire for a number of reasons, such as connecting .
Chapter 9 Creating VIs © National Instruments Corporation 9-7 BridgeVIEW User Manual Activity 9-1. Create a VI Y our objective is to b uild a VI. Imagine that you ha ve sensors that read temperature and vo lume readings as voltage. Y ou will use a VI in the BridgeVIEWActivity directory to simulate the temperature and volume measurements in volts.
Chapter 9 Creating VIs BridgeVIEW User Manual 9-8 © National Instruments Corporation 7. Open the block diagram by choosing Windows»Show Diagram . Select the objects listed belo w from the Functions palette and place them on the block diagram.
Chapter 9 Creating VIs © National Instruments Corporation 9-9 BridgeVIEW User Manual 10. Using the W iring tool, wire the objects as shown. Note T o move objects around on the block diagram, clic k on the P ositioning tool in the T ools palette. 11. Select File»Save and sav e the VI as Temp & Vol.
Chapter 9 Creating VIs BridgeVIEW User Manual 9-10 © National Instruments Corporation The following illustration is an example pop-up menu that appears while you are running a VI. Y ou cannot add to or change the description while running the VI, but you can vie w any previously entered information.
Chapter 9 Creating VIs © National Instruments Corporation 9-11 BridgeVIEW User Manual 3. Pop up on the tank and choose Data Operations»Description… . T ype the descriptio n for the ind icator , as shown in the following illustration, and click OK .
Chapter 9 Creating VIs BridgeVIEW User Manual 9-12 © National Instruments Corporation 4. Pop up on th e thermometer and choose Data Operations» Description… . T ype in the description: Displays simulated temperature (deg F) measurement . Click on OK .
Chapter 9 Creating VIs © National Instruments Corporation 9-13 BridgeVIEW User Manual Y ou can use buttons on the Hierarchy windo w toolbar or th e Vi e w menu , or pop up on an empty space in the windo w to access the following options.
Chapter 9 Creating VIs BridgeVIEW User Manual 9-14 © National Instruments Corporation can pop up on a VI or subVI node to access a menu with options, such as showing or hiding subVIs, opening the VI or subVI front panel, editing the VI icon, and so on.
Chapter 9 Creating VIs © National Instruments Corporation 9-15 BridgeVIEW User Manual The tools to the left of the editing area perform the following functions: Pencil tool —Draws and erases p ixel by pixel. Line tool —Draws straight lines. Press <Shift> and then drag this tool to draw horizontal, v ertical, and diagonal lines.
Chapter 9 Creating VIs BridgeVIEW User Manual 9-16 © National Instruments Corporation The buttons at the right of the editing screen perform the following functions: • Undo — Cancels the last operation you performed. • OK — Saves your dra wing as the VI icon and return s to the front panel.
Chapter 9 Creating VIs © National Instruments Corporation 9-17 BridgeVIEW User Manual The icon of a VI represents it as a subVI in th e block diagram of other VIs. It can be a pictorial representation of the purpose of the VI, or a te xtual description of the VI.
Chapter 9 Creating VIs BridgeVIEW User Manual 9-18 © National Instruments Corporation 8. Pop up on the connector pane and select Rotate 90 Degrees . Notice how the connector pane changes, as shown at left. 9. Assign the termin als to T emp and V olume.
Chapter 9 Creating VIs © National Instruments Corporation 9-19 BridgeVIEW User Manual Opening, Operating, and Changing SubVIs You can open a VI used as a subVI from the block diagram of the calling VI by double-clicking on the subVI icon or by selecting Project»This VI’s SubVIs .
Chapter 9 Creating VIs BridgeVIEW User Manual 9-20 © National Instruments Corporation Block Diagram 5. Go to the block diagram by selecting Windows»Show Diagram . 6. Pop up in a free area of the block diagram and choose Functions»Select a VI… . A dialog box appears.
Chapter 9 Creatin g VIs © National Instruments Corporation 9-21 Bridge VIEW User Manual How Do Y ou Debug a VI? A VI cannot compile or run if it is broken. Normally, the VI is broken while you are creating or editing it, until you wire all the icons in the diagram.
Chapter 9 Creating VIs BridgeVIEW User Manual 9-22 © National Instruments Corporation Activity 9-5. Debug a VI in BridgeVIEW Y our objective is to use the probe tool and the probe windo w and to examine data flow in the block diagram using the execution highlighting featu re .
Chapter 9 Creating VIs © National Instruments Corporation 9-23 BridgeVIEW User Manual 6. Close the Probe windo w by clicking in the close box at the top of the Probe window title bar . Another useful debugging technique is to examine the flow of data in the block diagram using the ex ecu tio n highlighting feature.
© National Instruments Corporation 10-1 Bridge VIEW User Manual 10 Customizing VIs This chapter introduces the basic concepts used for customizing VIs. There are se veral ways to configure ho w your VIs execute. Y ou access these options by popping up on the icon pane in the upper-right corner of the front panel and choosing VI Setup… .
Chapter 10 Customizing VIs BridgeVIEW User Manual 10-2 © National Instruments Corporation calling VI), and choosing SubVI Node Set up… . The following ill ustration shows the SubV I Node Setup d ialog box. Note If you select an option from the VI Setup … dialog box of a VI, the option applies to every instance of that VI.
Chapter 10 Customizing VIs © National Instruments Corporation 10-3 BridgeVIEW User Manual Block Diagram 2. Build the block diagram shown in the following illustration. 3. Create the icon for the VI as sho wn at left. T o access the Icon Editor , pop up on the icon pane of the front panel and select Ed it Icon .
Chapter 10 Customizing VIs BridgeVIEW User Manual 10-4 © National Instruments Corporation the icon, as shown in the follo wing illustration. After creating the connector , return to the icon display . 6. Save the VI as Get Operator Info.vi in the Bridg eVIEW Activity directory.
Chapter 10 Customizing VIs © National Instruments Corporation 10-5 BridgeVIEW User Manual b . Select Window Options and make the selection s shown in the following illustration. 8. After you finish with the VI Setup options, resize the front panel as shown in the following illustration so you do not see the three string indicators.
Chapter 10 Customizing VIs BridgeVIEW User Manual 10-6 © National Instruments Corporation Front Panel 10. Open a new front panel. 11. Place a W av eform Chart ( Controls»Graph ) on the front panel and label it Temperature Data . 12. Modify the scale of the chart, so that its upper limit is set to 90.
Chapter 10 Customizing VIs © National Instruments Corporation 10-7 BridgeVIEW User Manual Block Diagram 14. Create a Sequence structure and add the following to frame 0, as sho wn in the following illustration. Get Date/T ime String function ( Functions»Time & Dialog )—Outputs the curren t date and time.
Chapter 10 Customizing VIs BridgeVIEW User Manual 10-8 © National Instruments Corporation 17. Add the objects sho w n in the fo llowing illustration. T emp & V ol VI ( Function s»Select a VI … from the BridgeVIEW Activity directory)—Returns one temperature measurement from a simulated tem pe rature sensor .
© National Instruments Corporation 11-1 BridgeVIEW User Manual 11 Loops and Charts This chapter introduces structures and explains the basic concepts of charts, the While Loop, and the For Loop.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-2 © National Instruments Corporation Charts A chart is a numeric plotti ng in dicator which is updated with ne w da ta periodically. You can find two types of charts in the Controls»Graph palette: waveform chart (or real-time trend) and intensity chart.
Chapter 11 Loops and Charts © National Instruments Corporation 11-3 Bridge VIEW User Manual Faster Chart Updates You can pass an array of multiple values to the chart. The chart treats these inputs as new data for a single plot. Refer to the charts.vi example located in G ExamplesGeneralGraphsch arts.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-4 © National Instruments Corporation While Loops A While Loop is a structure that repeats a section of code until a condition is met. It is comparable to a Do Loop or a Repeat-Until Loop in traditional programming language.
Chapter 11 Loops and Charts © National Instruments Corporation 11-5 Bridge VIEW User Manual Front Panel 1. Open a new front panel by selecting File»New . 2. Place a V ertical Switch ( Controls»Boolean ) on the front panel. Label the switch Enable .
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-6 © National Instruments Corporation 8. Rescale the knob . Usin g the Labeling tool, double-click on 10.0 in the scale around the knob, and replace it with 2.0 . Block Diagram 9. Open the block diagram and create the diagram in the following illustration.
Chapter 11 Loops and Charts © National Instruments Corporation 11-7 Bridge VIEW User Manual 13. Stop the VI by clicking on the v ertical switch. Turning the switch of f sends the value F ALSE to the loop conditional terminal and stop s the loop. 14. Scroll through the chart.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-8 © National Instruments Corporation a check mark in a dialog box; it becomes highlighted bu t does not change until you release the mouse button. Switch Until Released action —Changes the control v alue when you click on the control.
Chapter 11 Loops and Charts © National Instruments Corporation 11-9 Bridge VIEW User Manual b . Pop up on the switch and choose Data Operations»Make Current Value Default . This makes the ON position the default va lu e . c. Pop up on the switch and choose M echanical Action»Latch When Pressed .
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-10 © National Instruments Corporation W ait Until Next ms Multiple fun ction ( Functions»Time & Dialog )— Multiply the knob terminal by 1,000 to con vert the knob value in seconds to milliseconds.
Chapter 11 Loops and Charts © National Instruments Corporation 11-11 Br idgeVIEW User Manual The subdiagram for the T R UE condition contains the w ork of the W hile Loop.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-12 © National Instruments Corporation The shift register contains a pair of terminals directly opposite each other on the vertical sides of the loop border . The right terminal stores the data upon the completion of an iteration.
Chapter 11 Loops and Charts © National Instruments Corporation 11-13 BridgeVIEW User Manual For example, if a shift re gister contains three elements in the left terminal, you can access v alues from the last three iterations, as sho wn in the following illustration.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-14 © National Instruments Corporation 3. After adding the vertical switch, pop up on it and select Mechanical Action»Latch When Pressed and set the ON state to be the default b y choosing Operate»Make Current Values Default .
Chapter 11 Loops and Charts © National Instruments Corporation 11-15 BridgeVIEW User Manual W ait Until Next ms Multiple fun ction ( Functions»Time & Dialog ) —This function ensures that each iteration of the loop occurs no faster than the millisecond input.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-16 © National Instruments Corporation Each time the VI is called, running average is computed from the ne w input and the previous three v alues. Then the new v alue is sa ved into the shift register , and the pre vious two v alues are moved up in the shift register .
Chapter 11 Loops and Charts © National Instruments Corporation 11-17 BridgeVIEW User Manual Activity 11-6. Create a Multiplot Chart and Customize Y our T rends Y our objective is to create a c h art that can accommodate more than one plot. Front Panel 1.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-18 © National Instruments Corporation Block Diagram 3. Modify the block diagram, as sho wn in the following illustration, to display both the average and the current random number on the same chart.
Chapter 11 Loops and Charts © National Instruments Corporation 11-19 BridgeVIEW User Manual buttons to e xplore their operation, scroll the area displayed, or zoom in on areas of the chart. 7. Format the scales of the wa veform chart to represent either absolute or relati v e time.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-20 © National Instruments Corporation 9. Run the VI. 10. Sav e the VI as Multiple Random Plot.vi in the BridgeVIEW Activity directory . End of Activity 11-6. For Loops A For Loop executes a section of code a defined number of times.
Chapter 11 Loops and Charts © National Instruments Corporation 11-21 BridgeVIEW User Manual The For Loop e xecutes the diagram inside its border a predetermined number of t imes. The For Loop has two termin als, ex plained belo w . Count terminal (an input terminal) —The coun t term inal specifies the number of times to e xecute the loop.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-22 © National Instruments Corporation terminal. As a reminder , G places a gray dot, called a coer cion dot , on the terminal where the con version takes place. For e xample, consider the For Loop count terminal.
Chapter 11 Loops and Charts © National Instruments Corporation 11-23 BridgeVIEW User Manual a. Place a digital indicator on the front panel and label it Maximum Value . b . Place a wa veform chart on the front panel and label it Random Data . Change the scale of the chart to range from 0.
Chapter 11 Loops and Charts BridgeVIEW User Manual 11-24 © National Instruments Corporation run of the VI. Therefore, you could get a maximum output v alu e that is not related to the current set of collected data.
© National Instruments Corporation 12-1 BridgeVIEW User Manual 12 Case and Sequence Structures and the Formula Node This chapter introduces the basic concepts of Case and Sequence structures and the .
Chapter 12 Case and Sequence Structures and t he Formula Node BridgeVIEW User Manual 12-2 © National Instruments Corporation Case Structure The Case structure has two or more subdiagrams, or cases , exactly one of which executes when the structure executes.
Chapter 12 Case and Sequence Structures and t he Formula Node © National Instruments Corporation 12-3 Bridge VIEW User Manual Block Diagram 2. Build the diagram as shown in the following illustration. 3. Place a Case structure in the block diagram by selecting it from Functions»Structures .
Chapter 12 Case and Sequence Structures and t he Formula Node BridgeVIEW User Manual 12-4 © National Instruments Corporation One Button Dialog function ( Functions»Time & Dialog )— I n t h i s acti vity , the function displays a dialog b ox that contains the message Error.
Chapter 12 Case and Sequence Structures and t he Formula Node © National Instruments Corporation 12-5 Bridge VIEW User Manual Sequence Structures The Sequence structure, which looks like frames of film, executes block diagrams sequentially. In conventional programming languages, the program statements execute in the order in which they appear.
Chapter 12 Case and Sequence Structures and t he Formula Node BridgeVIEW User Manual 12-6 © National Instruments Corporation The Number to Match control contains the number you want to match. The Current Number indicator displays the current random number .
Chapter 12 Case and Sequence Structures and t he Formula Node © National Instruments Corporation 12-7 Bridge VIEW User Manual Setting the Data Range With the Data Range… option, you can prevent a user from setting a control or indicator value outside a preset range or increment.
Chapter 12 Case and Sequence Structures and t he Formula Node BridgeVIEW User Manual 12-8 © National Instruments Corporation.
Chapter 12 Case and Sequence Structures and t he Formula Node © National Instruments Corporation 12-9 Bridge VIEW User Manual Frame 0 in the pre vious illustration contains a small box with an arro w in it. That box is a sequence local v ariable which passes data between frames of a Sequence structure.
Chapter 12 Case and Sequence Structures and t he Formula Node BridgeVIEW User Manual 12-10 © National Instruments Corporation Round to Nearest function ( Functions»Numeric ) —In this activity , the function rounds the random number between 0 and 100 to th e nearest whole number .
Chapter 12 Case and Sequence Structures and t he Formula Node © National Instruments Corporation 12-11 BridgeVIEW User Manual Formula Node The Formula Node is a resizable box that you can use to enter formulas directly into a block diagram. You place the Formula Node on the block diagram by selecting it from Functions»Structures .
Chapter 12 Case and Sequence Structures and t he Formula Node BridgeVIEW User Manual 12-12 © National Instruments Corporation The following e xample shows ho w you can perform a conditional assignment inside a Formula Node. Consider a code fragment that computes the square root of x if x is positi ve, and assigns the result to y .
Chapter 12 Case and Sequence Structures and t he Formula Node © National Instruments Corporation 12-13 BridgeVIEW User Manual Activity 12-3. Use the Formula Node Y our objective is to b uild a VI that uses the F ormula Node to calculate the follo wing equations.
Chapter 12 Case and Sequence Structures and t he Formula Node BridgeVIEW User Manual 12-14 © National Instruments Corporation Block Diagram 3. Build the block diagram shown in the following illustration. Formula Node ( Functions»S t ructures ). W ith this node, you can enter formulas directly .
Chapter 12 Case and Sequence Structures and t he Formula Node © National Instruments Corporation 12-15 BridgeVIEW User Manual 5. Sav e the VI as Equations.vi in the BridgeVIEW/Activity directory . End of Activity 12-3. Artificial Data Dependency Nodes not connected by a wire can execute in any order.
© National Instruments Corporation 13-1 BridgeVIEW User Manual 13 Front Panel Object Attributes This chapter describes objects called attribute nodes, which are special block diagram nodes that control the appearance and functional characteristics of controls and indicators.
Chapter 13 Front Panel Object Attri butes BridgeVIEW User Manual 13-2 © National Instruments Corporation Because there are ma n y di f ferent attri b utes for front panel objects, you ca n use the Help wind o w to display the descriptions, data types, and acceptable v alues of attri b utes.
Chapter 13 Front Panel Object Attributes © National Instruments Corporation 13-3 Bridge VIEW User Manual Activity 13-1. Use an Attribute Node Y our objective is to create a VI that indicates a high limit condition using attribute nodes.
Chapter 13 Front Panel Object Attributes BridgeVIEW User Manual 13-4 © National Instruments Corporation Not functio n ( Functions»Boolean ) —In this exercise, the Not function in verts the value of the STOP button so that the While Loop execute s repeatedly until you click the STOP button.
© National Instruments Corporation 14-1 BridgeVIEW User Manual 14 Arrays, Clusters, and Graphs This chapter introduces the basic concepts of polymorphism, arrays, clusters, and graphs and provid es activities that explain auto-indexin g and the Graph and Analysis VIs.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-2 © National Instruments Corporation Note Y ou also can create an array and its corresponding control on the front panel and then copy or drag the array control to the block diagram to create a corresponding constant.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-3 Bridge VIEW User Manual By default, auto-indexing is disabled for ev ery array wired to a While Loop. Pop up on the array tunnel of a While Loop to enable auto-indexing. Activity 14-1.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-4 © National Instruments Corporation 3. Place a digital indicator from Controls»Numeric inside the element display of the array shell, as the follo wing illustration shows. This indicator displays the array contents.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-5 Bridge VIEW User Manual Bundle function ( Functions»Cluster ) —Assembles the plot components into a cluster . Y ou need to resize the Bundle function icon before you can wire it properly .
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-6 © National Instruments Corporation In the pre vious block diagram, you specified an initial X and a delta X value for the wa veform. The default initial X v alue is zero and the delta X v alue is 1.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-7 Bridge VIEW User Manual 15. Continue building your block diagram as shown in the preceding block diagram.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-8 © National Instruments Corporation Activity 14-2. Use Auto-Indexing on Input Arrays Y our objective is to open and operate a VI that uses auto - indexing in a F or Loop to process an array.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-9 Bridge VIEW User Manual Using Auto-Indexing to Set the For Loop Count Notice that the count terminal is left unwired.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-10 © National Instruments Corporation Build Array function ( Functions»Array ) —Y ou can use it to create an array from scalar v alues or from other arrays. Initially , the Build Array function appears with one scalar input.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-11 BridgeVIEW User Manual if element is a long integer with the value of fi ve and dimension size has a v al ue of 100, the result is a 1D array of 100 long integers all set to fi ve.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-12 © National Instruments Corporation Array Subset You can use this function to extract a portion of an array or matrix. Array Subset returns a portion of an array starting at index and containing length elements.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-13 BridgeVIEW User Manual Index Array The Index Array function accesses an element of an array. The following illustration shows an example of an Inde x Array fun ction accessing the third element of an array .
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-14 © National Instruments Corporation Notice that the index terminal symbol change s from a solid to an empty box when you disable indexing. T o restore a disabled index, use the Enable Indexing command from the same menu.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-15 BridgeVIEW User Manual Thus, you can interpret the lower left preceding e xample as a command to generate a 1D array of all elements at column 0 and ro w 3. Y ou can interpret the upper right example as a command to generate a 2D array of page 1.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-16 © National Instruments Corporation Block Diagram 7. Place a Build Array function ( Functions»Array ) on the block diagram. Expand it with the Positioning tool to have f ive inputs.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-17 BridgeVIEW User Manual What is Polymorphism? Polymorphism is the ability of a functi on to adjust to input data of different types, dimensions, or represen tations. Most G functions are polymorphic.
Chapter 14 Arrays, Clust ers, and Graphs BridgeVIEW User Manual 14-18 © National Instruments Corporation block diagram). In G, use the Bundle function to assemble a cluster. For more information about Clusters refer to Chapte r 14, Array and Cluster Controls and Indicators , in the G Programming Reference Manual .
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-19 BridgeVIEW User Manual Graph Cursors You can place cursors and a cursor display on all the graphs in G, and you can label the cursor on the plot. You can set a cursor to lock onto a plot, and you can move multiple cursors at the same time.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-20 © National Instruments Corporation Graph Axes You can format the scales of a graph to represent either absolute or relative time. Use absolute time format to display the time, date, or both for your scale.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-21 BridgeVIEW User Manual The T emperature wav eform chart displays the temperature as it is acquired. After acquisition, the VI plots the data in Temp Graph . The Mean , Max , and Min digital indicators display the av erage, maximum, and minimum temperatures.
Chapter 14 Arrays, Clusters, and Graphs BridgeVIEW User Manual 14-22 © National Instruments Corporation W ait Until Next ms Multiple fun ction ( Functions»Time & Dialog )— In this ex ercise, this function ensures the For Loop ex ecutes every 0.
Chapter 14 Arrays, Clusters, and Graphs © National Instruments Corporation 14-23 BridgeVIEW User Manual Intensity Plots BridgeVIEW has two methods for displaying 3D data: the intensity chart and the intensity graph. Both intensity plots accept 2D arrays of numbers, where each number is mapped to a color.
© National Instruments Corporation 15-1 BridgeVIEW User Manual 15 Application Control This chapter introduces the VI Server and provides an activity that explains how to use it within BridgeVIEW. The VI Server allows you to control when a VI is loaded into memory, run, and unloaded from memory.
Chapter 15 Application Control BridgeVIEW User Manual 15-2 © National Instruments Corporation What is the VI Server? The VI Server is a G programming mechanism that lets you programmatically control properties and the execution of VIs. You can use the VI Server to open, call, and close other VIs dynamically, and to manipulate VI properties.
Chapter 15 Application Control © National Instruments Corporation 15-3 Bridge VIEW User Manual the TR UE value is passed into a Case structure and each case contains the appropriate subVI, as shown in the pre vious illustration.
Chapter 15 Application Control BridgeVIEW User Manual 15-4 © National Instruments Corporation Activity 15-1. Use the VI Ser ver Y our objective is to b uild a to p-l evel VI that uses the VI Serv er to open, run, display , and close two other VIs. The top-level VI will load both subVIs dynamically .
Chapter 15 Application Control © National Instruments Corporation 15-5 Bridge VIEW User Manual 3. Sav e this VI as VI Control2.vi in the BridgeVIEWActivity directory . This VI will call the HMI#1 and HMI#2 VIs. Block Diagram 4. Build the block diagram of VI Control2.
Chapter 15 Application Control BridgeVIEW User Manual 15-6 © National Instruments Corporation The elements of the VI are described below . Open VI Reference ( Functions»Application Control )—Opens the two VIs dynamically and loads them into memo ry .
Chapter 15 Application Control © National Instruments Corporation 15-7 Bridge VIEW User Manual Not Function ( Fu nctions»Comparison )—The node in verts the Boolean state of the While Loop. 5. Sav e the VI. 6. Build the block diagram of HMI#1, as sho wn in the following illustration.
© National Instruments Corporation 16-1 BridgeVIEW User Manual 16 Program Design Now that you are familiar with many aspects of G prog ramming, you need to apply that knowledge to develop your own applications. This chapter suggests some techniques to use when creating programs and offers programming-style recommendations.
Chapter 16 Program Design BridgeVIEW User Manual 16-2 © National Instruments Corporation In some cases you might not need all these blocks or you might need different blocks. F or example, some applications might include mo nitoring only , thus, you would not need to write data to the Real-T ime Database.
Chapter 16 Program Design © National Instruments Corporation 16-3 Bridge VIEW User Manual Create the Program Now you are ready to create the program in G: • Use a modular approach by b uilding su bVIs where you find a logical division of labor or the potential for code reuse.
Chapter 16 Program Design BridgeVIEW User Manual 16-4 © National Instruments Corporation output that is used as the input to another subVI, try to align the input and output connections.
Chapter 16 Program Design © National Instruments Corporation 16-5 Bridge VIEW User Manual For e xample, examine the following diagram in which three similar operations run independently . An alternati ve to this design is a loop, which performs the operation three times.
Chapter 16 Program Design BridgeVIEW User Manual 16-6 © National Instruments Corporation The BridgeVIEW Engine handles system e vents and errors reported by device serv ers.
Chapter 16 Program Design © National Instruments Corporation 16-7 Bridge VIEW User Manual One of the main adv antag es in using the error input and output clusters is that you can use them to control the ex ecutio n order of dissimilar operations.
Chapter 16 Program Design BridgeVIEW User Manual 16-8 © National Instruments Corporation Notice that the preceding example still does not check for errors. For instance, if the file does not exist, the program does not display a warning. The following v ersion of the block diagram illustrates one tech niqu e for handling this problem.
© National Instruments Corporation A-1 BridgeVIEW User Manual A HMI Function Reference This appendix describes error handling for BridgeVIEW VIs and contains an explanation of the VIs in the BridgeVIEW VI lib rary .
Appendix A HMI Function R eference BridgeVIEW User Manual A-2 © National Instruments Corporation message. Using error in and error out clusters is a convenient way to check errors and to specify execution order by wiring the error output from one subVI to the error input of the next.
Appendix A HMI Function Reference © National Instruments Corporation A -3 Br idgeVIEW User Manual BridgeVIEW VI Librar y Many of the VIs in the BridgeVIEW VI Library are specific to BridgeVIEW , and are not part of the standard G library .
Appendix A HMI Function R eference BridgeVIEW User Manual A-4 © National Instruments Corporation Alarms and Events VIs Use the Alarms and Events VIs to ackno wledge alarms, display alarm summary or ev ent histo ry in formation , or obtain alarm summary status information.
Appendix A HMI Function Reference © National Instruments Corporation A -5 Br idgeVIEW User Manual Acknowledge Alarm Use the Acknowledge Alarm VI to acknowledge alarms on a tag or a gro up. Call this VI when an Acknowledge button is pressed in your HMI.
Appendix A HMI Function R eference BridgeVIEW User Manual A-6 © National Instruments Corporation Get Alarm Summar y Status Use the Get Alarm Summary Status VI to check the status of alarms in the BridgeVIEW system. You can call this VI multipl e times from y our HMI.
Appendix A HMI Function Reference © National Instruments Corporation A -7 Br idgeVIEW User Manual Read Alarm Summar y Use the Read Alarm Summary VI to display current alarm information for a set of tags or tag groups within a given alarm priority range.
Appendix A HMI Function R eference BridgeVIEW User Manual A-8 © National Instruments Corporation max priority is the maximum priority of alarms to read. If left unwired, alarms corresp onding to priority level 15 and below are reported. filter ACK alarms? determines whether acknowledged alarms are read.
Appendix A HMI Function Reference © National Instruments Corporation A -9 Br idgeVIEW User Manual Alarm Message determines whether to display the user-configured alarm message. This applies to discrete tags o nly. color codes is a cluster of parameters that determine the colors for the messages in the Alarm Summary Display.
Appendix A HMI Function R eference BridgeVIEW User Manual A-10 © National Instruments Corporation shutdown indicates that the BridgeVIEW Engine is shutting dow n. In this case, the Read Alarm Summary VI returns immediately with shutdown TRUE. You can use shutdown to exit any While Loop that calls Read Alarm Summary VI.
Appendix A HMI Function Reference © National Instruments Corporation A- 11 BridgeVIEW User Manual Read Event Histor y Use the Read Event History VI to display all the alarms and eve n ts that have occurred for a set of tags or tag groups within a given alarm priority range.
Appendix A HMI Function R eference BridgeVIEW User Manual A-12 © National Instruments Corporation max priority is the maximum priority of alarms read. If left unwired, alarms corresp onding to priority level 15 and below are reported. filter ACK alarms? determines whether acknowledged alarms are read.
Appendix A HMI Function Reference © National Instruments Corporation A- 13 BridgeVIEW User Manual Operator Name determines whether to display the operator name. Alarm Message determines whether to display the user-configured alarm message. This applies to discrete tags o nly.
Appendix A HMI Function R eference BridgeVIEW User Manual A-14 © National Instruments Corporation error indicates that an error occurred when executing the Read Event History VI. It was probably a problem with the group/tag name . shutdown indicates that the BridgeVIEW Engine is shutting dow n.
Appendix A HMI Function Reference © National Instruments Corporation A- 15 BridgeVIEW User Manual Read T ag Alarm Use the Read Tag Alarm VI to read detailed alarm status for a tag from the Real-Time Database. You probably want to use the Read Tag Alarm VI in the portion of your program where you monitor alarm information for specific tags.
Appendix A HMI Function R eference BridgeVIEW User Manual A-16 © National Instruments Corporation error indicates that an error occurred when executing Read Alarm Tag, or that the value returned by Read Tag Alarm is not valid. shutdown indicates that the BridgeVIEW Engine is shutting dow n.
Appendix A HMI Function Reference © National Instruments Corporation A- 17 BridgeVIEW User Manual Historical Data VIs Use the Historical Data VIs to obtain or read historical data about a tag, resample trend data, compute statistical data for a historical trend, or con vert historical trend data to a spreadsheet format.
Appendix A HMI Function R eference BridgeVIEW User Manual A-18 © National Instruments Corporation Call HTV Use the Call HTV VI to include the Historical Trend Viewer (HTV) in your HMI application programmatically. Wire no inputs to launch the HTV in its default state, or wire one or more inputs to override the defaults.
Appendix A HMI Function Reference © National Instruments Corporation A- 19 BridgeVIEW User Manual error in is a cluster that describes the error status before this VI executes. For more information about thi s control, see the section Errors Not Reported by the BridgeVIEW Engine in this appendix.
Appendix A HMI Function R eference BridgeVIEW User Manual A-20 © National Instruments Corporation Decimate Historical T rend Use the Decimate Historical Trend VI to take XY historica l trend data, and decimate (resample) it from the start timestamp to the stop timestamp .
Appendix A HMI Function Reference © National Instruments Corporation A- 21 BridgeVIEW User Manual Decimate Historical T rends Use the Decimate Historical Trends VI to decimate (resample) XY historical trend data over the time interval specified from start timestamp to stop timestamp .
Appendix A HMI Function R eference BridgeVIEW User Manual A-22 © National Instruments Corporation decimated trends is a list of decimated historical trends starting at first timestamp . Each trend value is time interval seconds apart. first timesta mp is the actual time associated with the first point in the decimated trend.
Appendix A HMI Function Reference © National Instruments Corporation A- 23 BridgeVIEW User Manual Get Historical T ag List Use the Get Historical Tag List VI to obtain the list of tags that have historical data available in the historical database. Citadel path in is the path to the directory containing the Citadel historical database.
Appendix A HMI Function R eference BridgeVIEW User Manual A-24 © National Instruments Corporation Get Historical T rend Info Use the Get Historical Trend Info VI to obtain the first and last timestamp available in the historical database for a given tag, and the type of the tag, whether analog or discrete.
Appendix A HMI Function Reference © National Instruments Corporation A- 25 BridgeVIEW User Manual Historical T rend Statistics Use the Historical Trend Statistics VI to compute statistical data for a historical trend. Statistics include minimum value, maximum value, average and standard deviations.
Appendix A HMI Function R eference BridgeVIEW User Manual A-26 © National Instruments Corporation The last point in the trend is not included in the standard deviation, because there is no known time interval associated with it. # stops is the number of transitions from log ging on to logging off in the trend.
Appendix A HMI Function Reference © National Instruments Corporation A- 27 BridgeVIEW User Manual Historical T rends to Spreadsheet Use the Historical Trends to Spreadsheet VI to converts a set of historical trends into the tab delimited string format, which spreadsheet programs can read.
Appendix A HMI Function R eference BridgeVIEW User Manual A-28 © National Instruments Corporation sample interval (1 sec) determines the time interval for each historical trend. If unwired, the data is sampled at one-second intervals. error in (no error) is a cluster that describes the error status before this VI executes.
Appendix A HMI Function Reference © National Instruments Corporation A- 29 BridgeVIEW User Manual Historical T rends to Spreadsheet File This VI stores the data from a set of historical trends into a spreadsheet file format. The columns created are date, time, tag1data, tag2data, and so on.
Appendix A HMI Function R eference BridgeVIEW User Manual A-30 © National Instruments Corporation time format (System d e fau lt ) determines whether a 12-hour (AM/PM) or 24-hour format is used. seconds format (1 sec) determines how many digits of precision are displayed for timestamps.
Appendix A HMI Function Reference © National Instruments Corporation A- 31 BridgeVIEW User Manual Read Historical T rend Use the Read Historical Trend VI to read the historical data for a given tag from user specified start and stop dates and times, up to the maximum number of points specified.
Appendix A HMI Function R eference BridgeVIEW User Manual A-32 © National Instruments Corporation historical trend is the tag trend data read from the historical database, starting at the date and time specified by start timestamp , and stopping at the date and time specified by stop timestamp or up to max points per trend , whichever is smaller.
Appendix A HMI Function Reference © National Instruments Corporation A- 33 BridgeVIEW User Manual Read Historical T rends Use the Read Historical Trends VI to read the historical data for a given set of tags from a user specified start and stop date and time, up to max points per trend .
Appendix A HMI Function R eference BridgeVIEW User Manual A-34 © National Instruments Corporation historical trends is the tag trend data read from th e historical datab ase, starting at the date and.
Appendix A HMI Function Reference © National Instruments Corporation A- 35 BridgeVIEW User Manual System VIs Use the System VIs to obtain information or monitor the access level of the current operator , to launch or shut do wn BridgeVIEW , or to enable or disable ev ent logging, historical data logging or printing.
Appendix A HMI Function R eference BridgeVIEW User Manual A-36 © National Instruments Corporation Enable Event Logging Use the Enable Event Logging VI to turn on or off logging of alarms and events for all tags in the system programmatically. Enable evt log (T) determines wheth e r to tu rn event logging on or off.
Appendix A HMI Function Reference © National Instruments Corporation A- 37 BridgeVIEW User Manual Enable Historical Data Logging Use the Enable Historical Data Logging VI to turn on or off data logging for all tags in the system programmatically. Enable hst logging (T) determines whether to turn historical data logging on or off.
Appendix A HMI Function R eference BridgeVIEW User Manual A-38 © National Instruments Corporation Enable Printing Use the Enable Printing VI to turn on or off printing of alarms and events for all tags in the system programmatically. Enable prin ting (T) determines whether to turn print ing on or off.
Appendix A HMI Function Reference © National Instruments Corporation A- 39 BridgeVIEW User Manual Engine Launch Use the Engine Launch VI to launch the BridgeVIEW Engine programmatically. Normally the BridgeVIEW Engine is launched automatically when you execute any of the VIs that access the Real-Time Database.
Appendix A HMI Function R eference BridgeVIEW User Manual A-40 © National Instruments Corporation Engine Shutdown Use the Engine Shutdown VI to shut down the BridgeVIEW Engine from your HMI. You must terminate your application immediately after calling this VI.
Appendix A HMI Function Reference © National Instruments Corporation A- 41 BridgeVIEW User Manual Get Engine Status Use this VI to query the BridgeVIEW engine status. The outputs indicate whether the engine is loaded, running, or shutting down, and which configuration file is being used.
Appendix A HMI Function R eference BridgeVIEW User Manual A-42 © National Instruments Corporation Get T ag Status Info Use the Get Tag Status Info VI to obtain status information associated with tags.
Appendix A HMI Function Reference © National Instruments Corporation A- 43 BridgeVIEW User Manual Post System Error or Event Use this VI to post an error or event me ssage from your HMI to the System Error/Event display on the Engine Manager. The message you post is logged to the system log file in the BridgeVIEWSyslog directory.
Appendix A HMI Function R eference BridgeVIEW User Manual A-44 © National Instruments Corporation T ag Status Handler Use the Tag Status Handler VI to obtain a description of the tag status, by break ing it down into warning or error conditions coming from BridgeVIEW as well as the device server.
Appendix A HMI Function Reference © National Instruments Corporation A- 45 BridgeVIEW User Manual returned by the device server. The part of the message describing the server error code comes from the input you specify in server error descriptions . It also contains information about the source of the error.
Appendix A HMI Function R eference BridgeVIEW User Manual A-46 © National Instruments Corporation Security VIs.
Appendix A HMI Function Reference © National Instruments Corporation A- 47 BridgeVIEW User Manual Check Operator Privileges Use this VI to check the current user’s privileges and produce a Boolean output indicating if the currently logged in user h as the privilege.
Appendix A HMI Function R eference BridgeVIEW User Manual A-48 © National Instruments Corporation Get Operator Name Use the Get Operator Name VI to obtain the current operator name, access level, and access level name. operator name is the login name of the current BridgeVIEW user.
Appendix A HMI Function Reference © National Instruments Corporation A- 49 BridgeVIEW User Manual Invoke Login Dialog Use the Invoke Login Dialog VI to launch the BridgeVIEW Login dialog box. If the user selects Cancel in the Login dialog box, the previous user remains active.
Appendix A HMI Function R eference BridgeVIEW User Manual A-50 © National Instruments Corporation Programmatic Login Use the Programmatic Login VI to programmatically log in a user. user name is the name of the user to be logged in to BridgeVIEW. user password is the password of the user to be logged in to BridgeVIEW.
Appendix A HMI Function Reference © National Instruments Corporation A- 51 BridgeVIEW User Manual Programmatic Logout Use this VI to log out the current user, so no operator is logged into the system. logout (T) determines if the current BridgeVIEW user should be logged out of the system.
Appendix A HMI Function R eference BridgeVIEW User Manual A-52 © National Instruments Corporation Security Monitor Use this VI to monitor the access level of the current BridgeVIEW operator. By default, this VI times out after one second, returning to the current operator access level.
Appendix A HMI Function Reference © National Instruments Corporation A- 53 BridgeVIEW User Manual User Account List Use this VI to generate a list of BridgeVIEW user accounts.
Appendix A HMI Function R eference BridgeVIEW User Manual A-54 © National Instruments Corporation Read T ag Use the Read Tag VI to read the latest value of a tag from the Real-Time Database. For immediate polling of the tag value, leave timeout ( secs) unwired.
Appendix A HMI Function Reference © National Instruments Corporation A- 55 BridgeVIEW User Manual value timestamp returns the timestamp for when the tag value was updated. error indicates that an error occurred when executing the Read Tag VI, or that the value output returned by Read Tag is not valid.
Appendix A HMI Function R eference BridgeVIEW User Manual A-56 © National Instruments Corporation Read T ag (bit array) Use the Read Tag (bit array) VI to read the latest value for a given bit array tag from the Real-Time Database. For immediate polling of the tag value, leave timeout (secs) un wired.
Appendix A HMI Function Reference © National Instruments Corporation A- 57 BridgeVIEW User Manual value is the latest bit array value of the bit array tag read from the Real-Time Database. value timestamp returns the timestamp for when the tag value was last updated.
Appendix A HMI Function R eference BridgeVIEW User Manual A-58 © National Instruments Corporation Read T ag (discrete) Use the Read Tag (discrete) VI to read the latest value for a given discrete (or Boolean) tag from the Real-Time Database. For immediate polling of the tag value, leave timeout (secs) unwired.
Appendix A HMI Function Reference © National Instruments Corporation A- 59 BridgeVIEW User Manual value is the latest value of the discrete tag read from the Real-Time Database. value timestamp returns the timestamp for when the tag value was last updated.
Appendix A HMI Function R eference BridgeVIEW User Manual A-60 © National Instruments Corporation Read T ag (string) Use the Read Tag (string) VI to read the latest value for the tag from the Real-Time Database.
Appendix A HMI Function Reference © National Instruments Corporation A- 61 BridgeVIEW User Manual value timestamp returns the timestamp for when the tag value was last updated. error indicates that an error occurred when executing the Read Tag (string) VI, or that the value output returned by Read Tag(string) is not valid.
Appendix A HMI Function R eference BridgeVIEW User Manual A-62 © National Instruments Corporation Tr e n d Ta g s Use the Trend Tags VI to set data for a real-time trend chart in your HMI. The Trend Tags VI supports analog, discrete, and bit array tags.
Appendix A HMI Function Reference © National Instruments Corporation A- 63 BridgeVIEW User Manual Write T ag Use the Write Tag VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags. The value also is sent to the server if it is an output or Input/Output tag.
Appendix A HMI Function R eference BridgeVIEW User Manual A-64 © National Instruments Corporation Write T ag (bit array) Use the Write Tag (bit array) VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags. The value also is sen t to the serv er if it is an output or Input/Output tag.
Appendix A HMI Function Reference © National Instruments Corporation A- 65 BridgeVIEW User Manual Write T ag (discrete) Use the Write Tag (discrete) VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags. The value also is sen t to the server if it is an output or Input/Output tag.
Appendix A HMI Function R eference BridgeVIEW User Manual A-66 © National Instruments Corporation Write T ag (string) Use the Write Tag (string) VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags. The value also is sen t to the serv er if it is an output or Input/Output tag.
Appendix A HMI Function Reference © National Instruments Corporation A- 67 BridgeVIEW User Manual Write T ag on Change Use the Write Tag on Change VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags. The value also is sen t to the server if it is an output or Input/Output tag.
Appendix A HMI Function R eference BridgeVIEW User Manual A-68 © National Instruments Corporation Write T ag on Change (bit array) Use the Write Tag on Change (bit array) VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags.
Appendix A HMI Function Reference © National Instruments Corporation A- 69 BridgeVIEW User Manual Write T ag on Change (discrete) Use the Write Tag on Change (discrete)VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags.
Appendix A HMI Function R eference BridgeVIEW User Manual A-70 © National Instruments Corporation Write T ag on Change (string) Use the Write Tag on Change (string) VI to update the Real-Time Database with a new value for memory, output, and Input/Output tags.
Appendix A HMI Function Reference © National Instruments Corporation A- 71 BridgeVIEW User Manual T ag Attributes VIs Use the T ag Attributes VIs to get and set tag conf iguration parameters currently used by the BridgeVIEW Engine for tag processing programmatically .
Appendix A HMI Function R eference BridgeVIEW User Manual A-72 © National Instruments Corporation Get Analog T ag Alarm Limit Use the Get Analog Tag Alarm Limit VI to obtain limit information for a single tag value alarm for an analog tag. Use the Alarm type input (HI_HI, HI, LO, LO_LO) to specify the desired alarm limit information.
Appendix A HMI Function Reference © National Instruments Corporation A- 73 BridgeVIEW User Manual Get Bit Array T ag Alarm Setting Use the Get Bit Array Tag Alarm Setting VI to obtain alarm setting informati on for bit array tags. tag name is the name of the tag about which you want to obtain information.
Appendix A HMI Function R eference BridgeVIEW User Manual A-74 © National Instruments Corporation Get Discrete T ag Alarm Setting Use the Get Discrete Tag Alarm Setting VI to obtain alarm setting information for discrete tags. tag name is the name of the tag about which you want to obtain information.
Appendix A HMI Function Reference © National Instruments Corporation A- 75 BridgeVIEW User Manual Get Group List Use the Get Group List VI to returns a list of all configured groups in the system. By default, this VI includes the <ALL> group in the list.
Appendix A HMI Function R eference BridgeVIEW User Manual A-76 © National Instruments Corporation Get T ag Alarm Enabled Use the Get Tag Alarm Enabled VI to indicate whether alarms are enabled for the tag. This VI also indicates whether alarms are acknowledged automatically when a tag previously in alarm returns to norm al.
Appendix A HMI Function Reference © National Instruments Corporation A- 77 BridgeVIEW User Manual Get T ag Attribute Use the Get Tag Attributes VI to obtain the value of a tag attribute. The tag attribute input provides a large list for selection. Each attribute is selected by specifying its numeric code.
Appendix A HMI Function R eference BridgeVIEW User Manual A-78 © National Instruments Corporation Get T ag Bad Status Alarm Info Use the Get Tag Bad Status Alarm Info VI to determine whethe r alarms are enabled for the tag. This VI also returns whether the bad status alarm is enabled, and its priority.
Appendix A HMI Function Reference © National Instruments Corporation A- 79 BridgeVIEW User Manual Get T ag Description Group Use the Get Tag Description Group VI to obtain a tag data type (analog, discrete, bit array, or string), description, and the group to which the tag belongs.
Appendix A HMI Function R eference BridgeVIEW User Manual A-80 © National Instruments Corporation Get T ag I/O Connection Info Use the Get Tag I/O Connection In fo VI to obtain information on h ow the tag is connected to a real-world I/O point.
Appendix A HMI Function Reference © National Instruments Corporation A- 81 BridgeVIEW User Manual Get T ag List Use the Get Tag List VI to return a list of all tags in a group. By default, group is <ALL> , so the VI returns all configured tags.
Appendix A HMI Function R eference BridgeVIEW User Manual A-82 © National Instruments Corporation Get T ag Logging Info Use the Get Tag Logging Info VI to determin e whether a tag is configured for logging historical data or alarms and events to disk.
Appendix A HMI Function Reference © National Instruments Corporation A- 83 BridgeVIEW User Manual Get T ag Range and Units Use the Get Tag Range and Units VI to obtain the engineering range for the tag in a cluster of Minimum , Maximum , and Increment .
Appendix A HMI Function R eference BridgeVIEW User Manual A-84 © National Instruments Corporation Set Multiple T ag Attributes Use the Set Multiple Tag Attributes VI to reconfigure several attributes for a list of tags or groups of tags programmatically.
Appendix A HMI Function Reference © National Instruments Corporation A- 85 BridgeVIEW User Manual Set T ag Attribute Use the Set Tag Attribute VI to reconfigure an attribute for a list of tags or groups of tags programmatically. You must have the Engine running for the change to take effect.
© National Instruments Corporation B-1 BridgeVIEW User Manual B Citadel and Open Database Connectivity This appendix describes the Citadel database and the Open Database Connectivity (ODBC) dri ver , and includes a table that lists data transform commands.
Appendix B Citadel and Open Databas e Connectivity BridgeVIEW User Manual B-2 © National Instruments Corporation 5. Choose the Citadel driv er and select Setup… . 6. Make changes as appropriate. Select the historical logging directo ry that was conf ig ured in your T ag Configuration ( *.
Appendix B Citadel and Open Database Connect ivity © National Instruments Corporation B-3 BridgeVIEW User Manual Note Some applications are not completely ODB C compliant. If you plan to use Microsoft Query , Microsoft Access or V isual Basic, ensure Maximum Column Name Length does not exceed 62 characters.
Appendix B Citadel and Open Databas e Connectivity BridgeVIEW User Manual B-4 © National Instruments Corporation How Do Y ou Access Citadel Data? The ODBC driv er presents Citadel data to other applications as a Thr eads table. The table contains a f ield or column for each da ta member logged to the Citadel database.
Appendix B Citadel and Open Database Connect ivity © National Instruments Corporation B-5 BridgeVIEW User Manual These data transforms allo w you to directly calculate and retrieve comple x information from the database such as av erages and standard deviations.
Appendix B Citadel and Open Databas e Connectivity BridgeVIEW User Manual B-6 © National Instruments Corporation Assume, for example, that you want to find out ho w many times a compressor motor started in December . Y ou also want to kno w its total runtime for the month.
Appendix B Citadel and Open Database Connect ivity © National Instruments Corporation B-7 BridgeVIEW User Manual • Retriev es an oven’ s temperature set point and value at 3:00 p.m. and shows the highest, lo west, and av erage temperatures between 2:00 p.
Appendix B Citadel and Open Databas e Connectivity BridgeVIEW User Manual B-8 © National Instruments Corporation Note If MS Query is unable to connect to a Citadel data source, you have not yet logged data to Citadel; or the Database path you specified in the ODBC Setup dialog box is incorrect.
Appendix B Citadel and Open Database Connect ivity © National Instruments Corporation B-9 BridgeVIEW User Manual T o view a data transform value, enter the func tion directly into a blank column. For example, to view the minimum value of Liquid , you would enter " min{Liquid}" .
Appendix B Citadel and Open Databas e Connectivity BridgeVIEW User Manual B-10 © National Instruments Corporation When you enter qualifying criteria v alues, be sure to use the syntax demonstrated in the where clauses of the SQL Examples found in this chapter .
Appendix B Citadel and Open Database Connect ivity © National Instruments Corporation B-11 Br idgeVIEW User Manual Using Microsoft Excel with Citadel Note The exact operation of Microsoft Excel might change from version to v ersion.
Appendix B Citadel and Open Databas e Connectivity BridgeVIEW User Manual B-12 © National Instruments Corporation Using Microsoft Access with Citadel The exact operation of Microsoft Access might change from v ersion to version.
Appendix B Citadel and Open Database Connect ivity © National Instruments Corporation B-13 Br idgeVIEW User Manual In the Import Objects dialog box, choose Threads . The ne w table attaches to your database. Now you can build queries in Access that e xtract data directly from the Citadel database.
Appendix B Citadel and Open Databas e Connectivity BridgeVIEW User Manual B-14 © National Instruments Corporation Using the Citadel ODBC Dri ver in V isual Basic is the same as using an y other ODBC dri ver . T o retriev e and vie w data, create a Data control and at least one text control.
© National Instruments Corporation C-1 BridgeVIEW User Manual C Customer Communication For your conv enience, this appendix contains forms to help you gather the information necessary to help us solve your technical problems and a form you can use to comment on the product documentation.
BridgeVIEW User Manual C-2 © National Instruments Corporation Fax-on-Demand Support Fax-on-Demand is a 24-hour information retrie val system containing a library of documents on a wide range of technical information. Y ou can access Fax-on-Demand from a touch-tone telephone at 512 418 1111.
T echnical Support Form Photocopy this form and update it each time you mak e changes to your software or hardware, and use the completed copy of this form as a reference for your current conf iguration.
BridgeVIEW Hardware and Software Configuration Form Record the settings and re visions of your hardware and software on the line to the right of each item. Complete a ne w cop y of this form each time you re vise your software or hardware conf iguration, and use this form as a reference for your current configuration.
Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our pro ducts. This information helps us pr o vide quality products to meet your needs.
© National Instruments Corporation G-1 BridgeVIEW User Manual Glossar y Pref ix Meanings V alue m- milli- 10 – 3 µ- micro- 10 – 6 n- nano- 10 – 9 A access lev el Numeric va lue between 0 and 255 that can be used to control access to your HMI. A CK (Acknowledge) The sequence action that indicates recognition of a ne w alarm.
Glossar y BridgeVIEW User Manual G-2 © National Instruments Corporation B bit array tag A multibit value representation of a connection to a real-world I/ O point or memory variable. In BridgeVIEW , this type of tag can be comprised of up to 32 discrete values.
Glossary © National Instruments Corporation G-3 BridgeVIEW User Manual cluster A set of ordered, unindexed data elements of any data type including numeric, Boolean, string, array , or cluster .
Glossar y BridgeVIEW User Manual G-4 © National Instruments Corporation dynamic attrib utes T ag attributes that do not require the BridgeVIEW Engine to be restarted when they are edited or reconf igured. Examples of dynamic attributes include enabling logging operations, alarm attributes, and some scaling attributes.
Glossary © National Instruments Corporation G-5 BridgeVIEW User Manual G G The graphical programming language used to develop BridgeVIEW applications.
Glossar y BridgeVIEW User Manual G-6 © National Instruments Corporation item A channel or variable in a real-w orld device that is monitored or controlled by a BridgeVIEW de vice server . L LabVIEW L aboratory V irtual Instrument Engineerin g W o rkbench.
Glossary © National Instruments Corporation G-7 BridgeVIEW User Manual operator The person who initiates and monitors the operation of a process. output tag A tag that sends v alues to a device serv er whenev er it is updated in the Real-T ime Database.
Glossar y BridgeVIEW User Manual G-8 © National Instruments Corporation R range The re gion between th e limits within which a quantity is measured, recei ved, or transmitted expressed b y stating the lower and upper range va lu e s. Real-T ime Database (R TDB) An in-memory snapshot of all tags in the system.
Glossary © National Instruments Corporation G-9 BridgeVIEW User Manual static attributes T ag attributes that re quire the BridgeVIEW Engine to be restarted if they are edited or reconfigured. Examples of static attributes are general attributes and I/O connection attributes, such as server, device, or item.
Glossar y BridgeVIEW User Manual G-10 © National Instruments Corporation T ag Monitor A utilit y to view the current v a lue of a tag, alon g wit h its st atus and alarm state.
Glossary © National Instruments Corporation G-11 BridgeVIEW User Manual W While Loop Post-iterativ e test loop structure that repeats a section of code until a condition is met. Comparable to a Do loop or a Repeat-Until loo p in con ventional programming languages wire Data path between nodes.
© National Instruments Corporation I- 1 BridgeVIEW User Manual Index A access lev els and privileges, 7-1 See also security . defaults (table), 7-13 fi nding access le vels, 7-15 finding en vironment.
Index BridgeVIEW User Manual I-2 © Nati onal Instruments Corporation array functions Array Size, 14-11 Array Subset, 14-12 Build Array , 14-9 Index Array , 14-13 Initialize Array , 14-10 using Build .
Index © National Instruments Corporation I- 3 BridgeVIEW User Manual Boolean switches changing mechanical action (acti vity), 11-8 possible choices for mechanical action, 11-7 Latch Until Released, 1.
Index BridgeVIEW User Manual I-4 © Nati onal Instruments Corporation Security VIs Check Operator Pri vileges, A-47 Get Operator Name, A-48 In voke Login Dialog, A-49 Programmatic Login, A-50 Programm.
Index © National Instruments Corporation I- 5 BridgeVIEW User Manual charts, 11-2 See also graphs. acti vity , 11-3 creating multiplot chart and cu stomizing trends (activity), 11-1 7 faster updates,.
Index BridgeVIEW User Manual I-6 © Nati onal Instruments Corporation discrete tags alarm configuration, 3-35 creating, 3-5 purpose and use, 3-10 Distribution ring, 2-3 Di vide function adding to subV.
Index © National Instruments Corporation I- 7 BridgeVIEW User Manual stopping and starting programmatically , 7-8 turning on at startup, 3-44 printing, 5-13 stopping and starting programmatically , 7.
Index BridgeVIEW User Manual I-8 © Nati onal Instruments Corporation Get Alarm Summary Status VI, A-6 Get Analog T ag Alarm Limit VI, A-72 Get Bit Array T ag Alarm Setting VI, A-73 Get Discrete T ag .
Index © National Instruments Corporation I- 9 BridgeVIEW User Manual Historical T rends to Spreadsheet File, A-29 list of VIs, 6 -4 locating, A-17 Read Historical T rend, A-31 Read Historical T rends.
Index BridgeVIEW User Manual I-10 © National Instruments Corporation initializing and shutting down multiple-loop appli cations, 4-28 polled programming, 4-27 HMI G W izard, 4-3 acti vity , 4-8 opera.
Index © National Instruments Corporation I-11 BridgeVIEW User Manual M Man Machine Interface. See Human Machine Interface. manual. See documentation. Max & Min function, 11-24 Mean VI, 14-22 memo.
Index BridgeVIEW User Manual I-12 © National Instruments Corporation operator interface panel controlling visibilit y , 7-7 Operator Interface Security , 7-22 controlling visibilit y attributes, 7-23.
Index © National Instruments Corporation I-13 BridgeVIEW User Manual Read T ag (string) VI, A-60 Read T ag Alarm VI, A -15 Real-T ime Database, 1-6, 1-9 See also BridgeVIEW Engine; tag configuration;.
Index BridgeVIEW User Manual I-14 © National Instruments Corporation incrementing and decrementing subdiagrams, 12-1 ov erview , 12 -5 purpose and use, 1-4 subdiagram display window , 12-1 Server Bro.
Index © National Instruments Corporation I-15 BridgeVIEW User Manual Stop button, 2-3 string constant, 12-4 string controls and indicators, 2-7 string tags alarm configuration, 3-36 creating, 3-5 pur.
Index BridgeVIEW User Manual I-16 © National Instruments Corporation Get T ag Range and Units, A-83 location of, 4-16 Set Multiple T ag Attributes, A-84 Set T ag Attrib ut e, A-85 tag attributes, 3-1, 3-11 acti vity , 7-10 alarm, 3-3 connection, 3-2 general, 3-2 operation, 3-2 reading or changing programmatically , 7-9 scaling, 3-2 static vs.
Index © National Instruments Corporation I-17 BridgeVIEW User Manual LO Limit, 3-32 LO Priority , 3-32 LO_LO Enabled, 3-32 LO_LO Limit, 3-32 LO_LO Priority , 3-32 T ag Last Modif ied, 3-33 connecting.
Index BridgeVIEW User Manual I-18 © National Instruments Corporation Engine paramet er conf i guration, 3-44 configurable memory allocation parameters (table), 3-45 ov erriding default settings, 3-44.
Index © National Instruments Corporation I-19 BridgeVIEW User Manual T emp&V ol VI, 1 0-8 terminals, adding to V Is, 9-3 Thermometer VI, 14-21 Threads table, B-4 tip strips, 9-4 T ools palette, 2-4 T rend T ags VI, A-62 trends See also Historical T rend V iewer (HTV).
Index BridgeVIEW User Manual I-20 © National Instruments Corporation front panel, 2-2 icon/connector , 2-3 opening and running (activity), 2-8 overv iew , 1 -3 purpose and use, 1-4, 9-1 subVI node se.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté National Instruments BridgeVIEW c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du National Instruments BridgeVIEW - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation National Instruments BridgeVIEW, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le National Instruments BridgeVIEW va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le National Instruments BridgeVIEW, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du National Instruments BridgeVIEW.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le National Instruments BridgeVIEW. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei National Instruments BridgeVIEW ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.