Error -10003 in AI_Configure Function When Using the AIonePoint.cws Example Program Primary Software: LabWindows/CVI Development Systems>>Full Development SystemPrimary Software Version: 7.0 Primary Software Fixed Version: N/A Secondary Software: LabWindows/CVI Run-Time Engine Hardware: Multifunction DAQ (MIO)>>E Series>>PCI-6025E
Problem: I am using a PCI-6025E and the AIonePoint.cws example program to acquire input voltages. I am trying to read a voltage greater than 5V so I added the AI_Configure function to set the input range to 10 and the mode to unipolar. When I run the program I get NON-FATAL RUN-TIME ERROR... Function AI_Configure (return value == -10003)... invalid/ValueError: The value of a numeric parameter is invalid. Why am I getting this error? Solution: The PCI-6025E is a Low Cost E Series board. These boards are only bipolar and do not support unipolar mode. In order to read signals greater than 5V, you must set your range to +/-10V by setting your gain to -1 in AI_VRead, which corresponds to a gain of 0.5 (as found in the AI_VRead reference in the Traditional NI-DAQ Function Reference Help located at Start»All Programs»National Instruments»NI-DAQ). If you are calling AI_Configure prior to AI_VRead, then you need to make sure you are specifying the board is in bipolar mode. Additionally, the range specified by AI_Configure is over written by the gain that is specified in AI_VRead. If you are not sure if your board supports unipolar mode, refer to the specifications for your board in the E Series User Manual(link below).
Related Links: KnowledgeBase 313J7D7U: Default Input Voltage Range for LabWindows/CVI Function AI_VREAD E Series User Manual Attachments:
Report Date: 06/03/2004 Last Updated: 01/11/2008 Document ID: 3A2GIFNB |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
