Borland c++ 6 & Ni-DAQ 6.9.3

Bonjour,
J'ai developpé une application qui fonctionne correctement avec Borlad C++ 5 et une carte PCI-6025.
en plus, la meme application se compile correctement sous la Version 6 du borland, mais pas de resultat d'acquisition, apres des etudes j'ai constaté que le probleme est dans la fonction :
SingleRead(TVariant *,TVariant TimeLimit)
Merci de m'indiquer est ce que le probleme est dans BCB 6 ou dans les ActiveX.

Hi,
I would definitely suggest to create the dll in VB6. There are shipping examples for VB6, so that you can see how it looks to program in VB6 with DAQ. These examples can be found at C:\Program Files\National Instruments\NI-DAQ\Examples\VBasic.
I hope this helps. Have a Great Day!
George

Similar Messages

  • 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.

  • Reading PCI-6023E counter by Delphi/NI-DAQ

    One current goal of mine is to read out the counter of a NI I/O board PCI-6023E by Delphi/NI-DAQ! But I don't get it work.
    I am interested in having a Delphi code using NI-DAQ commands *without ActiveX components*. At NI support doesn't exist yet any example code in Delphi using NI-DAQ just commands.
    What part is missing in my code "PCI6023E_Counter.pas"?
    http://www.home.fh-karlsruhe.de/~egra0011/Projects/SIM
    The "same" prog in VB works fine! Do the NI-DAQ commands/drivers work with Delphi? Thanks.

    Rawi,
    NI-DAQ provides a function prototype for Borland Delphi, so NI-DAQ function calls should work fine in that environment. Your program seems to be correct. However, you don't state why it's not working, and I've noticed that you don't seem to be checking the iStatus return value for an NI-DAQ error. You might want to check to see if an error is being returned. That could point you in the right direction. If you continue to have problems, I would recommend contacting National Instruments support for troubleshooting assistance.
    Also, the counter/timer developer exchange is targeted towards 660X and TIO-10 counter/timer products. The PCI-6023E is a multifunction I/O board, and in the future, you may want to consider posting your inquiries to the multifuncti
    on I/O exchange for assistance.
    Regards,
    Erin

  • Using NI-DAQ with Borland C++ 5.01

    Hi,
    I've got a problem using Ni-DAQ with Borland C++ 5.01 (i know this section is for visual C++ but I couldm't find any for ANSI C++). If I write a simple program with one of the libraries included in nidaq.h and if i specify the correct lib and include locations I have a problem with the linkink process; in particular it says that the function can be resolved...
    If anyone can help me I would appreciate it. Thanx
    Optoclasfo

    Hey optoclasfo,
    I haven't used Borland much, but with Visual C++ the problem normally
    happens because the lib and include paths are not added to the
    project. For Visual C++ they are stored at
    Tools->Options->Directories. If the library files (*.lib) are not
    added to the project you can get this error as well.
    I hope this helps out.
    Joshua P.
    Application Engineering
    National Instruments

  • Problem with Borland Builder C++ AND NI-DAQ 6.9.3

    Hello,
    I am trying to porting a Data Acquisition application developed with Borland Builder 4.0 and NI-DAQ 6.5.1, changing data acquisition Hardware. Now I am using PCI - 6036E, with Ni driver version 6.9.3. My s.o. is Windows XP Professional.
    When I link application with nidaq32b.lib and nidex32b.lib and launch my EXE, without call any DAQ function, when I close my window PC is resetting! If I try to use Ni driver version 7.0 or 7.3, I obtain a GP fault as soon I start program.
    I think that there are problem of disallineament or other inside file EXE generated. I have tried to generate new file lib with implib utility from DLL, but with the same result.
    If anyone cannot help me, I think to substitute call to DAQ functions inside C code with DLL or EXE developed in Visual Basic.
    Can anyone give me any help for this? Is it better use VB 4.0 or VB 6.0?
    Thank you for your attention.
    Fabrizio

    Hi,
    I would definitely suggest to create the dll in VB6. There are shipping examples for VB6, so that you can see how it looks to program in VB6 with DAQ. These examples can be found at C:\Program Files\National Instruments\NI-DAQ\Examples\VBasic.
    I hope this helps. Have a Great Day!
    George

  • 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

  • "Unresolved external"-- How do I compile NI-DAQ apps with Borland C++ ?

    I'm a newbie. I am attempting to resurrect some code which a former worker left behind.
    I am getting "Error: Unresolved external..." at link time for all the NI-DAQ calls.
    More info:
    I've installed Borland C++ 5.5 and its associated command line tools.
    I've added E:\Borland\Bcc55 and E:\Borland\Bcc55\bin to my path (NT, so I use Control Panel-->System)
    I have created bcc32.cfg and ilink32.cfg files per Borland's readme.
    I've tried various ways of adding -L"C:\Program Files\National Instruments\NI-DAQ\Lib" to the compile, both in the command line and in the .cfg files.
    What am I missing? More details available on request.
    Any help would be greatly appreciated.
    Since
    rely,
    Mike

    Mike,
    I was wondering if you ever found a solution to this issue, and if so what was it. I've run into a similar problem and the knowledgebase article which was suggested to you has not helped me.
    Any information you might have would be greatly appreciated.
    I'm using:
    Borland C++ Builder 5
    Ni-daq 6.9.1
    And I get the following error message when I build my project:
    [Linker Error] Unresolved external 'DIG_Out_Prt' referenced from
    C:\SCOTT\DLL_CODE\ELLIPSE_TEST1\WRITETOPB.OBJ
    Scott
    [email protected]

  • 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

  • Undefined external error messages compiling in Borland C++

    I'm using:
    Win95 machine
    Ni-daq 6.9.1
    NI PCI-6025e DAQ card
    Borland C++ Builder 5.0.12.34
    When I try to compile my C project I get the following error:
    [Linker Error] Unresolved external 'DIG_Out_Prt' referenced from
    C:\SCOTT\DLL_CODE\ELLIPSE_TEST1\WRITETOPB.OBJ
    Here is the code I'm attempting to build:
    #include
    #include
    #include
    #include "c:\Program Files\National Instruments\Ni-daq\Include\nidaq.h"
    __declspec(dllexport) long portWrite(void);
    long portWrite(void){
    long value;
    long status;
    value=(0x0001);
    status=
    DIG_Out_Prt(1,2,value);
    return status;
    It is some very simple code just to test that I can get these ni-daq functions to work in
    a dll that I can then access from LabVIEW.
    I found a knowledgebase article at the following location which seems to address my problem (but either I can't follow it or it just does not solve the problem):
    http://digital.ni.com/public.nsf/ 3efedde4322fef19862567740067f3cc/ c1c5214a711a57
    a2862562bb00067373?OpenDocument
    Another thing that I found strange is that in nidaq.h the function is not DIG_Out_Prt
    (as stated in the user manual, and the installed example) but rather DIG_Out_Port. I don't understand the discrepancy.
    Any insight or help with these matters would be greatly appreciated.
    Thanks,
    Scott Allen

    The document (0HMI568Z) you suggest is the one that I "specifically" stated in my question as the article which did not help my situation. Please read the post in its entirety before offering any suggestions. As this post has now been answered it is unlikely that anyone else who may know what's going on will take the time to look at it. This is unfortunate as I really need to figure out the solution to this problem.

  • Undefined external error messages compiling in Borland C++ IDE

    I'm using:
    Win95 machine
    Ni-daq 6.9.1
    NI PCI-6025e DAQ card
    Borland C++ Builder 5.0.12.34
    When I try to compile my c project I get the following error:
    [Linker Error] Unresolved external 'DIG_Out_Prt' referenced from C:\SCOTT\DLL_CODE\ELLIPSE_TEST1\WRITETOPB.OBJ
    Here is the code I'm attempting to build:
    #include
    #include
    #include
    #include "c:\Program Files\National Instruments\Ni-daq\Include\nidaq.h"
    __declspec(dllexport) long portWrite(void);
    long portWrite(void){
    long value;
    long status;
    value=(0x0001);
    status=DIG_Out_Prt(1,2,value);
    return status;
    It is some very simple code just to test that I can get t
    hese ni-daq functions to work in a dll that I can access from LabVIEW.
    I found the knowledgebase article at this address (but either I can't follow it or it just does not solve the problem):
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c1c5214a711a57
    a2862562bb00067373?OpenDocument
    Another thing that I found strange is that in nidaq.h the function is not DIG_Out_Prt (as stated in the user manual, and the example) but rather DIG_Out_Port. I don't understand the discrepancy.
    As well I'm not sure if I should be configuring the port in my C code if I've already configured it in MAX.
    Any insight or help with these matters would be greatly appreciated.
    Thanks,
    Scott Allen

    I can tell you that you do need to configure the board programmatically, not in MAX. The current C DAQ library does not support MAX configuration.
    This forum is for discussion of Measurement Studio for Visual C++ and not for general C++ discussion. You would get a better response to this question if you posted it in the Multifunction IO or Digital IO section of Developer's Exchange.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • How can I add a new channel in CWAI control in Borland C++ Builder 5.0

    I'm using Borland C++ Builder 5.0 and CWAI control of ComponentWorks to get the analog signal from DAQ card.
    I want to delete or add a new channel object in CWAI control when the program is running.
    So I did:
    CWAI1->Channels->RemoveAll(); <--It seems to work fine
    CWAI1->Channels->Add((wchar_t*)0,upperlimit,lowerlimit,InputMode,Coupling);
    But,It does not work in second line. I can't understand what is wrong.
    Please answer me this question.

    I'm using Borland C++ Builder 5.0 and CWAI control of ComponentWorks to get the analog signal from DAQ card.
    I want to delete or add a new channel object in CWAI control when the program is running.
    So I did:
    CWAI1->Channels->RemoveAll(); <--It seems to work fine
    CWAI1->Channels->Add((wchar_t*)0,upperlimit,lowerlimit,InputMode,Coupling);
    But,It does not work in second line. I can't understand what is wrong.
    Please answer me this question.

  • How to entirely develop an application with PCI-6221 in Borland C++ Builder V6 in DAQmx?

    Hi,
         I am sorry that I have asked a huge question.
         But the main questions I want to know is :
         1,In Borland C++ Builder 6,Which version of DAQmx is the best one we will use?  DAQmx V8 don't support BCB6.
         2,Would you please give an example source file to use *.Lib in BCB6?
         3,In other computer,not including developping environment ,which items of DAQmx we have to install,PCI Card Driver?
    Which dll?How to make the installation the smallest?
         Thanks for your possible answer.

    Why DAQmx8 doesn't support C++ Builder 6 ?
    I've just used LabVIEW with DAQmx8 create dll file for C++ builder 6. My application is to use PCI-6221 generate Analog output. ( just DAQ assistance ).It works well.  

  • Can I test the control lines of a 6534 DAQ device in a C++ environment?

    The signals going into the control lines (REQ and PCLK) of my 6534 DAQ card are becoming quite distorted (longer rise time, decreased amplitude and ringing around 2.5-3 V). I have tried buffering them from my peripheral device without success. I am using a short 1M cable. I would like to test the integrity of these control lines. Searching your site, I could only find a testing utility for Labview. My application is written with Borland C++ using the example code for single buffer burst mode with an external PCLK provided with the card. I am attempting to operate in the burst mode with a 20 MS/s transfer rate.

    Hello,
    I am not sure exactly what you would like to test here. Is it that you would like to know if you external signals are valid? This is my assumption.
    1.) Could you provide a link or tell us where the testing utility for LabVIEW is?
    2.) Could you explain in more detail what is happening that makes you want to do these tests?
    Best regards,
    Justin T.
    National Instruments

  • Accessing an NI 4060 from Borland C++ 5.5 or TestPoint 3.4 generates a fatal error.

    I am trying to get an NI 4060 DMM card working in my programming environment. I have tried to compile a few example programs with the Borland C++ 5.5 command line compiler, but when I run them, they crash on the niDMM_Initiate call.
    After the process has been terminated, on Windows 2000, the system dies with a Blue Screen Of Death.
    When I try the same sequence of calls to NIDMM_32.DLL with TestPoint 3.4, the niDMM_Initiate call causes a floating point exception in nidaq32.dll at 0x21193dce.
    On a Windows 98, the C programs gave the same result (except for the BSOD). I haven't tried TestPoint on that system.
    I have used the software on the CD (NI-DMM 1.5, NI-VISA 2.01,
    NI-DAQ 6.7, IVI engine 1.61) and also later versions from the web.
    In all environments the DMM soft front panel did work.
    I also tried to use NI Spy to see what calls the DMM soft front panel uses.
    Unfortunately, with NI-DMM 1.5, the soft front panel crashes when NI Spy is running, and with NI-DMM 1.6, the soft front panel apparently mostly uses functions that are not captured by NI Spy.
    Can anyone give me a clue what is going wrong and what I need to do to get things working?

    Dear Mr. Curtis,
    Thanks for your answer.
    Borland cannot link to an MSVC .lib file. However, it is very easy to create an import library for Borland from any .DLL that exports functions by name.
    Furthermore, NI-DMM v1.6 does provide a Borland .lib file (v1.5 does not).
    I managed to get hold of Visual C++, and indeed, the example applications do work when compiled with Visual C++.
    However, the mere fact that that identical source file generates a fatal exception when compiled with Borland C++, and in a TestPoint environment that sequence of calls gives the same problems, gives me doubts about the quality of the NI software.
    Apparently Visual C++ gives an environment that prevents the exception from happening or catches it without anyone noticing.
    Or perhaps the MSVC .lib file is more than just an import library.
    One way or the other, we invested in four NI 4060 cards to be used in our factory test systems. We really want to use these instruments, and will probably buy more if we get them to work. Our test software is mainly written in TestPoint, with time-critical parts and low-level stuff written in C/C++, using the Borland compiler.
    Not being able to get this combination to work would be a major dissatisfier.
    Best regards,
    Bert Broekhuizen
    Agere Systems Nederland B.V.

  • Programming DAQ Board using C++ Builder 6.0

    "Hello,
    I'm trying to program PCI-DIO-32HS using C++ Builder 6.0 and DAQ driver 6.9.3 in Windows XP.
    I added nidaq32b.lib and nidex32b.lib to my C++ project, and compiled C++ file slightly changed from Borland C example, but always got the error message related with something of initialization.
    So I made lib files from the start using implib command, but got no results either.
    Could anyone let me know the another way?"

    Make sure you add the include and library paths to your C++ directory paths. Are you getting compile errors or run-time errors? I would also try running some of the shipping examples for the PCI-DIO-32HS.
    Joshua

Maybe you are looking for

  • Document splitting of customer

    Hi SAP BOSS    While posting the cross business area trasnsaction Customer Credit  Bank Debit i`m getting error will be line Item 001 not fill in "Profit Center. Please Help Me & i will Assing Point . We r using Ver. ECC 6 B.Purushottam

  • Is it possible to delete data selectively from Business content cubes

    Dear Experts,          Requesting you to help me out to know, is it possible to delete data selectively from Business content cubes. When I'm trying to delete selectively from Business content cubes, the background job gets cancelled with ST22 logs s

  • Import to mini hangs. Why?

    Morning, I've got a 4G mini that I'm having problems with. I've done the reset/restore. After that I try to import a playlist. It will do appox. 250 songs quite quickly, then it slows to a crawl, then it just hangs. I then "tell" it to stop the impor

  • Rules for messages in iCloud preferences not working.

    I have set up a rule that all emails addressed to my alias are forwarded to a sprecific folder, this is not working, any ideas?

  • Instantiating interfaces???

    since an interface is not a real object but just a behavior an object has, why is it okay to, say, addActionListener(new ActionListener(){actionPerformed(ActionEvent ae){}}); since ActionListener is merely an interface. or for instance adding a Runna