1 / 43

VPL Patterns – Loop Pattern using Notification

Beginner course teaching how to create loop patterns using notifications. Build diagrams and display loop indexes in VPL. Learn to use Min/Max numbers with loops. Includes adding data and variables, connecting activities, and executing results. Get hands-on practice with calculating and displaying Min/Max values.

dalep
Download Presentation

VPL Patterns – Loop Pattern using Notification

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VPL Patterns – Loop Pattern using Notification VPL Beginner Course – 05 Young Joon Kim http://www.helloapps.com

  2. Topics • Simple loop pattern using notification • Get Min/Max numberusing Loop Pattern

  3. Simple Loop Pattern using Notification

  4. Scenario for target sample • Build simple loop diagram • Display loop index Call “Activity” Notification of “Activity” Display Loop Index Loop Call “Activity”

  5. Simple loop pattern using notification • Add “Data” and “Variable” • Click “Variables” icon Click

  6. Simple loop pattern using notification • Add “loopIndex” variable (int)

  7. Simple loop pattern using notification • Initialize “loopIndex” with value “0”

  8. Simple loop pattern using notification • Add “Activity”

  9. Simple loop pattern using notification • Change the name of “Activity” Click

  10. Simple loop pattern using notification Double-click

  11. Simple loop pattern using notification • Connect input point and notification point

  12. Simple loop pattern using notification • Connected result

  13. Simple loop pattern using notification • Connect “Variable” and “Jump” • Copy & paste “Jump”

  14. Simple loop pattern using notification • Add “If” and “Calculate” activities • Copy & paste “Variable” activity • Connect the notification point of “Jump” and “If”

  15. Simple loop pattern using notification • Connect each activities

  16. Simple loop pattern using notification • Add “HelloApps (Util) ListBoxDialog” service • Copy & paste “Jump”

  17. Simple loop pattern using notification • Connect “Variable” and “ListBoxDialog” service

  18. Simple loop pattern using notification • Completed diagram

  19. Simple loop pattern using notification • Executed result

  20. Get Min/Max using Loop Pattern

  21. Scenario for target sample • Calculate Min/Max number from the array Input numbers Call “Activity” Notification of “Activity” Compare Min/Max Loop Call “Activity” If last item Display Min/Max

  22. Initialize variables

  23. Initialize variables • Add “Data” and “Variable” • Click “Variables” icon Click

  24. Initialize variables • Add variables as follows • maxValue (double), minValue (double) • arrayList (list of double) • loopIndex (int)

  25. Initialize variables • Add another two “Data” activities • Copy & paste “Variable” • Connect them as follows

  26. Input numbers

  27. Input numbers • Add “HelloApps (Util) ArrayInput” service • Add “Calculate” and “Variable” activities • Connect the notification point of “ArrayInput” and “Calculate”

  28. Input numbers • Select “NotifyArrayList” • Connect activities as follows

  29. Build Loop Pattern

  30. Build Loop Pattern • Add “Activity”

  31. Build Loop Pattern • Change name as “Jump” • Double-click “Jump” activity

  32. Build Loop Pattern • Connect the input point and the notification point

  33. Build Loop Pattern • Copy & paste two “Jump” activities

  34. Get Min/Max numbers

  35. Get Min/Max numbers • Add “If”, “Calculate”, and “Variable” activities as follows

  36. Get Min/Max numbers • Set “If” activities as follows

  37. Get Min/Max numbers • Set “Calculate” as follows • Connect “Calculate” and “Variable” activities

  38. Get Min/Max numbers • Add “Calculate” and “Variable” activity

  39. Get Min/Max numbers • Connect “Calculate” and “Variable”

  40. Get Min/Max numbers • Add “Display” diagram as follows

  41. Get Min/Max numbers • Completed diagram

  42. Get Min/Max numbers • Run diagram • Add numbers by clicking “Add” button

  43. Get Min/Max numbers • Click “Submit as List” as follows

More Related