Data types indicate what objects, inputs, and outputs you
can wire together. For example, a switch has a green
border so you can wire a switch to any input with a green
label on an Express VI. A knob has an orange border so you
can wire a knob to any input with an orange
label. However, you cannot wire an orange knob to an input
with a green label. Notice the wires are the same color as
the terminal.
The
dynamic data type stores the information generated or
acquired by an Express VI. The dynamic data type appears
as a dark blue terminal, shown at left. Most Express VIs
accept and/or return the dynamic data type. You can wire
the dynamic data type to any indicator or input that
accepts numeric, waveform, or Boolean data. Wire the
dynamic data type to an indicator that can best present
the 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 to
analyze 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 Dynamic
Data 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 types
to 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 dynamic
data type.
"A full introductory course on programming with LabVIEW."