National Instruments 321906B-01 用户手册

下载
页码 57
Appendix E
Common Questions
E-2
©
 National Instruments Corporation
Finally, verify that your code is correct. For reference, see the 
examples described in the NI-SWITCH Software User Manual. The 
NI-SWITCH driver also ships with several examples in source code. 
Compare your algorithm to the ones in the examples.
What should I do if scanning does not work?
First, ensure that you have configured the switch card and the 
instrument to match trigger lines. The output trigger of the instrument 
should connect to the trigger input of the switch card. In addition, the 
scanner advanced trigger of the switch card should be connected to the 
input trigger of the instrument.
If the switch card is used to initiate the scan, make sure the DMM is 
waiting for a trigger before enabling scanning on the switch card. This 
is the recommended method for hardware scanning.
If the DMM is used to initiate the scan, enable scanning on the switch 
card before configuring the DMM to start taking measurements.
Also be sure to check the return codes of the NI-SWITCH operation to 
ensure that there are no errors (negative value) or warnings (positive 
value). You can also use the NI-Spy utility to check for error codes.
Finally, verify that your code is correct. For reference, see the 
examples described in the NI-SWITCH Software User Manual. The 
NI-SWITCH driver also ships with several examples in source code. 
Compare your algorithm to the ones in the examples.
Do I need to program the switch card myself?
The NI 2501/2503 comes with the NI-SWITCH driver software, which 
exports the full functionality of the card. NI-SWITCH handles the complex 
issues of direct memory access, interrupts, and operating system 
interfacing.