2014 Sim Phonics Introduction to V 2014 Sim

  • Slides: 85
Download presentation
© 2014 Sim. Phonics Introduction to V+

© 2014 Sim. Phonics Introduction to V+

© 2014 Sim. Phonics Agenda • • Introductory V+ Introduction into V+ (Section 1)

© 2014 Sim. Phonics Agenda • • Introductory V+ Introduction into V+ (Section 1) V+ Exercise 1 (Section 2) Intermediate V+ (Section 3) V+ Exercise 2 (Section 4) Miscellaneous Devices (Section 5) Questions and Answers (Section 6) 3/11/2021 2

© 2014 Sim. Phonics Introductory V+ 3/11/2021 3

© 2014 Sim. Phonics Introductory V+ 3/11/2021 3

© 2014 Sim. Phonics Introduction to V+ • Form Basic Understanding of V+ •

© 2014 Sim. Phonics Introduction to V+ • Form Basic Understanding of V+ • Intermediate V+ • Advanced V+ 3/11/2021 4

© 2014 Sim. Phonics Why Was V+ Developed • • Ease of Concept Design

© 2014 Sim. Phonics Why Was V+ Developed • • Ease of Concept Design High Cost of Application Design Maximize Software Reuse Self Documenting 3/11/2021 5

© 2014 Sim. Phonics Generations of Programming Methods • 1 st Machine Code –

© 2014 Sim. Phonics Generations of Programming Methods • 1 st Machine Code – 01000101 • 2 nd Assembly Language – MOV al, bx • 3 rd High Level Language – a=a+b+s; 3/11/2021 6

© 2014 Sim. Phonics Generations of Programming Methods • 4 th OOP Programming –

© 2014 Sim. Phonics Generations of Programming Methods • 4 th OOP Programming – Class furniture; – Derived class chair; • Visual C++ – C++ is NOT a visual language 3/11/2021 7

© 2014 Sim. Phonics Generations of Programming Methods • 5 th Visual Language 3/11/2021

© 2014 Sim. Phonics Generations of Programming Methods • 5 th Visual Language 3/11/2021 8

© 2014 Sim. Phonics Various Types of Visual Languages • Data Flow • State

© 2014 Sim. Phonics Various Types of Visual Languages • Data Flow • State Transition • Object Oriented Nyquist – V+ is a data flow visual language 3/11/2021 9

© 2014 Sim. Phonics Traditional Software Lifecycle Requirement Analysis Not Necessary with V+ Design

© 2014 Sim. Phonics Traditional Software Lifecycle Requirement Analysis Not Necessary with V+ Design Implementation (Code) Test 3/11/2021 Final Product 10

© 2014 Sim. Phonics Software Design • Top Level – (Configuration) • Detailed –

© 2014 Sim. Phonics Software Design • Top Level – (Configuration) • Detailed – (V+ designs) 3/11/2021 11

© 2014 Sim. Phonics Software Top Level Design • • Analog In/Out Channels Wave

© 2014 Sim. Phonics Software Top Level Design • • Analog In/Out Channels Wave In/Out Channels Interfaces Configurations – Drivers – Execution rate – Networked audio 3/11/2021 12

© 2014 Sim. Phonics V+ is Similar to Schematic Diagrams • In fact, V+

© 2014 Sim. Phonics V+ is Similar to Schematic Diagrams • In fact, V+ is a schematic of the software architecture, execution order, etc. • V+ is self documenting since the worksheet is the source. 3/11/2021 13

© 2014 Sim. Phonics V+ is Not a Code Generator • V+ objects are

© 2014 Sim. Phonics V+ is Not a Code Generator • V+ objects are pre-compiled software modules that can be authored in any language supporting COM. • Currently, objects are authored by VPLus Corporation only. 3/11/2021 14

© 2014 Sim. Phonics Introduction into V+ (Section 1) 3/11/2021 15

© 2014 Sim. Phonics Introduction into V+ (Section 1) 3/11/2021 15

© 2014 Sim. Phonics Introduction to V+ • Windows XP (Service Pack 3) –

© 2014 Sim. Phonics Introduction to V+ • Windows XP (Service Pack 3) – Windows firewall turned off • 32 Bit Code • COM, COM+, and. NET Based 3/11/2021 16

© 2014 Sim. Phonics Introduction to V+ A visual program, called a design, is

© 2014 Sim. Phonics Introduction to V+ A visual program, called a design, is constructed of objects and ports connected via nets and placed on one or more worksheets. 3/11/2021 17

© 2014 Sim. Phonics V+ is a Data Flow Visual Language Data travels via

© 2014 Sim. Phonics V+ is a Data Flow Visual Language Data travels via nets from object outputs pins to object input pins. 3/11/2021 18

© 2014 Sim. Phonics Object Data Flow Inside objects, data flows from object input

© 2014 Sim. Phonics Object Data Flow Inside objects, data flows from object input pins to object output pins. 3/11/2021 19

© 2014 Sim. Phonics Object Execution Order Execution order is defined by the user

© 2014 Sim. Phonics Object Execution Order Execution order is defined by the user and defaults to an order of placement on the worksheet. 3/11/2021 20

© 2014 Sim. Phonics Objects • Objects Are Execution Units – – – Constructor

© 2014 Sim. Phonics Objects • Objects Are Execution Units – – – Constructor Pre Execute Post Execute Destructor • Design Must Have at Least Two Objects • Simple to Complex 3/11/2021 21

© 2014 Sim. Phonics Examples of V+ Objects 3/11/2021 22

© 2014 Sim. Phonics Examples of V+ Objects 3/11/2021 22

© 2014 Sim. Phonics Object Anatomy 3/11/2021 23

© 2014 Sim. Phonics Object Anatomy 3/11/2021 23

© 2014 Sim. Phonics Objects – Static Data • User Editable Initialized Constants •

© 2014 Sim. Phonics Objects – Static Data • User Editable Initialized Constants • Any Object May Contain Static Data • Standard Static Data Types – Float, string, table • Activated by Double-Click 3/11/2021 24

© 2014 Sim. Phonics Ports • Connections To/From the Outside • Ports are Grouped

© 2014 Sim. Phonics Ports • Connections To/From the Outside • Ports are Grouped into I/O Devices • I/O Devices are Grouped into Drivers 3/11/2021 25

© 2014 Sim. Phonics Ports PORT 0 PORT 1 I/O Driver I/O Devices PORT

© 2014 Sim. Phonics Ports PORT 0 PORT 1 I/O Driver I/O Devices PORT n Ports 3/11/2021 26

© 2014 Sim. Phonics V+ I/O Driver Example • I/O Driver – UDP/ IP

© 2014 Sim. Phonics V+ I/O Driver Example • I/O Driver – UDP/ IP Ethernet • Contains the Following Devices: – I/O Device – Input • Ports – Ports 1, 2, 3, 4, etc. 3/11/2021 27

© 2014 Sim. Phonics Port Anatomy 3/11/2021 28

© 2014 Sim. Phonics Port Anatomy 3/11/2021 28

© 2014 Sim. Phonics V+ I/O Drivers • V+ Shipped with Basic Drivers –

© 2014 Sim. Phonics V+ I/O Drivers • V+ Shipped with Basic Drivers – Configurable network socket – Ethernet UPD/IP – File mapping I/O device – Joystick input device • Windows Audio Mix 3/11/2021 29

© 2014 Sim. Phonics Nets • • Connects Object Pins Contains 32 -Bit Float

© 2014 Sim. Phonics Nets • • Connects Object Pins Contains 32 -Bit Float Data Output to Input Cannot “Short” Inputs 3/11/2021 30

© 2014 Sim. Phonics Nets Single Output to Multiple Inputs 3/11/2021 31

© 2014 Sim. Phonics Nets Single Output to Multiple Inputs 3/11/2021 31

© 2014 Sim. Phonics Nets 3/11/2021 32

© 2014 Sim. Phonics Nets 3/11/2021 32

© 2014 Sim. Phonics Nets 3/11/2021 33

© 2014 Sim. Phonics Nets 3/11/2021 33

© 2014 Sim. Phonics Nets 3/11/2021 34

© 2014 Sim. Phonics Nets 3/11/2021 34

© 2014 Sim. Phonics Worksheets 3/11/2021 35

© 2014 Sim. Phonics Worksheets 3/11/2021 35

© 2014 Sim. Phonics Worksheets Sharing data among worksheets is accomplished via worksheet connectors.

© 2014 Sim. Phonics Worksheets Sharing data among worksheets is accomplished via worksheet connectors. 3/11/2021 36

© 2014 Sim. Phonics The Simplest of Designs 3/11/2021 37

© 2014 Sim. Phonics The Simplest of Designs 3/11/2021 37

© 2014 Sim. Phonics A Simple Math Design 3/11/2021 38

© 2014 Sim. Phonics A Simple Math Design 3/11/2021 38

© 2014 Sim. Phonics Pythagorean Theorem (Distance Calculation) c = √a 2 + b

© 2014 Sim. Phonics Pythagorean Theorem (Distance Calculation) c = √a 2 + b 2 a b 3/11/2021 c 39

© 2014 Sim. Phonics V+ Classroom Exercise 1 (Section 2) 3/11/2021 40

© 2014 Sim. Phonics V+ Classroom Exercise 1 (Section 2) 3/11/2021 40

© 2014 Sim. Phonics Development and Run-time Systems Development System Run-time System 3/11/2021 41

© 2014 Sim. Phonics Development and Run-time Systems Development System Run-time System 3/11/2021 41

© 2014 Sim. Phonics Design Process 3/11/2021 42

© 2014 Sim. Phonics Design Process 3/11/2021 42

© 2014 Sim. Phonics File Types. • . DES - Design File Worksheet •

© 2014 Sim. Phonics File Types. • . DES - Design File Worksheet • . VPJ - Contains Multiple Worksheets • . VNE - Run-time Configuration and Executable 3/11/2021 43

© 2014 Sim. Phonics V+ Execution • V+ is a data flow language •

© 2014 Sim. Phonics V+ Execution • V+ is a data flow language • Frame based: Input ports, objects then output ports • Data flows from input (blue pins) to output (green pins) 3/11/2021 44

© 2014 Sim. Phonics V+ Execution Order Within a Frame Input Ports Output Ports

© 2014 Sim. Phonics V+ Execution Order Within a Frame Input Ports Output Ports n 1 2 3 Objects 1 Through n 3/11/2021 45

© 2014 Sim. Phonics Spare Time • Run-time Calculates Spare Time Per Frame •

© 2014 Sim. Phonics Spare Time • Run-time Calculates Spare Time Per Frame • Measured with Special High-Resolution Timer Accurate to System Clock Resolution 3/11/2021 46

© 2014 Sim. Phonics Spare Time 3/11/2021 47

© 2014 Sim. Phonics Spare Time 3/11/2021 47

© 2014 Sim. Phonics V+ Execution Rate 3/11/2021 48

© 2014 Sim. Phonics V+ Execution Rate 3/11/2021 48

© 2014 Sim. Phonics V+ Execution Rate • Default of 25 ms (40 Hz)

© 2014 Sim. Phonics V+ Execution Rate • Default of 25 ms (40 Hz) – From. 01 Hz – Up to 1, 000 Hz • Future systems… even faster 3/11/2021 49

© 2014 Sim. Phonics Development and Run-time Systems • Development System – Used to

© 2014 Sim. Phonics Development and Run-time Systems • Development System – Used to edit design – Not needed for final system – Costs more 3/11/2021 • Run-time System – – – Always required Provides object inventory I/O device configuration System configuration Execution 50

© 2014 Sim. Phonics Application Process Flow 1. Analyze Requirements 2. Define Interfaces 3.

© 2014 Sim. Phonics Application Process Flow 1. Analyze Requirements 2. Define Interfaces 3. Configure Platform (. vne file) 4. Create Worksheets (. des files) 5. Organize into Project (. vpj file) 6. Run and Debug System 7. Save in Platform (. vne file) 3/11/2021 51

© 2014 Sim. Phonics Intermediate V+ (Section 3) 3/11/2021 52

© 2014 Sim. Phonics Intermediate V+ (Section 3) 3/11/2021 52

© 2014 Sim. Phonics Why Separate Development and Run-time Systems? • • Editor is

© 2014 Sim. Phonics Why Separate Development and Run-time Systems? • • Editor is a Much Larger Application Not Needed for Execution Environment Editor Costs More Quantity Systems Can use Run-time System 3/11/2021 53

© 2014 Sim. Phonics Run-time System Configuration 3/11/2021 54

© 2014 Sim. Phonics Run-time System Configuration 3/11/2021 54

© 2014 Sim. Phonics Run-time System Configuration • • I/O Driver Configuration Execution Rate

© 2014 Sim. Phonics Run-time System Configuration • • I/O Driver Configuration Execution Rate Audio Device Order Networked Audio Configuration – (DIS and HLA) 3/11/2021 55

© 2014 Sim. Phonics I/O Driver Configuration 3/11/2021 56

© 2014 Sim. Phonics I/O Driver Configuration 3/11/2021 56

© 2014 Sim. Phonics I/O Driver Configuration • Most Drivers are Installed Separately •

© 2014 Sim. Phonics I/O Driver Configuration • Most Drivers are Installed Separately • Each Driver has Its Own Configuration User Interface 3/11/2021 57

© 2014 Sim. Phonics Configuration is Saved in. VNE File CONFIG . VNE File

© 2014 Sim. Phonics Configuration is Saved in. VNE File CONFIG . VNE File 3/11/2021 58

© 2014 Sim. Phonics V+ Development System 1. User Enters/Edits a Design 2. User

© 2014 Sim. Phonics V+ Development System 1. User Enters/Edits a Design 2. User Presses the Play Button 3. V+ Editor Checks for Visual Errors 4. Error Messages Printed to Editor Message Window 3/11/2021 59

© 2014 Sim. Phonics Open Pin Error 3/11/2021 60

© 2014 Sim. Phonics Open Pin Error 3/11/2021 60

© 2014 Sim. Phonics V+ Development System • Once All Errors Are Cleared: –

© 2014 Sim. Phonics V+ Development System • Once All Errors Are Cleared: – V+ submits design to the Run-time System • When the Design is Submitted, the Following Message Appears: – “Trying to Start Platform” 3/11/2021 61

© 2014 Sim. Phonics Design Time Object List (DTOL) • The Run-time System then

© 2014 Sim. Phonics Design Time Object List (DTOL) • The Run-time System then begins the process of trying to run the DTOL. 3/11/2021 62

© 2014 Sim. Phonics DTOL Submission DTOL 3/11/2021 63

© 2014 Sim. Phonics DTOL Submission DTOL 3/11/2021 63

© 2014 Sim. Phonics Run-time System 1. 2. 3. 4. Accepts DTOL From Editor

© 2014 Sim. Phonics Run-time System 1. 2. 3. 4. Accepts DTOL From Editor Verifies Objects Are In Inventory Verifies Ports Are In Inventory Tries To Start Objects and Devices 3/11/2021 64

© 2014 Sim. Phonics Run-time System Message Window Scrollable message area 3/11/2021 65

© 2014 Sim. Phonics Run-time System Message Window Scrollable message area 3/11/2021 65

© 2014 Sim. Phonics Run-time System Pre-Execute Phase • Each Device and Object May

© 2014 Sim. Phonics Run-time System Pre-Execute Phase • Each Device and Object May Halt Pre. Execution – Most will display an error in the message window. • Once All Objects and Devices Report They Can Start: – The DTOL is executed. 3/11/2021 66

© 2014 Sim. Phonics Run-time System Post-Execute Phase • Each Device and Object is

© 2014 Sim. Phonics Run-time System Post-Execute Phase • Each Device and Object is Asked to Stop During User Stop Commands • Once All Objects and Devices Report They Can Stop: – The DTOL execution is halted – Again, read your message window 3/11/2021 67

© 2014 Sim. Phonics . VNE File DTOL and Configuration • Configuration is always

© 2014 Sim. Phonics . VNE File DTOL and Configuration • Configuration is always saved with. VNE file. • DTOL is only saved if a successful execution has occurred. 3/11/2021 68

© 2014 Sim. Phonics Configuration is Saved in. VNE File CONFIG DTOL . VNE

© 2014 Sim. Phonics Configuration is Saved in. VNE File CONFIG DTOL . VNE File 3/11/2021 69

© 2014 Sim. Phonics . VNE File – Updating • Anytime the design or

© 2014 Sim. Phonics . VNE File – Updating • Anytime the design or configuration has changed, the. VNE file must be resaved. • The. VNE file is similar to an. EXE file in this sense. 3/11/2021 70

© 2014 Sim. Phonics . VNE Files – Auto-booting The. VNE File May Be

© 2014 Sim. Phonics . VNE Files – Auto-booting The. VNE File May Be Executed Directly: 1. Insert the. VNE file into the STARTUP folder for auto-loading the system at power-up. 2. Double-clicking the. VNE file will start the Run-time System and execute the design – provided that is present in the file. 3/11/2021 71

© 2014 Sim. Phonics V+ Classroom Exercise 2 (Section 4) 3/11/2021 72

© 2014 Sim. Phonics V+ Classroom Exercise 2 (Section 4) 3/11/2021 72

© 2014 Sim. Phonics Remote Control Applications • Two Types of Remote Controls: –

© 2014 Sim. Phonics Remote Control Applications • Two Types of Remote Controls: – User control of V+ via remote pc – Programmatic control via host • Useful for Tuning Sounds • Versatility of Different Configurations 3/11/2021 73

© 2014 Sim. Phonics User Control – Windows XP • Remote Desktop – Allows

© 2014 Sim. Phonics User Control – Windows XP • Remote Desktop – Allows complete desktop remote control • Over Internet, Networks, Etc. 3/11/2021 74

© 2014 Sim. Phonics Programmatic Remote Control 3/11/2021 75

© 2014 Sim. Phonics Programmatic Remote Control 3/11/2021 75

© 2014 Sim. Phonics Programmatic Remote Control • Host can start, stop and load

© 2014 Sim. Phonics Programmatic Remote Control • Host can start, stop and load designs. • Useful for automatic switching of V+ applications at run time by a host. – Via TCP/IP, Port 5068 3/11/2021 76

© 2014 Sim. Phonics Miscellaneous Devices (Section 5) 3/11/2021 77

© 2014 Sim. Phonics Miscellaneous Devices (Section 5) 3/11/2021 77

© 2014 Sim. Phonics Microsoft Flight Simulator I/O Device Read Virtually Any Data -

© 2014 Sim. Phonics Microsoft Flight Simulator I/O Device Read Virtually Any Data - From Game 3/11/2021 78

© 2014 Sim. Phonics WAGO – PROFIBUS Ethernet I/O Device • DIN Rail I/O

© 2014 Sim. Phonics WAGO – PROFIBUS Ethernet I/O Device • DIN Rail I/O Modules – Choice of Ethernet or PROFIBUS • Excellent Transport Delay – Distributed I/O 3/11/2021 79

© 2014 Sim. Phonics V+ the Tie That Binds Your Application 3/11/2021 ATIS, VMIC,

© 2014 Sim. Phonics V+ the Tie That Binds Your Application 3/11/2021 ATIS, VMIC, SCRAMNET, NATIONAL, etc… 80

© 2014 Sim. Phonics Questions and Answers (Section 6) 3/11/2021 81

© 2014 Sim. Phonics Questions and Answers (Section 6) 3/11/2021 81

© 2014 Sim. Phonics Q and A 1. Name the generations of programming paradigms.

© 2014 Sim. Phonics Q and A 1. Name the generations of programming paradigms. 2. Is V+ a code generator system? 3. What operating systems can host V+? 4. What type of visual language is V+? A. State Machine B. Object Oriented Nyquist C. Date Flow 3/11/2021 82

© 2014 Sim. Phonics Q and A 1. Data - contained in objects -

© 2014 Sim. Phonics Q and A 1. Data - contained in objects - only changeable by the developer, is called what? 2. What two types of pins can an object have in V+? 3. Objects that connect V+ data to the outside world, or to other software is called what? 4. Object pins are connected via what? 3/11/2021 83

© 2014 Sim. Phonics Closing Remarks In the beginning there were computers, and the

© 2014 Sim. Phonics Closing Remarks In the beginning there were computers, and the computer was programmed with ones and zeros. The programmer said, let us use text for these codes so that we can understand them better. So the assembler was created and the programmer was happy. Then the programmer said, let us program with words so that our programs are easier to understand. Hence, the compiler was born and the programmer smiled. Then the engineer said let us use this machine and program it with drawings of our ideas. Thus, V+ was born, the engineer rested, and the programmer went home. 3/11/2021 84

© 2014 Sim. Phonics Any Questions? 3/11/2021 85

© 2014 Sim. Phonics Any Questions? 3/11/2021 85