Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
26 rating:
 1.42 out of 5     Rate this Document

How To Access USB-845x API Functions from a C Program?

Hardware: Industrial Communications

Problem:
I have a USB-8451. I would like to access the USB-8451 API functions from my C program, but I can't find any reference in the documentation for the new USB-8451 API for a USB-8451 dll or other USB-8451 library that I can link to from my C code. Does such a dll or library exist?

Solution: Version 1.1 of the NI-845x driver introduced support for Microsoft Visual C/C++ 6.0 and LabWindows/CVI 7.1 or later. Please make sure that you select the LabWindows/CVI support during the installation of the driver.

Once you install the NI-845x driver you can find the dll called ni845x.dll in the C:\Windows\System32 folder in Windows.  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. Please see attachment for instrument functions.

Related Links: Drivers and Updates: NI-845x 1.1.1

AE KB 3WADAH2W: How to Programmatically Detect a USB-8451 I2C/SPI Interfaces


Attachments:
ni845x function panel.zip




Report Date: 09/12/2007
Last Updated: 01/31/2008
Document ID: 4DBCH31S

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit