Nidaqmx.dll

I want to use Borland C  Builder to open.
I need nidaqmx.dll file and transform it to .lib file to support Borland C builder.
my question :
1:  Does anybody provide me nidaqmx.dll file. THx
2. Does anybody know how to use BCB to open NI-DAQ
Thx a lot

Hello 求知的人 -
You may be interested to know that an NI-DAQmx import library for Borland C++ is available here.  Hopefully this helps-
Tom W
National Instruments

Similar Messages

  • Ni-daqmx stand-alone matlab

    Dear all,
    I am about to compile my matlab code into a stand-alone program, which works fine. However, as soon as I start the data acquisition the program fails to initialize the DAQ-board.
    I'm using the NI-9201 USB-ADC in combination with the NIDAQmx driver.
    I localized the problem: When trying to initialize the ADC the program fails, since the required dll's are not available. I also localized the dll's and copied them into reach for the stand-alone, but it doesnt work.
    As long as the MATLAB\toolbox\daq\daq\private folder is reachable for the programm/Windows, the software works. However, on the custumers computer I dont want to have MATLAB installed (what sense does it makes to have the option for distributing a stand alone version if the customer has to buy a MATLAB licence?). 
    Can anybody help me solving this problem?  Are there any dll's I may copy into reach of the stand-alone? 
    (Just as information:  The NI - Measurement and Automation was installed on the "customer-computer", In fact it was the exact same computer with the only difference that I renamed the MATLAB folder)
    I'm looking forward to your suggestions!
        Bastian

    The MTALAB toolbox of question is the dataacquisition toolbox, everything else works fine
    The Matlab run-time is not the problem in generell, since everything except of the NIdaqmx-dll's is linked in the program. Here a short description how it works in matlab. 
    - you write code, GUI's etc. and test the program in Matlab
    - then you compile the application into a stand-alone
    - if you hand it to a thrid person that has no Matlab licence, you also distribute the MATLAB-Runtime-Environment (MRE)
    - the person installes this freely-distributable MRE on his computer and then runs the compiled program
    All functions in the program are able to run, except of the NIdaqmx. As soon as I the program tries to communicate to the ADC (i.e. open a channel) the program fails. However, when I provide the dll's mentioned in the exact same directory as they were in Matlab, it works. So I'm not sure what tells the MRE that the dll's are in that folder, since it didn't work, when I just copied the dll's in the run-time directory of the stand alone. 
    Since the program that I would like to distribute is quite complex, re-writing the hole thing in LABView is not an option for me (also, I have no experience with LabView at all, which would require some time to get into it).
    The solution I aim for would be:
    1st (best solution)
    I just do something in the program to have the dll's compiled and linked to in the stand-alone
    2nd
    when installing the program I provide the dll's. (But I dont want to provide them in the folder ..\MATLAB\...\daq\daq\private\...)
     If you dont have the experience with matlab, do you know someone I could ask for this?  Maybe a Matlab forum that addresses NI-ADC questions?
    Thank you for your support!
       Sebastian

  • DAQmxSetAIADCTimingMode function not defined

    I have a typical task creation, setup, read and stop process in VB6 code. The acquisition part is shown below. This code fails to compile when I include the Timing Mode call (bold). Sub or Function not found. If I remove the bolded line the code runs correctly and acquires data. However the default mode is HighResolution and I want HighSpeed.
    Note that all Timing Mode Constants and Functions appear in NIDAQmx.h, and I can in fact get this device to work in HighResolution or HighSpeed mode using python. However I'd rather not have to rewrite the entire VB6 application because of a single function call if I can avoid it.
    So why is this function not found? btw - I'm using DAQmx 14.2 on Windows XP 32bit
    ' create task
    DAQmxErrChk DAQmxCreateTask("", taskHandle)
    'Add an analog input thermocouple channel to the task.
    DAQmxErrChk DAQmxCreateAIThrmcplChan(taskHandle, "cDAQ-9214/ai:0", "", minTemp, maxTemp, DAQmx_Val_TemperatureUnits1_DegC, _
                                                                                       DAQmx_Val_ThermocoupleType1_J_Type_TC, DAQmx_Val_CJCSource1_BuiltIn, 25, "")
    ' set timing mode
    DAQmxErrChk DAQmxSetAIADCTimingMode(taskHandle, Ksystem.txtAIDev.Text, DAQmx_Val_HighSpeed)
    'Configure task for finite sample acquisition and read in data
    DAQmxErrChk DAQmxCfgSampClkTiming(taskHandle, "OnboardClock", frequency, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_FiniteSamps, numSampsPerChannel)
    ' Set up required memory space
    DAQmxErrChk DAQmxGetTaskNumChans(taskHandle, numChannels)
    arraySizeInSamps = numSampsPerChannel * numChannels
    ReDim data(arraySizeInSamps)
    ' start the task and read data
    DAQmxErrChk DAQmxStartTask(taskHandle)
    DAQmxErrChk DAQmxReadAnalogF64(taskHandle, numSampsPerChannel, timeout, fillMode, data(0), arraySizeInSamps, sampsPerChanRead, ByVal 0&)
    'Call the StopTask module to stop the DAQmx task.
    DAQmxErrChk DAQmxStopTask(taskHandle)
    DAQmxErrChk DAQmxClearTask(taskHandle)
    Solved!
    Go to Solution.

    I managed to solve this and put the solution here in case its of value to anyone.
    I ended up declaring the function and calling from the NIDAQmx dll (nicaui.dll)  directly as follows. Worked a treat with either timing mode.
    Declaration at top of form code
    ' original function header and enumerations can be found in in NIDAQmx.h
    'int32 __CFUNC DAQmxSetAIADCTimingMode(TaskHandle taskHandle, const char channel[], int32 data);
    Private Declare Function DAQmxSetAIADCTimingMode Lib "nicaiu.DLL" (ByVal taskHandle As Long, ByVal channel As String, ByVal Val As Long) As Long
    Const DAQmx_Val_HighSpeed As Long = 14712
    Const DAQmx_Val_HighResolution As Long = 10195
    Function Call
    ' see DAQmxSetAIADCTimingMode function declaration at top
    DAQmxErrChk DAQmxSetAIADCTimingMode(taskHandle, myChannel, DAQmx_Val_HighSpeed)

  • How to load NI DAQ MX in Powershell?

    (I hope this is the right forum to ask this question.)
    I wish to load the NI DAQmx feature set in Microsoft Powershell. I am on Windows 7. I cannot find any samples show to do this.
    I believe I have everything installed. I also have some Excel files that load NIDAQmx.tlb and properly run the device attached to me PC. The Excel files have VBA code (written by someone else) that inject current and voltage to an attached device. Excel's VBA project references load C:\Windows\SysWOW64\NIDAQmx.tlb (and also C:\Program Files (x86)\NationalInstruments\Shared\TDM Excel Add-In\ExcelTDM.dll).
    Since the Excel files run properly, I assume I have everything installed I might need to use NIDAQ MX in Powershell. However I am stymied how proceed. I would like to replace what the Excel file plus is VBA code do and do it in Powershell code.
    Any advice or samples how to get NI DAQ MX features loaded in Powershell would be of great benefit.
    Thanks
    Joe

    Thanks for the replies.
    I didn't know where to post the original questions which is why I guessed here might be good.
    >>How is this question in any way related to Measurement Studio for .NET ?
    So if there is a better place, let me know and I will move it.
    I would like write Powershell scripts that run the NI DAQ MX functionality using Powershell (so I am running from the command line) to minimize (or eliminate) use of a UI.
    I'm at a loss how to get started with Powershell and NI DAQ MX. I know, for example, if one is writing an application in in C this situation, the first thing one does in the code is load NIDAQMX.LIB and also one includes NIDAQMX.H. Well, the .H file is inappropriate in Powershell for sure. And loading .LIB files does not go well. So, what to do, since there is no NIDAQMX.DLL ?
    I mentioned the Excel file with macros that I obtained which loads NIDAQMX.TLB. Loading the objects in a TLB file Powershell is possible, the TLB needs to be "registered". I was able to register NIDAQMX.TLB (after installing WIndows Update KB2640696). However, even after registring I could not load its objects.
    So I am looking for a sample from someone who might have gotten this to work.
    Thanks for your help or any advice.
    Joe

  • DAQmxGetSysDevNames return nothing

    Hi, all,
    I am trying to talk to PXI 4130, 5402 and 7852R through the PXI 1033 chassis. I installed NIDAQmx version 9.8. I can see the boards' visa resourece name in MAX, such as PXI::13::INSTR. I don't know how to access a channel in  a card. So I decided to use DAQmxGetSysDevNames to get device name. I wrote some code like this:
    char data[1000];
    DAQmxGetSysDevNames(data, 1000);
    It didn't work. data was empty.
    After some googling, I changed the code to be like this or initialize the string first:
    char data[1000] = {'\0'};
    // strcpy(data,"whater");
    DAQmxGetSysDevNames(data, 1000);
    It didnt' work either. The string was empty. Can someone help? Thanks.
    Another question is why there is nidaqmx.lib but no nidaqmx.dll? Aren't they always together? I don't know much about DLL.
    Jasmine

    Hi, Richard,
    Thanks for your reply. I went to look for the driver for PXI 4103 but I couldn't find any online. I installed NIDAQmx and RIO. Are they drivers? Also where is dev1 or dev2 supposed to show up in MAX? I saw some text in MAX like SMU, FGEN in the left pane. You can see them in the attached pic. Are they the equivalent of dev1 and dev2? Should I use SMU in the code when accessing that board? Thanks.

  • Where is NIDAQmx 64bit common.dll

    I installed NIDAQmx 2014 and I am looking for the 64 bit common.dll. I can find the  dnet/assembies (64-bit)/current folder but common.dll is not there. The DAQmx.dll and common.native.dll are there. Where can I find the 64 bit common.dll to compile a 64 bit application?
    Notes: in the 32 bit folder all the 32 bit dlls are there including common.dll.
    John A. Lively
    NDE Engineer
    Pratt & Whitney

    Hi John,
    NationalInstruments.Common is platform-agnostic, meaning you can use it in both 32-bit and 64-bit builds. This fact is not explicitly called-out in any of the documentation I found, but I did find the following useful: http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitsupport/ . 
    Note: NationalInstruments.Common has dependencies which are platform-specific (e.g., NationalInstruments.CommonNative). You have to make sure that, during deployment, you deploy dependencies that will match the bitness of your application.
    Daniel D.
    National Instruments
    Automated Test Software R&D

  • Making a .dll file in Visual Studio from a NIDAQmx C program

    I have a C program in Visual Studio that reads temperature from DAQs. I wanted to take this c file and put it into a shared library project in Visual Studio. However, when I try to run the program, it gives me 10 errors that look like this:
    unresolved external symbol DAQmxCreateTask referenced in function main
    I have NIDAQmx.h included in the project so I'm not sure why CreateTask is considered an external symbol. I'm not sure what causes this problem, could anyone help?
    Thank you!

    Yes, I've tried this and have gotten a clean compile.  However, the .dll is associated with third party software intended to add controls to a form.  The form does not display in Designer though (extensive stack trace errors) which made me wonder
    whether there is a downside to this approach.

  • Nistcu.dll Error with LabVIEW2009 trial and niDaqmx 860

    Hello everyone,
    I have been searching and trying to make this work for the last few days.  The problem is that I need to run some examples of a device's sdk.  When i try to load them I get a error message displayed about niSTCu.dll missing("This application has failed to start because niSTCu.dll was not found. Re-installing the application may fix this problem.").   The thing is that I have installed quite diferrent versions of niDaq and the last clean install(I erased the other previous versions) was with the one mentioned above(the latest one).  I don't know if I need to re-install the labview itself but I did re-install the daq.  I dont know were to find that dll, I even installed the GPIB driver  ni-488.2 and still I have that problem. I really need to run it please help!!!!
    David.

    It is a place to post but you seem to be unwilling to provide enough information for anyone to help. You refuse to post this example code. If you would do that simple thing, someone would know what LabVIEW functions are being used and what driver is required. Why can't you do this simple task? The problem is not with LabVIEW.
    If you have problems talking to a GPIB instrument, don't even think of posting unless you provide the make and model of the instrument.
    Edit - it seems that dll is part of the obsolete traditional DAQ driver - not DAQmx.
    Message Edited by Dennis Knutson on 06-05-2010 10:39 PM

  • Problems to load nicaiu.dll in VB 6.0

    I would like to develope an aplication in VB 6.0 to acquire and load data from my USB-6210 card but I have a big problem. This card needs the nidaqmx software and i can't load the nicaiu.dll requested in this case.
    I must use the VB .Net o is another one solution?
     Thaks!!!!!!

    q

  • Create 16 bit dll

    Hello!
    I'm creating an application in C for the NI USB-6009 Multifunction device. (The application will work as a .dll to be called from a VB3 program.) I use nidaqmxbase functions (I know nidaqmx is more up to date, but I had no problems using nidaqmxbase, hope it's not the problem).
    When creating, I've tested the dll with a simple VB6 test app, but when getting to VB3, it couldn't load the dll. Shortly, I realised it happens because of the 16<>32 bit difference.
    Then I tried to make a 16bit dll using different 16bit C compilers, like Borland C++ 3.1, Borland C++ 5.02, Turbo C++ 3.1, but all build processes failed. I'm afraid it's the nidaqmxbase.lib file that causes this.
    Can you help, how to create my 16bit dll using my existing code?
    Thanks a lot,
    motyo

    That's bad news. I hoped there would be a 16bit version of the lib file or something....
    So the solution to get the NI device work with VB3 is some kind of emulation (like call32.dll or other 16bit-32bit emulators) right? Anything else than this?

  • Dll for NI 6008 in teststand

    Hi,
    since 2 days I have been struggling to find a dll or lib which I can use without any problems for controlling NI USB 6008 card. I am not sure if it is possible to control usb from teststand.
    All I could find was:
    - NIDAQmx.lib file. Which when I tried to use with test stand, most of the function gives following error "PArameter information or user type not recognized by teststand"
    - NationalInstruments.DAQmx.dll which is a .net dll. The problem here is if I have to call a function inside a subclass of a class (for example class X has an object of class Y and I am calling x.y.functionInsideY()) whcih is not possible in TestStand (?).
    Please post if you know the solution.
    Regards
    RB
    Solved!
    Go to Solution.

    Secondly. it is not easy for me to beleive that
    "NationalInstruments.DAQmx.dll" is not compatible with TestStand at the
    time when devices from many companies are compatible with TestStand but
    NI is not able to do that. I think I am doing something wrong.
    I have attached a document to explain the issue. It may help you to help me out.
    Thanks for taking time
    RB
    Attachments:
    TestStand_NIDAQmx_Issue.pdf ‏51 KB

  • Where is the DLL file that exports these functions?

    I have been tasked with controlling a DAQCard E-series via program written in C. My development environment is MinGW on Windows 2000, with DAQ-MX and Traditional installed.
    I started by using the MX example code as a foundation. Everything goes well it comes time to link the code; the linker can't find the exports defined anywhere.
    E.g.: WriteDigPort_Fn.o : undefined reference to 'DAQmxCreateTask@8'
    WriteDigPort_Fn.o : undefined reference to 'DAQmxCreateD0Chan@16'
    etc.
    (Same with the Traditional example, since it's using the same NIDAQmx.h header file)
    My guess is these are properly defined in the (MSVC) .lib file supplied, but MinGW doesn't like it. I can build a definition file for this DLL that Min
    GW will like, but to do this I need to know, what is the name of the DLL file these functions actually are exported from?
    PS: Not part of my question, but for everyone searching here for info on NI DAQ + MinGW: MinGW defines 64-bit integer types using 'long long' instead of 'int64'. If you're getting errors referring to int64/etc., change the following lines in NIDAQmx.h:
    //typedef __int64 int64; // replace this
    typedef long long int64; // with this
    //typedef unsigned __int64 uInt64; // and this
    typedef unsigned long long uInt64; // with this

    Greetings,
    The NI-DAQmx ANSI C functions are contained within nicaiu.dll. This DLL should be available in the following location:
    C:\WINDOWS\system32
    Good luck with your application.
    Spencer S.

  • Error Loading DLL: Missing export

    Hey,
    I'm having a problem running an RT DLL (call it file2) that uses an RT DLL (call it file1) that uses nixnet. When I try to debug file2, I get the error message:
    Error loading 'file1.dll': Missing export 'nxClear' from 'file1.dll'
    I know that the linking is somehow messed up because nxClear is not a function in file1.dll. It's a function from the nixnet library. I would think that nxClear would be an import for file1.dll so it seems like I haven't got something setup correctly. To include the nixnet library in file1.dll, in the .c file that uses it all I have done is #include "nixnet.h" and this has been sufficient for debugging file1.dll. But now that I'm using file1.dll in file2.dll it seems confused about where nxClear comes from.
    How do I link stuff in file1.dll correctly?
    Any help is appreciated,
    Kevin Key

    I discovered that I had to include the nixnet.lib file in the project. Although, it's not necessary for other ni libraries (for instance nidaqmx) because they must be linked in correctly.

  • Comment lancer un projet sans toucher aux dll ou librairie déjà existentes

    Bonjour,
    je dois faire un programme sur labwindows qui sera utiliser sur plusieurs PC, pour piloter une carte d'acquisition différentes à chaque fois (des vieilles PCI comme les PCI-6014 ou plus récentes comme les PCI-6221). Par contre les drivers, les versions de DAQmx sont aussi différentes selon les PC. Je voudrais donc (si c'est possible), renommer les DLL ou librairies indispensables afin de lancer l'exécutable, sans pour autant désinstaller ou remplacer les DLL ou drivers déjà existants.
    Comment dois je m'y prendre ?

    Bonjour mhen29,
    Merci d'avoir posté votre question sur le forum de National Instruments.
    Je vous conseille d’utiliser le logiciel NI-DAQmx 9.5.1 que vous pouvez trouver sur notre site. Vous pouvez le télécharger sur le lien suivant : http://joule.ni.com/nidu/cds/view/p/id/319/lang/fr
    Ce logiciel regroupe différents drivers dont ceux que vous spécifiez pour vos cartes PCI-6014 et PCI-6221. Les différents appareils supportés se trouvent sur le lien suivant : http://download.ni.com/support/softlib//multifunction_daq/nidaqmx/9.5.1/readme_fra.html
    Ces informations devraient vous aider à réaliser votre application dans les meilleures conditions.
    Bien cordialement,
    Julien De Freitas / Applications Engineer / Certified LabVIEW Developer (CLD)
    National Instruments Switzerland

  • Which DLL I need for Shipping Release?

    Hi,
    I am using Visual Studio 2005 (C++) for my application. I have nidaqmx.h and nidaqmx.lib and driver installed. My question is when I move my application to a different computer that doesn't have driver installed, what DLL(s) I need to make it run on different computers when we are not trying to talk to NI boards. Right now when I move it , it starts asking me for nicaiu.dll, then another DLL then another..forever.... What do I need to make it run on other computers when the application is not talking to NI board?  I do understand if I want to have it talk to NI, I need to install the driver.
    Thanks

    Hi softwareguy,
    I understand that you are talking about moving your application to another computer. However, I'm not sure what you mean when you say this:
    "I move my application to a different computer that doesn't have driver installed, what DLL(s) I need to make it run on different computers when we are not trying to talk to NI boards."
    When you move the application, are you removing all function calls and information that relates to daqmx? If you have some functions in your application that are still trying to talk to the driver, you are going to get errors that the program is looking for dlls that do not exist since the driver is not installed.  Therefore you need to remove anything in your program that is referencing daqmx including the #include statements with daqmx.h. 
    The dll that your computer is searching for (nicaiu.dll) is actually the main dll where all DAQmx ANSI C functions are contained.  This is documented in the following knowledgebase.  I hope this information was helpful!
    Regards,
    Vanessa L.
    Applications Engineer
    National Instruments

Maybe you are looking for