NI DAQ 7.x and borland delphi 7

How can I use NI DAQ 7 with delphi?
Can I call any DAQ function?

Greetings,
As the KnowledgeBase I have linked below explains, NI-DAQ 7.x does not include support for Borland Delphi.
NI-DAQ and the Delphi Language Interface
To develop in Borland Delphi, you will need to use NI-DAQ 6.9.3 or earlier.
NI-DAQ Version 6.9.3 for Windows 2000/95/98/ME/NT/XP
Good luck with your application.
Spencer S.

Similar Messages

  • DAQ ActiveX-Co​ntrols Borland Delphi

    Hi @All,
    I'm working with NI-DAQ 6.9.3 Version by using Borland Delphi Software. I have the ActiveX-Control Komponents on my Form, for example the AO, AI, DIO, CWGraph. My Problem is if i run the Programm i get the Message as shown in the Attachment.
    What i need to do to solve this Problem because after 5 minutes i get no answer from System. The AO and AI-Komponents don't transfer any values. Because of that i can not run my programm longer then 5 minutes.
    Can anyone help me please???
    Thanks a lot!!!
    Attachments:
    Measurement-Studio.jpg ‏24 KB

    Please have a look at this document in the NI knowledgebase.
    I hope that helps,
    Jochen Klier
    National Instruments Germany

  • Program NI boards using the DAQ Libary and Borland C++ builder 5

    Hi,
    I am programming Lab PC-1200 NI boards using the DAQ Libary and Borland C++ builder 5.
    But I get the following error msg:"[Linker Error] 'C:\NI-DAQ\LIB\NIDEX32.LIB' contains invalid OMF record, type 0x21 (possibly COFF)" although I have linked all DAQ lib files in C builder.
    Anyone who had tried or succeeded in a similar application and solved this problem??
    Thank you in advance for your help!

    Hi w,
    Please check out this related DevZone question/answer:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=5065000000080000007D180000&ECategory=Measurement+Hardware.Real-Time+Data+Acquisition
    The basic reason is that we design our libraries for many environments, but Builder is not one of them. You can use the dll's (they're just dll's), but you will need to make your own library or use run-time linking.
    For more information about run-time linking, you can try http://msdn.microsoft.com and search for "About Dynamic-Link Libraries"
    I hope this gives you a start.
    John N
    Applications Engineer
    National Instruments

  • Binary file readed from Labview and Borland C++ v.5

    Hi Everybody!
    My problem is reading binary file from Labview 7.0 and Borland C++ version 5 is not the same.
    Only one difference is "space". Reading from Labview I got "00" (decimal) and reading from Borland C++ I got "32".
    I also try to read this binary file with Matlab 6  and I also got "00" as well as those from Labview.
    I really struck with this problem.. Anybody has an idea about this problem.
    Thanks a lot for anybody help!
    Nok

    Hi,
    These threads regarding reading of binary files was recently discussed in this forum
    You might find some answers for your query
    http://forums.ni.com/ni/board/message?board.id=170&message.id=99016&requireLogin=False
    and
    http://forums.ni.com/ni/board/message?board.id=170&message.id=153565&requireLogin=False
    Regards
    Dev

  • Call a Borland Delphi DLL with Structs from LabView

    Hello,
    I have a problem to build an equivalent Struct in Labview to the following Struct which I want to retrieve from a DLL.
    type
    TM2DScanline=record
    YWert:double;
    XWert:array[0..raster] of double;
    ZWert:array[0..raster] of double;
    IWert:array[0..raster] of byte;
    end;
    M2DScanArea =array[0..maxScans] of TM2DScanline;
    PointerToScanArea=^M2DScanArea;
    PointerToScanArea is the parameter I want to retrieve.
    If anybody knows a way for doing this, help would be very appreciated
    Thanks
    Peter

    Are raster and maxScans both constant? If I recall correctly, many dialects of Pascal just lay the elements of a fixed-size array out in memory with no size parameter; if this is the case with Delphi, then you may be able to do the following (in my example, I'll assume "raster" is a constant set to 40, and maxScans is a constant set to 5):
    Create a cluster called XWert with 40 Numeric elements (representation: DBL).
    Copy XWert and name the copy ZWert.
    Create a cluster called IWert with 40 Numeric elements (representation: U8).
    Create a cluster called TM2DScanline.
    Create a Numeric inside TM2DScanline called YWert (representation: DBL).
    Drag XWert, then ZWert, then IWert into TMD2Scanline.
    Create a cluster called ScanArea and drag 5 copies of TMD2Scanline into it.
    Create a Call Library node on your block diagram, give it your DLL and function name, and set the return value to whatever your Delphi function returns. You probably want the WINAPI calling convention.
    Add a parameter and make it "Adapt to Type: Pointers to Handles". Close the node and wire the ScanArea cluster to the input.
    Right-click on the Call Library Node and select "Create .c file...." Read through the C file to make sure its structure is similar to your Delphi record: you should see five copies of the TM2DScanline structure, each of which contains a double followed by two fixed 40-element structures of double and a fixed 40-element structure of unsigned char. You should see no reference to the word "Hdl" anywhere in the code.
    This strategy will only work if the arrays in your records are fixed at a constant size, and if Delphi lays out the arrays in memory as described above. Instead of doing all this work, you may want to write a small C or Pascal wrapper around your Delphi function. This wrapper could take simpler parameter types (which are easier to use from LabVIEW) and bundle them into the cluster before calling your Delphi function.

  • Unable to Build VC++ application it showing error 1 LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib' but I am Using Measurement Studio 2009 ,NI DAQ 7.01 and Field Point 6.05.

    I am having a application in Visual Studio 2003 on Windows XP  , Now I am Migrating the application in Visual Studio 2005 on Windows-7 .
    In my Development PC , I was install Measurement Studio 2009 ,  NI DAQ 7.01 and Field Point 6.05.
    my application is Showing following error:
    Linking...
    LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib'
    Build log was saved at "file://c:\EdacsNt\Source\SaftyServices\NICfpDAQDl?l\Debug\BuildLog.htm"
    NICfpDAQDll - 1 error(s), 0 warning(s)
    When I copy from NiFieldPoint71D.lib library from Measurement Studio 7.1 and put in :\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib.
    my application is Showing following error:
    1>Linking...
    1>atlsd.lib(atltrace.obj) : error LNK2005: "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA) already defined in NiFieldPoint71D.lib(StdAfx.obj)
    1>atlsd.lib(atlbase.obj) : error LNK2005: "class ATL::CAtlWinModule ATL::_AtlWinModule" (?_AtlWinModule@ATL@@3VCAtlWinModule@1@A) already defined in NiFieldPoint71D.lib(StdAfx.obj)
    1>   Creating library ..\..\lib\debug\NICfpDAQDll.lib and object ..\..\lib\debug\NICfpDAQDll.exp
    1>..\..\bin\debug\NICfpDAQDll.dll : fatal error LNK1169: one or more multiply defined symbols found
    I want to ignore NiFieldPoint71D.lib from using project setting(Linker->Input->ignore Specific Library ) but still it is showing same error.
    In the project Setting I am done following setting:
    "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"
    C:\Program Files\National Instruments\NI-DAQ\Lib"
    Linker->Input->ignore Specific Library: mfcs71d.lib;libc.lib;'NiFieldPoint71D.lib
    Please provide some solution.
    Thanks
    Nityanand

    You posted this in the LabVIEW forum.
    Are you programming in LabVIEW?
    There is a separate Measurement Studio for VC++ forum. http://forums.ni.com/t5/Measurement-Studio-for-VC/bd-p/231

  • Ni-daq 6.7 and lab-pc+

    I cannot get my lab-pc+ board to be recognized by ni-daq 6.7 and/or MAX. I
    have installed the board using the add new hardware control panel. Windows
    98 seems to recognize the board and give it the requested resources, which
    match the jumper settings. I can see it under the device manager. One bit of
    oddness is that the "NI-DAQ Information" tab in Lab-PC+ Properties contains
    "Bus type ISA" and no other information. When I run MAX (2.0.2.79) and try
    to add a new device, DAQ is not listed as an option. I have VISA 2.5b3
    installed. After installing the latest VISA beta, I was surprised to find
    that MAX does not run inside windows explorer, but always is launched in its
    own window. If anyone can suggest how to get my daq board function
    ing, I
    would be grateful.

    I had this problem also. Make sure you have administrative privileges. My
    problem was that one of the system directories that LV needed to write too
    did not have an owner and did not have any permissions associated with it.
    Christopher Quijano
    Chris McCrory wrote in message
    news:8oitvr$9s4$[email protected]..
    > Has anyone experienced problems when installing NI-DAQ 6.7 on Windows
    2000?
    > When installing, the installer runs though all the questions, and just as
    it
    > is about to start copying files from the CD I get a code error come up in
    a
    > dialogue box.
    >
    > Anyone seen this and know how to fix it?
    >
    > Yours sincerely, Chris McCrory Project Engineer
    > ______________________________________________ SP Technology Limited
    E-m
    ail:
    > [email protected] Website: www.sp-tech.com Tel: +44 (0) 1382-880088
    Fax:
    > +44 (0) 1382-880099 The information in this e-mail is confidential and for
    > use by the addressee(s) only. If you are not the intended recipient or
    > responsible for delivery of the message to the intended recipient, please
    > notify us immediately on +44 (0) 1382 880088 and delete the message from
    > your computer; you may not copy or forward it, or use or disclose its
    > contents to any other person. As Internet communications are capable of
    data
    > corruption, SP Technology Ltd do not accept any responsibility for changes
    > made to this message after it was sent. For this reason it may be
    > inappropriate to rely on advice contained in an e-mail without obtaining
    > written confirmation of it. Please note that SP Technology Ltd does not
    > accept the liability or responsibility for viruses and it is your
    > responsibility to scan attachments, if any. Opinions and views expressed
    in
    > this e-mail are those
    of the sender and may not reflect the opinions of SP
    > Technology Ltd.
    >
    >

  • Run-Time errors using DAQmx and Borland C++ Builder 5.0

    I've written a simple program on MS Visual C++ 6.0 to test my PCI-6014 board and it works fine.
    I copied the code to Borland C++ builder 5.0 and had some linker problems with the .lib files that where solved with borland's "coff2omf".
    Now I've been getting run-time errors when I use the function DAQmxCreateAIVoltageChan()... The error code is -50251: "The specified software component is not available. The component was not loaded".
    But I'm sure that the code is right, since it works fine on MS Visual C++ 6.0!
    That the part of the code where I'm getting the error:
    iErro = DAQmxCreateTask("", &thTask);
    iErro = DAQmxCreateAIVoltageChan(thTask, "Dev1/ai0", "", DAQmx_Val_Diff, -10.0, 10.0, DAQmx_Val_Volts, NU
    LL);
    Thanks for the help,
    Marcelo

    Hello
    Borland enables certain types of exceptions by default which are initially disable in MSVC. You will need to refer to the documentation for Borland Builder on how to disable floating point exceptions. I believe you can do it by adding the following statement to your initialization code, but you should double check this:
    _control87(MCW_EM, MCW_EM);
    These exceptions get thrown because we are doing some floating point initialization underneath. This is not an indication of a bug or a problem of any sort. Apparently you have to this for alot of libraries to work correctly with Borland (OpenGL etc...)
    Hope this helps
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • Using a menu ring to select DAQ device channel and indicator

    Hi,
    New user here. I am using the DAQ assistant with multiple analog inputs. I would like the front panel to have a menu ring where the user can select which channels are to be active. Also, this corresponds to a single graphical indicator. 
    Currently I have a VI that displays all channels each with its own indicator. I want to simplify the front panel so that a user can simply use a menu ring to select and focus on what he/she is interested in. Is it possible to use the Select Signals Express VI to implement this?
    Thank you!

    Drop the DAQ Assistant or convert it to regular DAQmx functions. The physical channel control does all that. Just look at the shipping examples.

  • Ni-DAQ 7.1 and CVI Function panels

    I have an XP system running TestStand 1.0.3 with CVI 6.0, and hardware NI-4070 and NI-6713. I have downloaded NI-DAQ 7.1 driver. However, I cannot find any CVI function panels for the DAQ. During the installation, I selected CVI and all it's subfeatures, but I did not see any installed.

    Hi,
    To offer support for driver upgrades. the NI-DAQ installer is the one that installs the DAQ libraries for CVI. The first thing to try is to run the NI-DAQ installer from the add/remove programms applet and make sure that support for CVI is selected.
    FYI: CVI 6.0 only supports the Traditional DAQ driver, to use DAQmx you would need to upgrade to CVI 7.0; click here for more info.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.

  • My DAQ wont start, and I dont understand why?

    Hello,
    I'm writing software for a lab that I'm working in and I'm having a little trouble with a section of my code dealing with myDAQ. The goal is to use this DAQ to activate a minishaker device. Everything was working well but to fix a timing issue I changed the set up of the loop running myDAQ, and I'm wondering why my device no longer works. I've tested it using another program that controlls the device and it works on that so its not a hardware issue. I've  attached the section of my code that isnt functioning and I would really appreciate any pointers you can give me. (I kudos frequently)
    "There will be water if God wills it"
    Attachments:
    test.zip ‏21 KB

    Ah... I found my problem. No need to respond if anyone sees this.
    "There will be water if God wills it"

  • Help, Ni-Daq channel names and labview program error 10001?

    Can anyone please help me, I have inherited a role that I know nothing about. I have managed to get an NT pc to now recognise the SC-2345 board, set up and configure two channels and test them in Measurement and Automation program, this I managed after getting error 10401 and looking within these message boards which are very good.
    I have then started a labview program, previously written by ex-employee, and now get error 10001, after trawling the FAQ and forums I think that I have a naming error in the virtual channels created, how do I find out what the channels should be named within the Labview program, do I need to load an editor etc and then open a config file?
    Sorry if this seams like a simple error, but I am trying to learn the software from a book that is a little tattered.
    Regards

    Hi,
      error 10001 can be caused by a few things including an incorrect scanning order.
    If you'd like to post your code back onto here (or if it's large, ftp it to ftp.ni.com/incoming and let use know the name of the zip file you've packaged it into), then we can see what the DAQ section is supposed to be doing and hopefully provide some clues as to where to look for the information / why the error is occuring.
    The first thing to do is go back to Measurement and Automation explorer and try setting up a global task that refers to the channels you're interested in.
    This removes the programming side of things, since you select from drop down lists, to verify that you can communicate correctly with the hardware at the rates and across the channels that you want.
    These links is going to be your best learning point for getting up an running with the program.
    http://digital.ni.com/public.nsf/allkb/DD52ABD7C15F0B15862562910074F09E
    http://zone.ni.com/devzone/cda/tut/p/id/3116
    http://zone.ni.com/devzone/cda/tut/p/id/4656
    In terms of LabVIEW, there's several I/O controls you can use which will list the hardware channels you have configured or the global tasks you have created in Measurement and Automation explorer. (see the last link above)
    Another option is to look at our Alliance Partners if you need things configured and up and running in a hurry.
    http://www.ni.com/alliance
    If you just need a little pointer on getting kicked off, then you could see if you local sales engineer is available to go through things with you for an hour if they're in your area at a convenient time (for the UK / Ireland, please call in on 01635 572410 and ask to go through to sales), or we do offer start-up assistance (but that's something you need to purchase) to get a day's onsite assistance with getting your hardware up and running and starting you off with advice / examples on your application (note this is an effort based thing rather than a results based guarantee)
    Finally you could consider coming on one of our courses on LabVIEW and / or Data Acquisition to learn more about the software / hardware and be better prepared to handle the implementation yourself.
    Hope that helps
    Sacha Emery
    National Instruments (UK)
    Message Edited by SachaE on 03-23-2007 11:49 AM
    // it takes almost no time to rate an answer

  • NI-DAQ 7.5 and USB6008

    Hi,
    I downloaded NI-DAQ 7.5 to upgrade my old NIdaQmx base, because in this forum it was suggested to do.but It seems not supporting my USB6008.It doesn't find this device when I run this software.could you help me??

    I have updated drivers and LabView program to 7.1.1.
    And now I can not run any samples for  my USB 6008.
    The arrow is every time broken.
    It looks like that one of subVi does not work.
    When I installed update for LabView I did some recompillation as it was suggested. Do I need to do something similar to the samples provided for my USB 6008?
    Thanks. Sergey.

  • How can i write a pattern to a output port of NI PCI 6503 with Traditional NI DAQ 7.0 and Visual Basic 6.0?

    Hello, i'm using a NI PCI-6503 (with CB50LP accesory) to write digital patterns to one of the output ports. Can i do it directly from NIDAQ7.0?
    I know  some Visual Basic 6.0 functions to configure a par as output and to write a pattern to a port, but i don't know how run it.
    I've read some examples from "Help" (C:\Program Files\National Instruments\NI-DAQ\Examples\VBasic\Do) but I can't measuring TTL levels on my CB50LP accesory.
                    Thanks!!

    Hello,
    What is your buffer size ? The buffer should be 0 or greater than 2. You can get this error if your buffer size is equal to 1.
    Regards,
    Isabelle
    National Instruments France
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • How do I import Traditiona​l NI-DAQ Virtual Channels and MAX 3.1

    I installed Labview 7.1 on a new machine and the tools option in MAX 3.1 does not have the option to import traditional NI-DAQ configurations.

    If you have support for Traditional NI-DAQ installed, you should have the option to open a configuration file from: Tools>>Traditional NI-DAQ Configuration>>Set Active Configuration. You can check the installation of Traditional NI-DAQ under the Software tree in MAX.
    Hope this helps.
    Regards,
    Erin

Maybe you are looking for

  • Could not find the Database Engine startup handle.

    Why can't Microsoft make software that "Just Works" any more. This is Sooooo frustrating!  I'm a developer.  I want to write database software and I'd like to use SQL Server.  But I can't even get the damn thing to install on a fresh Windows 8.1 inst

  • Help on CAST function, defining TYPE TABLE and using a REF cursor

    Hi, I have written a procedure (lookup) inside a package (lookup_pkg) as shown below. Procedure has an output variable of type PL/SQL TABLE which is defined in the package. I want to write a wrapper procedure lookupref to the procedure lookup to retu

  • WiFi must manually reconnect after sleep (since updating to 10.9.4)

    My MacBook Air (Mid 2011) just updated to 10.9.4 and now the WiFi doesn't reconnect to my home network when I resume from sleep (open the lid). I need to click the WiFi icon and re-choose the home network each time. This is new since I updated. Ironi

  • Does Elements 9 Support  New Nikon D7000?

    Any News on whether the new Elements 9 software will support the new Nikon D7000?.  I see where it does support Nikon's NEF Raw Format but can find nothing about Supporting the Nikon D7000 due to be released to stores the middle of October.

  • Cost price

    Hi, Any one can let me know how to update the cost price for the particular material i tried in CK 11 N and CK24 Thanks Guru