1 / 10

CS320n –Visual Programming

CS320n –Visual Programming. Clusters and Images. What We Will Do Today. Look at clusters in LabVIEW and start working with images. Clusters. Arrays are used to hold many elements that are of the same data type A cluster is used to hold together data of different types

Télécharger la présentation

CS320n –Visual Programming

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. CS320n –Visual Programming Clusters and Images

  2. What We Will Do Today • Look at clusters in LabVIEW and start working with images Clusters and Images

  3. Clusters • Arrays are used to hold many elements that are of the same data type • A cluster is used to hold together data of different types • normally fewer elements than an array • but some of the elements may be arrays themselves Clusters and Images

  4. Cluster Example • Take a name and an age and put them together • Name = string • Age = int • The “Bundle” function is used to group together different elements into a cluster • number of input can vary • drag down on button of function to add more inputs Clusters and Images

  5. Creating a Cluster Bundle Function Clusters can be used to reduce the number of wires in a diagram. Like a high level view of data. Analogous to high level methods / functions in Alice. Clusters and Images

  6. Opening Images in LabVIEW • LabView provides a way to open image files • jpg, png, and bmp are image types • different ways of saving an image on a computer • Specify location of image with a path control Clusters and Images

  7. Picture functions • To open a picture in LabVIEW use a path control and wire to a Read JPEG File function • Note the output on the Read JPEG File function Clusters and Images

  8. Image is a Cluster • Lots of Data! indicates arrays Clusters and Images

  9. Looking at the Raw Image Data • Use an Unbundle function and an array indicator in the image cluster • right click on image output and select create -> indicator Unbundle Right click on this output terminal Clusters and Images

  10. Class work • Link on the class web page to an image of the UT tower • how many pixels in the picture? (Find answer using LabVIEW, not some other graphics program) Clusters and Images

More Related