Summary: In this exercise, the objective is to use MAX to examine the current DAQ configuration and test the device interactively. Complete the following steps to examine the configuration for the DAQ device in the computer using MAX and use the test routines in MAX to confirm operation of the device.
EXERCISE 1
1.A) Examining the DAQ Device Settings
- Launch MAX by double-clicking the icon on the desktop or by selecting
Tools>>Measurement & Automation Explorer
in LabVIEW. The utility searches the computer for installed National Instruments hardware and displays the information. - Expand the Devices and Interfaces section to view the installed National Instruments devices. Figure 1 shows the PCI-6024E and a PCI-GPIB device.MAX displays the National Instruments hardware and software in the computer. The device number appears in quotes following the device name. The Data Acquisition VIs use this device number to determine which device performs DAQ operations. MAX also displays the attributes of the device such as the system resources that are being used by the device.
Figure 1 NOTE:
You might have a different device installed, and some of the options shown might be different. Click theShow Help/Hide Help
button in the top right corner of MAX to hide the online help and show the DAQ device information. - The Device Routes tab provides detailed information about the internal signals that can be routed to other destinations on the device. This is a powerful resource that gives you a visual representation of the signals that are available to provide timing and synchronization with components that are on the device and other external devices.
Figure 2 - The Calibration tab provides information about the last time the device was calibrated both internally and externally.
Figure 3 - Right-click the NI-DAQmx device in the configuration tree and select
Self Calibrate
to calibrate the DAQ device using a precision voltage reference source and update the built-in calibration constants. When the device has been calibrated, theSelf Calibration
information updates in theCalibration
tab.
1.B) Testing the DAQ Device Components
- Click the
Self-Test
button to test the device. This tests the system resources assigned to the device. The device should pass the test because it is already configured. - Click the
Test Panels
button to test the individual functions of the DAQ device, such as analog input and output. TheTest Panels
dialog box appears.- Use the
Analog Input
tab to test the various analog input channels on the DAQ device. Channel Dev1/ai0 is connected to the temperature sensor on the DAQ Signal Accessory. Click theStart
button to acquire data from analog input channel 0. Place your finger on the sensor to see the voltage rise. You also can move theNoise
switch toOn
on the DAQ Signal Accessory to see the signal change in this tab. When you are finished, click theStop
button. - Click the
Analog Output
tab to set up a single voltage or sine wave on one of the DAQ device analog output channels. Change theOutput Mode
toSinewave Generation
and click theStart
button. LabVIEW generates a continuous sine wave on analog output channel 0. - On the external DAQ Signal Accessory box, wire
Analog Out Ch0
toAnalog In Ch1
. - Click the
Analog Input
tab and change the channel toDev1/ai1
. Click theStart
button to acquire data from analog input channel 1. LabVIEW displays the sine wave from analog output channel 0. - Click the
Digital I/O
tab to test the digital lines on the DAQ device. Set lines 0 through 3 as output and toggle theLogic Level
checkboxes. As you toggle the boxes, the LEDs on the DAQ signal accessory turn on or off. The LEDs use negative logic. - Click the
Counter I/O
tab to determine if the DAQ device counter/timers are functioning properly. To verify counter/timer operation, change theCounter Mode
tab toEdge Counting
and click theStart
button. TheCounter Value
increments rapidly. ClickStop
to stop the counter test. - Click the
Close
button to close theTest Panel
and return to MAX.
- Use the
- Close MAX by selecting
File>>Exit
.
No comments:
Post a Comment