3.23 operator to redefine the framework

plan

  • Redefining the operator architecture
    • Solve basic startup and shutdown problems
    • Think about some of the most basic issues of common solutions
      • As the operator turns on, what kind of thread synchronization method was used to shut down
      • Fine-grained message data structure of how the organization
    • Think about some problem-solving mode
      • The Actor message communication mode between
  • Implement the framework program
    • The basic relationship deal
    • Programming to excellent
    • Continue drawing has multiple levels of data flow diagrams, program structure diagram of the draw
    • After the unfinished program structure diagram, described LVAF basic information
      • Painting class diagram on it
  • More reasonable data structures and message structures communication data
    • Continue drawing, between the structural member and the receiving member relationship design system
    • Design of static inter-member communication mode (which message, what is the message structure)
  • Be achieved for design
    • Data modeling

Theoretical basis

  • Derived data flow diagram and FIG program structure
  • Distributed case

premise

  • So structure
  • Transfer between the trigger signal to the operator, do not transfer data as an entity, the entity data using a shared data
  • How do data modeling? LV how to share on it? How to share it across the network?
    • Why use a local database?
  • Charles take the relevant information!
  • Existing features voice operator and can not contain "natural language processing" feature

modify

  • Display the status of all of the robot are displayed Mapdisplayer the operator, all inputs are on the Operating Panel on, do not rub together

text

Mapping the data stream to program a configuration diagram of FIG.

. . . You need to write a lot of things

Establish LV project

  • Built class and operator
    • A combination of the names of all words, capitalized
    • Note create folders
    • Set the class inheritance
    • To set a block diagram of an image
  • Establish a core function of each operator
  • Occurred during the new class member function of the application reference is invalid error, you need to cover the bag, consider additional network operators and state operators package to uninstall and start again.
  • In the new class diagram when making
    • FIG class produced when, the LV class attribute access program "library", is understood to define friend, i.e. protected Method .
    • EA how to define a class diagram friend?
  • Look Handle Error.vi in the end how to use?

Programming process attempts to encapsulate all object-oriented function

Open stop operator test

  • Only to send standard root operator stops, two mid-level operator is closed?
    • Yes
    • Nested operator will "auto stop" is set to be automatically turned off
  • Can two continuous automatic stop?
    • Yes, but there is one condition: the middle can not have a cycle, if the middle loop, the root operator buttons can not control their ends, the middle can not end, although it is not the end of the middle, but the end of the operator is not affected.
  • Can I stop a message to the roots of all operators by the middle?
    • That can be stopped because the roots of the operator received a stop message, all operators have stopped, because no other operator cycle
  • The actual situation, every operator has a lot of cycling, how to end the cycle of it? In addition INOP loop end can use the button, the other buttons can not be used, it is recommended to use notifier, by passing notifier, triggering another operator core function of the event, off the end of the cycle.
  • Two recommended methods to stop
    • One is the operator's own core stop function is set for notification, a further stop own rotation, the core is stopped by a function call calling side
    • One is the calling side to the notifier set, in fact, is essentially the same and a method by the news, because the core function is to stop the "standard stop" message is triggered only by the library encapsulates it. Using this method, a calling side in order to stop the operator needs to send two messages, one message notifier, a stop message is a standard
    • Because we want an operator that he will extinguish themselves, so the first method, such a state became a stop operator
  • Why stop the current project so card?
    • Most probably the loop has a delay function.

plan

  • Start achieve some kind of operator and close to some operators in the man-machine interface, so you can delete and spontaneous expansion
    • That first open only two operators, all other manually open
    • Extended time which members can choose to start, what to name etc.
    • Cancel "Auto Stop"
  • Stop all operators to achieve, because of the abolition "Auto Stop" in the man-machine interface, so to progressively stop.
  • What if one operator error occurs only stop this one operator, instead of stopping the whole process, error handling issues
  • Using state operator library that implements operator of two states: "Run", "Stop itself"?
  • Performance issues

Parent class design

  •  

Guess you like

Origin www.cnblogs.com/lizhensheng/p/11241989.html