<< Chapter < Page Chapter >> Page >

Wires

You transfer data among block diagram objects through wires. Wires are analogous to variables in text-basedprogramming languages. In , wires connect the control and indicator terminals to the Add and Subtract functions. Each wire has a single data source, but you can wire it to many VIs and functionsthat read the data. Wires are different colors, styles, and thicknesses, depending on their data types. A broken wireappears as a dashed black line with a red X in the middle. The examples in are the most common wire types.

Wire Type Scalar 1D Array 2D Array Color
Numeric Orange (floating-point), Blue (integer)
Boolean Green
String Pink

In LabVIEW, you use wires to connect multiple terminals together to pass data in a VI. The wires must be connectedto inputs and outputs that are compatible with the data that is transferred with the wire. For example, you cannot wirean array output to a numeric input. In addition the direction of the wires must be correct. The wires must beconnected to only one input and at least one output. For example, you cannot wire two indicators together. Thecomponents that determine wiring compatibility include the data type of the control and/or indicator and the data typeof the terminal.

Data types

Data types indicate what objects, inputs, and outputs you can wire together. For example, a switch has a greenborder so you can wire a switch to any input with a green label on an Express VI. A knob has an orange border so youcan wire a knob to any input with an orange label. However, you cannot wire an orange knob to an inputwith a green label. Notice the wires are the same color as the terminal.

The dynamic data type stores the information generated oracquired by an Express VI. The dynamic data type appears as a dark blue terminal, shown at left. Most Express VIsaccept and/or return the dynamic data type. You can wire the dynamic data type to any indicator or input thataccepts numeric, waveform, or Boolean data. Wire the dynamic data type to an indicator that can best presentthe data. Indicators include a graph, chart, or numeric indicator.

Most other VIs and functions in LabVIEW do not accept the dynamic data type. To use a built-in VI or function toanalyze or process the data the dynamic data type includes, you must convert the dynamic data type.

Use the Convert from Dynamic Data Express VI, shown at left, to convert the dynamic data type to numeric,Boolean, waveform, and array data types for use with other VIs and functions. When you place the Convert from Dynamic Data Express VI on the block diagram, the Configure Convert from Dynamic Data dialog box appears. The Configure Convert from DynamicData dialog box displays options that let you specify how you want to format the data that the Convert from Dynamic Data Express VI returns.

When you wire a dynamic data type to an array indicator, LabVIEW automatically places the Convert from Dynamic Data Express VI on the block diagram. Double-click the Convert from Dynamic Data Express VI to open the Configure Convert from Dynamic Data dialog box to control how the data appears in the array.

Use the Convert to Dynamic Data Express VI to convert numeric, Boolean, waveform, and array data typesto the dynamic data type for use with Express VIs. When you place the Convert to Dynamic Data Express VI on the block diagram, the Configure Convert to Dynamic Data dialog box appears. Use this dialog box to select the kind of data to convert to the dynamicdata type.

Automatically wiring objects

LabVIEW automatically wires objects as you place them on the block diagram. You also can automatically wire objectsalready on the block diagram. LabVIEW connects the terminals that best match and leaves terminals that do notmatch unconnected.

As you move a selected object close to other objects on the block diagram, LabVIEW draws temporary wires to showyou valid connections. When you release the mouse button to place the object on the block diagram, LabVIEWautomatically connects the wires.

Toggle automatic wiring by pressing the spacebar while you move an object using the Positioning tool. You can adjust the automatic wiring settings by selecting Tools>>Options and selecting Block Diagram from the top pull-down menu.

Manually wiring objects

When you pass the Wiring tool over a terminal, a tip strip appears with the name of theterminal. In addition, the terminal blinks in the Context Help window and on the icon to help you verify that you are wiring to the correct terminal.

Questions & Answers

what is mutation
Janga Reply
what is a cell
Sifune Reply
how is urine form
Sifune
what is antagonism?
mahase Reply
classification of plants, gymnosperm features.
Linsy Reply
what is the features of gymnosperm
Linsy
how many types of solid did we have
Samuel Reply
what is an ionic bond
Samuel
What is Atoms
Daprince Reply
what is fallopian tube
Merolyn
what is bladder
Merolyn
what's bulbourethral gland
Eduek Reply
urine is formed in the nephron of the renal medulla in the kidney. It starts from filtration, then selective reabsorption and finally secretion
onuoha Reply
State the evolution relation and relevance between endoplasmic reticulum and cytoskeleton as it relates to cell.
Jeremiah
what is heart
Konadu Reply
how is urine formed in human
Konadu
how is urine formed in human
Rahma
what is the diference between a cavity and a canal
Pelagie Reply
what is the causative agent of malaria
Diamond
malaria is caused by an insect called mosquito.
Naomi
Malaria is cause by female anopheles mosquito
Isaac
Malaria is caused by plasmodium Female anopheles mosquitoe is d carrier
Olalekan
a canal is more needed in a root but a cavity is a bad effect
Commander
what are pathogens
Don Reply
In biology, a pathogen (Greek: πάθος pathos "suffering", "passion" and -γενής -genēs "producer of") in the oldest and broadest sense, is anything that can produce disease. A pathogen may also be referred to as an infectious agent, or simply a germ. The term pathogen came into use in the 1880s.[1][2
Zainab
A virus
Commander
Definition of respiration
Muhsin Reply
respiration is the process in which we breath in oxygen and breath out carbon dioxide
Achor
how are lungs work
Commander
where does digestion begins
Achiri Reply
in the mouth
EZEKIEL
what are the functions of follicle stimulating harmones?
Rashima Reply
stimulates the follicle to release the mature ovum into the oviduct
Davonte
what are the functions of Endocrine and pituitary gland
Chinaza
endocrine secrete hormone and regulate body process
Achor
while pituitary gland is an example of endocrine system and it's found in the Brain
Achor
what's biology?
Egbodo Reply
Biology is the study of living organisms, divided into many specialized field that cover their morphology, physiology,anatomy, behaviour,origin and distribution.
Lisah
biology is the study of life.
Alfreda
Biology is the study of how living organisms live and survive in a specific environment
Sifune
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Labview graphical programming. OpenStax CNX. Apr 09, 2015 Download for free at https://legacy.cnx.org/content/col11408/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Labview graphical programming' conversation and receive update notifications?

Ask