11-21-2011 05:50 PM
I've added the converted .lib file and the .h file to my Embarcader C++ Builder project and was looking
for some examples in the NI Documentation installed on my computer. I quote NI's help:
"NI-DAQmx examples for ANSI C are in the NI-DAQ\Examples\DAQmx ANSI C Dev directory."
But there is no such directory and there are no examples in the installed documentation!
What gives???
Can someone please point me to some examples?
Anything simple to get me started?
I'd be happy if I can just say, "what's to voltage on pin x" or "is pin y true or false?"
It's really discouraging not to be able to get up and running.
Thanks,
Nick
11-22-2011 01:56 PM
Hi Nick,
The first thing to check would be if the ANSI C examples were properly installed. To check the installation go to Control Panel>>Programs and Features>>National Instruments Software. This should open up a dialog box with all the NI software on your machine. Find NI-DAQmx X.X.X in the menu and click "Modify." Under Application Development Support, check to see that ANSI C Support and the examples are installed.
To find the examples go to Start>>All Programs>>National Instruments>>NI-DAQ>>Text Based Code Support>>ANSI C Examples. This will open the directory where the examples are stored. On my machine it is in C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C
Let me know if that helps.
Tim W.
Applications Engineering
National Instruments
11-22-2011 04:07 PM
Thanks Tim,
I'm trying to talk to the NI USB-6009 and the NI USB-6501.
I followed your suggestion, but there is no "ANSI C Support" package visible. Neither are any examples available. Possibly, the disks I am using are too old, since they are "MFG,NI-DAQMX SOFTWARE FOR WINDOWS 2000/XP/VISTA, 8.6" (2007). But there should have been examples back then too. So I don't know what is
going on. If the disks are too old, how can I get new disks?
The only path I have to C++ is this:
C:\Program Files (x86)\National Instruments\NI-DAQ\DAQmx ANSI C Dev
And in that directory the only thing there is is the .lib and the .h.
Embarcadero reports the .lib as unreadable as COFF and provides an executable to convert it.
I ran the conversion and Embarcadero accepted both the .lib and .h as "add to project" files.
That's as far as I've gotten.
I think however, that that is not the entire problem. I am using Embarcadero C++ Builder in Windows 7. Embarcadero has no problem with the .lib (once converted) and .h files, but any NI command that I enter
is flagged with numerous errors.
I have been "dead in the water" with these NI DAQs for years. I need to get them running or scrap them.
I would appreciate any help, and wouldn't even mind paying for it.
Thanks,
Nick
11-22-2011 04:13 PM
No need to pay, the newest DAQmx driver is free and supports both pieces of hardware you're working with. It is a rather large file (~1.3 GB), but should have the examples you need and better stability than older versions of the driver.
Tim W.
Applications Engineering
National Instruments
11-22-2011 04:28 PM
If you do need more specialized support, National Instruments does offer the Standard Service Program at a cost. This service includes phone support from our Applications Engineering team, software upgrades, and customer education. For more information consider contacting NI customer service.
Tim W.
Applications Engineering
National Instruments
11-22-2011 04:47 PM
Tim,
I'm a research associate and teach a class of 25 students AD/DA techniques in C++ at Duke University.
I'm sure we spend quite a lot on NI software and support.
Do you supply a support service to our university?
Can you give me a contact name, number and email?
I'll certainly buy more NI products if I can get these working.
Thanks,
Nick
11-22-2011 05:37 PM
Hi Nick,
I sent you a personal message with pertinent information
Tim W.
Applications Engineering
National Instruments
11-22-2011 08:36 PM
Well, I downloaded and installed NI-DAQmx9.4 and still, the documentation directory "NI-DAQ\Examples\DAQmx ANSI C" exists nowhere.
"Help" gives a path for Windows XP as "\Ducments and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\..."
"Help" gives a path for Windows Vista as "\Users\Public\Documents\National Instruments\NI-DAQ\Examples\..."
Neither of those paths exist on my Windows 7 machine.
There is no path suggested for Windows 7.
That's the same spurious information that was in NI-DAQmx8.6.
Why aren't the examples included in "Help?"
Why don't you put examples on the Web?
This is really unbelievable...
11-23-2011 10:08 AM
When you ran the installer, under Application Development Support, did you check the ANSI C Support option?
11-23-2011 10:15 AM
I did this late last night, when adminttedly my mind was following the day into darkness.
I believe I accepted all the default settings, opting to install more rather than less.
I don't know how to check this. Would I search under the "install & remove programs" directory?