NI myDAQ User Guide and Specifications
32
ni.com
Using NI-DAQmx with NI myDAQ
NI myDAQ is supported by NI-DAQmx, and therefore you can program it
using the DAQ Assistant Express VI. Figure 20 shows the DAQ Assistant
Express VI.
Figure 20.
DAQ Assistant Express VI
Note
In NI-DAQmx, DIO <0..7> appear as P0.<0..7>.
Furthermore, you can use NI-DAQmx to program some of the available
general AI, AO, and timing functionality of the device. Refer to the
NI ELVISmx Help
and
NI-DAQmx Help
for more information.
Note
When using NI-DAQmx to read the audio channels, you must manually change the
voltage range to ±2 V from the default voltage range of ±10 V. The ±10 V range is not
supported by NI-DAQmx and will cause an NI-DAQmx error, but it will not cause the user
to receive corrupt data.
Example: Measuring Audio Pass-Through in LabVIEW with NI myDAQ
This example covers the simultaneous acquisition of input signals and
generation of output signals using the DAQ Assistant in LabVIEW. This
example forms the foundation for audio signal processing experimentation.
1.
Launch LabVIEW.
2.
In the
Getting Started
window, click
Blank VI
. A blank VI opens.
Select
Window»Show Block Diagram
to open the VI block diagram.
3.
Locate the DAQ Assistant Express VI by right-clicking the block
diagram window and selecting
Measurement I/O»NI DAQmx»
DAQ Assist
from the
Functions
palette.
4.
Place the DAQ Assistant Express VI on the block diagram. The DAQ
Assistant
Create New Express Task
configuration window opens.
Tip
You can also use the Quick Drop dialog box to locate the DAQ Assistant Express VI.
Select
View»Quick Drop
or press the <Ctrl-Space> keys to display this dialog box.
5.
In the DAQ Assistant configuration window, select
Acquire Signals»
Analog Input
, and click
Voltage
to select a Voltage task.