02-15-2008 01:10 PM
02-16-2008 04:12 PM
02-18-2008 10:25 AM - last edited on 11-05-2014 10:39 AM by dcarva
Hello MadMax,
Assuming you're using the NI DAQPad-4350 or NI DAQCard-4350 then you can use NI-DAQ 7.4.4 in Measurement Studio with VB6. If you aren't using one of these two cards you can find which DAQ drivers are supported on your card at the <link no longer exists>. Also, for information on which programming environments and languages these drivers support you can reference this KnowlegeBase article titled Programming NI-DAQ in Text-Based Languages.
If this doesn't answer your question please reply back with more information so we can make a more specific response.
Also, LaiJW, I would kindly suggest that you ask your question on the original thread: PICe-6259 with DasyLAB 9 - How to do Analog Output. Keeping each thread on topic helps all users find the information when they search for it later.
Thanks!
02-20-2008 09:37 PM
Hi Brooks,
Thanks for the reply. Your assumption is correct. I am using the DAQPad-4350, and I've installed NiDAQ 7.4.4.
In VB6, with Measurement Studio, I have a form with an CWAI control, seven meters, and a start and stop button. I have the AI control configured in it's property page as follows:
Channel string: 0:7 / Upper limit: Default / Lower limit: Default / Input mode: Default / Coupling: DC
I've set the Number of scans to acquire at 10, using the Default buffer size. Clock is set to 1 scan/second.
When I run the application, I get the following error:
Run-time error '10403':
Configuring a DAQ event
The specified device does not support the requested action (the driver recognizes the device, but the action is inappropriate for the device).
Any advice would be greatly appreciated.
Thanks,
Chris
02-22-2008 05:16 PM
Hello MadMax,
As this error says, you're trying to configure a setting that the DAQPad-4350 doesn't support. I think the easiest way to find out which property is the problem would be to look at or use an example program.
While NI-DAQ 7.4.4 is the correct driver, there is a separate driver specifically for the NI-435X series of boards that installs examples (LabVIEW and text based as well). You can download this driver at www.NI.com/download by searching for NI-435X. If you have Windows XP/2000 you'll want version 2.5.2, and if you have Windows NT you'll want 2.1. This driver should be a little easier to use.
I'd recommend that you look at the example programs that install with this driver. During installation if you're prompted to choose components make sure you select support for VB. Then once you have it installed you should find the examples in the National Instruments folder (Start>> All Programs>> National Instruments>> NI-453x>> Examples).
If you still have trouble with the board, particularly running the example programs, then please feel free to post back with the error code and text again. In addition to the error information the context (specific function call in the program) would be helpful.
I hope this helps get you started, and have a great weekend!
02-23-2008 08:04 PM
Hi Brooks,
Thanks for the tip, but things aren't going well for me with this project. I've downloaded the driver that you suggested, but when I install the NI-435x 2.5.2 driver I get the following error:
"The NI-435x 2.5.2 installation has failed with the following error.
You have selected and installation directory which does not contain a valid version of NI LabVIEW.
Continue?"
When I continue, I get the message: "The installation has failed. Please correct the problem and try again."
I don't have LabVIEW. I have tried all the different options of installing the NI-435x driver, all with the same outcome.
What do you suggest?
Chris
02-24-2008 02:36 PM
02-25-2008 05:30 PM
Hello Chris,
It could be an issue with the Traditional NI-DAQ (Legacy) driver on which the 435X driver is built. This driver should be installed when installing the NI-435X driver. Since you installed the 435x driver on top of the previously installed Traditional DAQ driver, there could have been an install issue. Could you possibly check which version of Traditional NI-DAQ (Legacy) you have installed? You can determine which version by opening Measurement and Automation Explorer and expanding the software folder. Click on Traditional NI-DAQ (Legacy) and the version should be listed in the middle of the screen. It is also possible to reset the Traditional driver. This can sometimes resolve issues similar to this one. You can reset the driver by opening Measurement and Automation Explorer. Expand the Devices and Interfaces folder. Right click on Traditional NI-DAQ (Legacy) Devices and select Reset driver for Traditional NI-DAQ. Normally it is a good idea to remove any PCI cards in the system before installing the drivers for these cards. One thing to try would be to shut down your computer, remove the PCI card and turn on the computer. After the computer has started normally, turn off the computer again and reinstall the card (if possible place it in a different PCI slot as well). This will force Windows to re-enumerate the card. Once Windows has installed the necessary driver components, try the test panels again. Let me know if this helps. In addition it would be helpful to eliminate other factors. Could you see if the 4350 works on another computer?
Which Component Works controls are you attempting to use? Component Works supports Traditional DAQ functionality. Since the 4350 works with Traditional DAQ, any supported Traditional DAQ calls supported by Component Works will work.