文档详情

labview数组和簇的应用教程.pdf

发布:2020-09-06约1.53万字共6页下载文档
文本预览下载声明
Document Type : Tutorial NI Supported : Yes Publish Date : Jul 2, 2008 Exercise: Arrays and Clusters Overview This exercise will go over how to create arrays and clusters. You will also learn about how to pass data to and from arrays and how to bundle and unbundle clusters. Goal Understand the basic behavior of arrays and clusters in the LabVIEW environment. Description This exercise consists of a series of tasks in which will walk you through how data is passed to and from arrays. Indexing arrays will be explored in detail. How to bundle data will be explained as well as how to unbundle information from clusters. Arrays Description You are given a VI and asked to enhance it for a variety of purposes. For each part of this exercise, begin with the Array Investigation.vi located at the bottom of this page. The front panel of this VI is shown in the figure below. The next figure shows the block diagram of this VI. This exercise is divided into parts. You are given the scenario for each part first. Refer to the end of this exercise for detailed implementation instructions for each part. Part 1: Iterate, Modify, and Graph Array Modify the Array Investigation VI so that after the array is created, the array is indexed into For Loops where you multiply each element of the array by 100 and coerce each element to the nearest whole number. Graph the resulting 2D array to an intensity graph. Part 2: Simplified Iterate, Modify, and Graph Array Modify the Array Investigation VI or the solution from Part 1 to accomplish the same goals without using the nested For Loops. Part 3: Create Subset Arrays Modify the Array Investigation VI so that the VI creates a new array that contains the contents of the third row, and another new array that contains the contents of the second column. Part 1: Implementation Modify the Array Investigation VI so that after the array is created, the array is indexed into For Loops wher
显示全部
相似文档