Every week on Tuesday and Thursday we will be posting LabVIEW Snippets to show different LabVIEW functionality and ways to enhance your LabVIEW Programs. These snippets will range in basic LabVIEW tips and tricks, as well as more specific FRC LabVIEW functionality to enhance an example or help better utilize the different WPI Library functions. With each post feel free to discuss the functionality and how you see it being used for FRC or programming in general!
To add a VI Snippet to your block diagram, drag the image from file manager (such as Windows Explorer) or Internet Explorer onto a Block Diagram Window.
Figure 1- VI Snippets make sharing code easy
Generally dragging and dropping an image file onto your block diagram will add an image decoration to your block diagram. VI Snippets are special PNG images that have LabVIEW code in addition to the regular image data. When you drop a VI Snippet onto the block diagram you get the depicted code added to your VI.