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 Explorerin 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 Helpbutton 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 Calibrateto calibrate the DAQ device using a precision voltage reference source and update the built-in calibration constants. When the device has been calibrated, theSelf Calibrationinformation updates in theCalibrationtab.
1.B) Testing the DAQ Device Components
- Click the
Self-Testbutton 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 Panelsbutton to test the individual functions of the DAQ device, such as analog input and output. TheTest Panelsdialog box appears.- Use the
Analog Inputtab 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 theStartbutton to acquire data from analog input channel 0. Place your finger on the sensor to see the voltage rise. You also can move theNoiseswitch toOnon the DAQ Signal Accessory to see the signal change in this tab. When you are finished, click theStopbutton. - Click the
Analog Outputtab to set up a single voltage or sine wave on one of the DAQ device analog output channels. Change theOutput ModetoSinewave Generationand click theStartbutton. LabVIEW generates a continuous sine wave on analog output channel 0. - On the external DAQ Signal Accessory box, wire
Analog Out Ch0toAnalog In Ch1. - Click the
Analog Inputtab and change the channel toDev1/ai1. Click theStartbutton to acquire data from analog input channel 1. LabVIEW displays the sine wave from analog output channel 0. - Click the
Digital I/Otab to test the digital lines on the DAQ device. Set lines 0 through 3 as output and toggle theLogic Levelcheckboxes. 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/Otab to determine if the DAQ device counter/timers are functioning properly. To verify counter/timer operation, change theCounter Modetab toEdge Countingand click theStartbutton. TheCounter Valueincrements rapidly. ClickStopto stop the counter test. - Click the
Closebutton to close theTest Paneland return to MAX.
- Use the
- Close MAX by selecting
File>>Exit.
No comments:
Post a Comment