In this tutorial, I will be discussing with you the significance of different data types used in LabView and their working. You might have seen in previous tutorials that different data type blocks have different colors i.e. Strings type indicators and constants have pink color. After the introduction to different data types, I have written an example program and at the end of the session you are provided with a mini exercise to do it by yourself, so that you can make you concepts of data types clear. Page Contents • • • • • Introduction to data types in labview Data types as the name suggest represents the type of the data or variables that can be used in LabView.
Creating an executable VIs Remote panel connection manager and Web. LabVIEW: Tips & Tricks GPIB- VISA Using serial ports Serial communication uses a. Dynamic-Link Library DLL is a file which does a particular job, and allows.
Games samsung wise star 200. Data type is a very important term to be kept in mind while programming in LabView. In a VI every data type has unique color which can’t be mixed or interconnected with other. For example, if a data variable is of type integer then the indicator connected to display its value must also be of type integer, otherwise the VI will give you an error or it may not connect the two blocks in the first place. If you are a programmer of any other programming language you must be familiar with the term data type. However, in this tutorial we assume that you are a beginner and let me explain a little about types of data. In programming the most common data types are Integer, Float, Boolean, Double, Array, and String.
Whereas, in LabView, an addition data types namely waveform and errors are also introduced. Each data type has a specific type of data stored in it, i.e.
An integer type variable can only store and display integer type data and a string type can never be connected to a float indicator. Float however can store only floating point data types.
Programming Example of labview data types Let’s now do a write a program which includes different data. Create a program using the information provided in t and save it by using the path file>>save as or by pressing • Now on the block diagram click right and from the function palette select Numeric and then Numeric constant and on the front panel click right and from control palette select Numeric and then Numeric Indicator. • If the color of the associated block of the indicator on the block diagram is blue, it shows that the indicator is of integer type. But if it is other then blue then we cannot connect it to an integer type data constant.
• Right click on the indicators block on the block diagram select representations and then select long as shown in the figure below. This action will convert the indicator into integer data type too. Figure 1: Changing data types • Now, connect the associated block of the numeric indicator on the block diagram with the numeric constant already present there through wires. The resulting diagram will look like one shown in the figure below. Figure 2: Integer constant and indicator. • Changing the value of the constant will change the display value in the indicator too. This was simple, now let’s see how to place floating point data type blocks.