From the course: Learning LabVIEW
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Convert between data types - LabVIEW Tutorial
From the course: Learning LabVIEW
Convert between data types
When connecting block diagram components, LabVIEW will color the wires to indicate the type of data being passed between them. For example, if I connect this floating point double control to the double indicator, LabVIEW colors the wire orange. And if I wire the boolean control to the boolean indicator, it colors the wire green. As long as you're connecting components that have the same data type, everything should work smoothly. But, if you're connecting components with different data types, it can create a potential for unexpected behavior. For example, I'll connect the orange wire, from the double data type control, to the blue integer indicator. Since those are both representations of numeric data, LabVIEW allows me to make that connection. But, notice that it creates this little red spot at the connection point. That indicates that LabVIEW is implicitly converting or coercing the double formatted data into an…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.