Data Structures in NI LabVIEW Homework Help
String Data Type
A string is a sequence of displayable or nondisplayable ASCII characters. Strings provide a platform-independent format for information and data. Common applications of strings include the following:
- Creating simple text messages.
- Controlling the instruments by sending text commands to the instrument and returning data values in the form of either ASCII or binary strings, which you then convert to numeric values.
- Storing numeric data to disk. To store numeric data in an ASCII file, we must first convert numeric data to strings before writing the data to a disk file.
- Instructing or prompting user with dialog boxes.
On the front panel, strings appear as tables, the text entry boxes, as well as labels. The LabVIEW includes built-in VIs and functions you can use to manipulate strings, which includes formatting strings, parsing strings, other editing. The LabVIEW represents string data with the color pink.
Numeric Data Type
LabVIEW represents numeric data as floating-point numbers, the fixed-point numbers, the integers, the unsigned integers, also complex numbers. The Double and Single precision as well as Complex numeric data is represented with the color orange in LabVIEW. The all Integer numeric data is represented with the color blue.
Certain data types also provide extended configuration options. As an example, you can associate physical units of measure with floating-point data, which including complex numbers, you can configure the encoding as well as range for fixed-point data.
Boolean Data Type
LabVIEW stores Boolean data as 8-bit values. The Boolean can be used in LabVIEW to represent a 0 or 1, a TRUE or FALSE. In case if the 8-bit value is zero, then Boolean value is FALSE. Any nonzero value represents TRUE. The Common applications for Boolean data include representing digital data and serving as a front panel control that acts as a switch that has a mechanical action often used to control an execution structure such as a Case structure. A Boolean control is typically used as the conditional statement to exit a While Loop. LabVIEW, color green represents Boolean data.
Dynamic Data Type
Most Express VIs accepts and/or returns the dynamic data type, that appears as a dark blue terminal.
Using the Convert to Dynamic Data and Convert from Dynamic Data VIs, you can convert floating-point numeric or Boolean data of the following data types:
- 1D array of waveforms
- 1D array of scalars
- 1D array of scalars – most recent value
- 1D array of scalars – single channel
- 2D array of scalars – columns are channels
- 2D array of scalars – rows are channels
- Single scalar
- Single waveform
Wire the dynamic data type to an indicator that can best present the data. The indicators include a graph, the chart, or numeric, or Boolean indicator. Because dynamic data undergoes an automatic conversion to match the indicator to which it is wired, the Express VIs can slow down the block diagram execution speed.
The dynamic data type is for use with Express VIs. The most other VIs and functions that are shipped with LabVIEW do not accept this data type. Use a built-in VI or function to analyze or process the data the dynamic data type includes, we must convert the dynamic data type.
Sometimes it is beneficial to group data related to one another. To use arrays and clusters to group related data in LabVIEW. The Arrays combine data of the same data type into one data structure, and clusters combine data of multiple data types into one data structure.
An array consists of elements and dimensions. Elements are the data that make up the array. A dimension is the length, height, depth of an array. The array can have one or more dimensions and as many as (231) – 1 elements per dimension, the memory permitting.
You can build arrays of numeric, Boolean, path, string, waveform, cluster data types.
Figure 1 shows an example of an array of numerics. The first element shown in the array (3.00) is at index 1, and the second element (1.00) is at index 2. The element at index 0 is not shown in this image, element 1 is selected in index display. Element selected in the index display always refers to the element shown in the upper left corner of the element display.
1 Index Display
2 Element Display
Figure 1. Array Control of Numerics
Clusters group data elements of mixed types. Example of a cluster is the LabVIEW error cluster, which combines a Boolean value, numeric value, a string. The cluster is similar to a record or a struct in text-based programming languages.
Bundling several data elements into clusters eliminates wire clutter on the block diagram and reduces the number of connector pane terminals that subVIs need. Connector pane has 28 terminals. In case your front panel contains more than 28 controls and indicators that you want to pass to another VI, then group some of them into a cluster and assign the cluster to a terminal on the connector pane.
An enum (enumerated control, constant or indicator) is a combination of data types. Enum represents a pair of values, string, numeric, enum can be one of a list of values. As example, if you created an enum type called Month, possible value pairs for a Month variable like January-0, February-1, through December-11. The Figure 2 shows an example of these data pairs in the Properties dialog box for an enumerated control. It is directly accessed by right-clicking the enum control and selecting Edit Items.
Figure 2. Properties for the Month Enumerated Control
Enums are useful because it is easier to manipulate numbers on the block diagram than strings. The Figure 3 shows the Month enumerated control, selection of a data pair in the enumerated control, and the corresponding block diagram terminal.
1 Front Panel Control
2 Selecting an Item
3 Block Diagram Terminal
Figure 3. Month Enumerated Control
Assignmenthelptutors.com services provide you with a dexterous team of Data Structures in NI LabVIEW assignment writers and assignment helpers and with the unique features it provides will consequently upgrade your results and we assure you of that. Our website provide unique features like
- Original and quality content
- Customized and appropriate format
- 100% confidentiality ensured
- Highly affordable prices
- Always on-time deliveries
- logical and Factual reasoning involved within the content
- 24X7 availability
- No Plagiarism
Our quality and customized format is based on one of the best academic referencing styles including
1) Harvard referencing style
2) APA referencing style
3) Chicago referencing style
4) MLA referencing style
And they are built over one of the best journals, articles and research papers.