Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

usb-8451using Borland

I need to operate the USB-8451 from either Delphi 7 or Borland C++ Builder.  How can I do this?  I really want to completely avoid Microsoft Visual C++.  In other NI products, you have provided a dll, which I could easily call.

0 Kudos
Message 1 of 7
(4,576 Views)
Hi brassband,
 
Once you install the NI-845x driver, you can find the dll called ni845x.dll in the C:\Windows\System32 folder in Windows.  Version 1.1 of the NI-845x driver introduced support for LabWindows/CVI 7.1 or later and for Microsoft Visual C/C++ 6.0.
 
Best of luck with developing your code and repost if you have any other questions.
Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(4,563 Views)
Thanks.  I tried searching for ni*.dll and was overwhelmed and then tried ni-845*.dll and got nothing.  😞  Duh.  I was pretty tired and frustrated by then.

So what is in ni845x.lib, just a bunch of calls to the dll?  If that is the case, then ni845x.h gives me a good starting point and the software manual describes the actual dll calls.  Sound correct?

James
0 Kudos
Message 3 of 7
(4,560 Views)
Hi James,
Sometimes they are tricky to find!  Anyway, yes, the ni845x.lib contains calls to the functions in the ni845x.dll.  The ni845x.dll contains all the functions for the 845x device.  Once you install the drivers, you can find the 845x Software User Manual at Start>>All Programs>>National Instruments>>NI-845x.  This lists all the functions and detailed descriptions of what they do.
 
I hope this helps!
Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(4,554 Views)
Perfect.  Thanks a lot 🙂
0 Kudos
Message 5 of 7
(4,551 Views)

Hello,

I have a question concerning the library ni845x.lib.

I'm developping an application with LabWindows/CVI and I installed the ni845 driver. The execution of my application fails because of a problem with library link. I suppose that a file is missing.

Error message :

Warning : Cannot find program file for library

Library : 'NI-845x'

Function Panel File : "c:\Program Files\National Instruments\CVI80\bin\ni845x.fp"

I notice that there is no .lib file associated with ni845x.fp in this directory. The installation of the driver failed? How may I generate this file?

Thank you for helping me.

 

arno

 

I found the dll file, ni845x.fp 

0 Kudos
Message 6 of 7
(4,528 Views)
Hello,
If it is not in that directory, that is definitely the source of that error.  There was either a problem with the installation (possibly corrupt) or CVI was installed AFTER the drivers for the NI-845x, thus that directory did not exist for the installer to place the .fp there. 
 
If you go into the Add/Remove programs in Windows and select National Instruments>>Change>>NI-845x>>Repair, it should install any missing files for the driver on your system.  Also, in the NI-845x installation tree, make sure support for LabWindows/CVI is selected to be installed.  If the repair doesn't work, I would try a complete uninstall/reinstall of the driver.
 
If all else fails, you can try the attached .fp file and place it in the proper directory (I had to zip it as it is not a valid extension for the forums).  I still suggest a repair since I am not sure what all went wrong with the installation.
 

Message Edited by Chris_R. on 07-31-2007 04:08 PM

Chris R.
Applications Engineer
National Instruments
Download All
0 Kudos
Message 7 of 7
(4,499 Views)