Error -10240 When Trying to Run Visual C++ Examples with the NI 435x Boards Primary Software: Driver Software>>NI-435xPrimary Software Version: 2.1 Primary Software Fixed Version: N/A Secondary Software: Driver Software>>NI-DAQ, LabWindows/CVI Development Systems Hardware: Modular Instruments>>High-Precision DAQ (Dataloggers)>>DAQCard-4350, Modular Instruments>>High-Precision DAQ (Dataloggers)>>DAQPad-4350 for USB, Modular Instruments>>High-Precision DAQ (Dataloggers)>>DAQPad-4352 for USB, Modular Instruments>>High-Precision DAQ (Dataloggers)>>PXI-4351, Modular Instruments>>High-Precision DAQ (Dataloggers)>>PC-4350, Modular Instruments>>High-Precision DAQ (Dataloggers)>>DAQPad-4351 for IEEE 1394, Modular Instruments>>High-Precision DAQ (Dataloggers)>>PCI-4351
Problem: I have Visual C++ 6.0 and the NI 4350 Precision Data Logger board. I just want to run the example "Getting Started.c", but I get error -10240, which says: "The driver interface could not locate or open the driver" I found that the error came from the ID_Reset function in debug mode in Visual C++, so I tried the board in two PCs with IRQs 3 and 4, but I received the same error. The driver file (ni435x_32.dll) is installed in the VXIPNP\WIN95\Bin directory, and I have properly referenced it in Visual Basic. As far as I can tell, I installed NI-DAQ and the NI 435x Instrument Driver version correctly, so why am I seeing this error? Solution: Customers using Visual C++ (but not LabWindows/CVI) will encounter the -10240 error, because the NI 435X driver uses some LabWindows/CVI Easy I/O calls which are inside the ni435x_32.dll. These calls will ONLY be installed by NI-DAQ during the second part of the installation process (after rebooting your computer). If you have already installed NI-DAQ, select the NI-DAQ from the Add/Remove Programs in the Control Panel. Modify the installation for NI-DAQ by adding support for LabWindows/CVI. Here are the steps for adding support for LabWindows/CVI: 1. Go to Add/Remove Programs 2. Go to NI-DAQ and click on Change. 3. You should now be at the "Select Support Files" screen. Select "LabWindows/CVI" by clicking on the area to the left-hand side of the entry for "LabWindows/CVI"; a computer will appear next to the name. Do this, even if you do not have CVI installed. 4. Display the subfiled under "LabWindows/CVI" entry (i.e., single click on the text in that entry field). 5. Make sure that the entry for "CVI Msvc DAQ Library" has a computer next to it. Click the Next button. 6. Click the Finish button to complete the installation of these files. Once you have finished these steps, try your program again in Visual C++. Related Links: Attachments:
Report Date: 01/17/2000 Last Updated: 06/29/2004 Document ID: 1TGD60DM |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
