4.2 USB Blocks & File Read Example
Since the display cannot connect directly with a computer, a USB is used to transfer important files from the
computer to the display. Raptor™ has blocks that can handle these interactions while the application is running on
your display. While the following example is not created when the user creates a new model, the example can be
easily replicated.
Figure 4.2.a- Simple USB Read Application
Within the Open a File
triggered subsystem, the File Open block takes in a string with the path of the file the user
wishes to open (keeping in mind to include ‘disk_sda1/’, as it allows access to the USB). Within the Read a File
enabled subsystem, there is a File Read block that then reads a certain length of the file when the user enables the
subsystem with the DO_READ variable.
Figure 4.2.b- Raptor
™ Code for Simple USB Read Application
24