Exercise 4

Version 1

    Exercise 4 -

     

    Once you have viewed the video on writing VBA scripts in PI ProcessBook, please identify an existing display, to which you would like to add VBA scripts. Then do the following:

    • Pinpoint a functionality that is currently not in your display, but you would like to see. (Example: upon opening the display, have the zoom so that all objects are included)
    • Using the Object Explorer and VBA Language Reference, find the necessary VBA code elements including trigger events and actions.
    • Write your VBA script using the Visual Basic Editor.
    • Test your functionality!