National Instruments BridgeVIEW User Manual Page 314

  • Download
  • Add to my manuals
  • Print
  • Page
    / 455
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 313
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. For example, some applications might include monitoring
only, thus, you would not need to write data to the Real-Time Database.
Alternatively, you might need additional blocks, such as blocks
representing user prompts. Your main objective is to divide your
programming task into high-level blocks that you can manage easily.
After you determine the high-level blocks you need, try to create a block
diagram that uses those high-level blocks. For each block, create a new
stub VI
(a nonfunctional prototype representing a future subVI). For this
stub VI, create an icon as well as a front panel that contains the necessary
inputs and outputs. You do not have to create a block diagram for this VI
yet. Instead, see if this stub VI is a necessary part of your top-level block
diagram.
After you assemble a group of stub VIs, try to understand, in general terms,
the function of each block and how each block provides the desired results.
Ask yourself whether any given block generates information that a
subsequent VI needs. If so, make certain that the sketch for your top-level
block diagram contains wires to pass the data between VIs.
Try to avoid using unnecessary global variables because they hide the data
dependency between VIs. Use memory tags only when you need this
information in the Engine for historical logging or alarms. As your system
gets larger, it becomes difficult to debug if you depend on global variables
and memory tags as your method for transferring information between VIs.
Operator
Panel
Terminate
Manage
State
Initialize
Read
Data
Process
Data
Write
Data
Page view 313
1 2 ... 309 310 311 312 313 314 315 316 317 318 319 ... 454 455

Comments to this Manuals

No comments