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

Similar Messages

  • How to use Mulitple DAQs with a single triggered event on only one of the DAQs

    I have three PXI6115 and would like to tie all these to a single triggered event on one of the DAQs. I've scaned the examples and any assistance would be greatly appreciated....

    TCjr,
    Please refer to your other post:
    How to use Multiple DAQs with a single triggered event on only one of the DAQs

  • Can I use a DAQ with my CCD?

    I have a multifunction DAQ card and LabView 6.1. I would like to capture images using a CCD camera and am hoping that all I need is software, is this available? Do I need a new card and if so which one?

    If your camera is analog, you can use you multifunction DAQ card to read in the analog signal. You will have to monitor the signal for the H-Sync and the V-Sync pulses and then convert the meaningful analog picture signal into digital values. For more information on the analog video signal please reference the following document:
    Anatomy of a Video Signal
    If the camera is digital, you will not be able to read in the signal with the multifunction DAQ board. The multifunction DAQ boards can perform static digital input and output (software timed). For reading in a digital signal you will need a hardware timed digital acquistion. Our
    DAQ boards in the 653x family can be used for hardware timed digital input and output. In this situation, you would use the pixel clock of the camera to time the acqusition of the 653x device.
    If the camera is analog you should consider purchasing one of National Instruments framegrabber boards for you acquistion. These boards are designed specifically for this purpose. (NI 1409 or NI 1411)
    If the camera is digital, I would suggest visiting our online camera advisor to see if your camera is compatible with our digital framegrabbers (NI 1422, NI 1424, NI 1428)
    Industrial Camera Advisor
    Will Denman
    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

  • Can I use a DAQ PCI-1200 with Labview 5.0.1?

    I have a Labview 5.0.1 software, and I want to use PCI-1200 with it. Can I do that? My OS is Windows XP, but I can change it with Windows98/2000.

    Hello jhylee,
    The latest NI-DAQ driver for the PCI-1200 is 6.9.3, which is compatible with LabVIEW 5.0.1. LabVIEW 5.0.1 supports Windows 2000, but not Windows XP (although it may still run).
    Have a nice day!
    Robert M
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • How to use 9264 card with daq

    Hi friends,
    I m using labview 8.6 version. I hve interfaced labview with cdaq 9172.
    I have used 9201, 9203 ,9219 card.Now i want to use 9264 card i.e analog output card.I am not getting how to use it .wheather  I hve 2 use on function plate express--> input-->daq assistant or something else.please help me. i want to control valve through 9264.i am sending some screen shot how i m trying 2 use.
    Attachments:
    1.jpg ‏4373 KB
    2.JPG ‏103 KB
    4.JPG ‏168 KB

    Hi Ajju
    You can use the DAQ Assistant express VI, but since the 9264 is an output module you will need to choose "Generate Signal" instead of "Acquire Signal" in the dialog. Then you will specify what you want to output, from which channels, how fast etc. in the same maner as you do when acquiring a signal.
    Hope that clears up teh confusion
    Best Regards
    David
    NISW

  • 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

  • Traditiona​l ni daq using tbx 68t with error 10685

    Hi im new, I have tried to create a program that will allow me to accept temp readings. i have a tbx 68t device and a pci 4351 card from which this is read.
    I have uploaded the vi.
    i keep getting a message of 10685 - the clock rate exceeds the boards recommended max. rate, even when i have the clock rate to a low 10.
    any help is much appreciated, i am fairly new to daq with labview. i do appolgise i have yet not annotated on the program.
    Thanks
    Notay
    Attachments:
    thermocouple example.vi ‏37 KB

    Hi again Notay,
    The 4351 Device has specific rates that you can sample at for single or multi-channel acquisition. There are six possible reading
    rates – 10, 50, and 60 readings/s in single-channel acquisition mode and 2.8, 8.8, and 9.7 total readings/s in multiple-channel acquisition mode.
    See the data sheet or manual linked bellow for more information.
    http://www.ni.com/pdf/products/us/2mhw296-297e.pdf
    http://digital.ni.com/manuals.nsf/websearch/924939​4DFC45FA3D86256FD20078D836
    Jon B
    Applications Engineer
    NI Uk & Ireland

  • 6602: How to use 8 counters simultaneously in C++ using traditional Daq for frequency measurement

    Hi Everybody;
    I'm new to Ni-DAQ cards and working on NI PCI-6602 Card in Borland C++, I should use Traditional DAQ for my project. Now I want to use all the 8 counters simultaneously for frequency measurement.
    1.Where should I connect my External signal, to source or gate, at present I have connected to source.
    2. How to set parameters and start the counters simultaneously, what are the parameters to be set for frequency measurement.
    3.How to start counting.(parameter settings)
    4.Should I set any PFI Lines or by default are they set to counters.
    status = GPCTR_Set_Application (1, gpctrNum, ND_SIMPLE_EVENT_CNT)
    status = GPCTR_Change_Parameter (1, gpctrNum, paramID, paramValue)
    iStatus = GPCTR_Watch(1, gpctrNum, ND_ARMED, entityValue);
    status = GPCTR_Watch (deviceNumber, gpctrNum,ND_COUNT, entityValue)
    what is the paramID in my case, Clear and appropriate answers would be very helpful and thanks in advance.
    Message Edited by Pavan K on 07-11-2009 12:38 AM

      I have made a program with LabVIEW 5.1 based on NI 6602, in which four counters were used.
      Counter 3 is used to generate pulses, which are directed to the gates of counter 0, 1 and 2. 
      The source terminals of counter 0,1 and 2 receive pulses, individually, to count how many pulses appear during the time interval of each gate pulse.
      The results are stored in a data file.
      In order to test its performance, only one signal of ramdom pulses is sent to counter 0,1 and 2.
      But I find that at the beginning the counts for the three counters are the same, but the following counts are totally different!
      What's wrong? And how to solve such a problem? Does it have something related with synchronization?
      Thank you very much!

  • Can I use my DAQ on two different computers?

    Hi there.
    Sorry if this might seem like a stupid question but I'm trying to save money lol. I have two test stations, each station has it's own computer and power supply. The power supply powers a certain device and the computer communicates with it via an USB to RS422 serial converter. I am using the 2 analog outputs on my NI-USB 6008/6009 DAQ to control the 2 power supplies. AO 0 to control the power supply on station #1 and A0 1 to control the power supply on station #2.  I can control these 2 power supplies just fine with one computer connected to my DAQ. But i need each computer to be running tests independently. I only have 1 DAQ but 2 computers, is there way to use this DAQ on both computers???
    thanks for any help!
    Don't think twice.
    Solved!
    Go to Solution.

    No.  Because there is no way you can take one USB-DAQ and plug it into two computers at the same time.
    You would probably be better off having one PC that communicates with the USB-DAQ and have your application on one computer talk to the other computer to pass commands and get back data from the USB-DAQ, probably by way of TCP/IP.
    I would actually make an application that only handled the USB-DAQ operation.  Then have the program that runs on each computer be the same and talk to the USB-DAQ application which would act like a TCP/IP server.  The program that is on one PC would call the IP address of the other PC.  The program that is on the same PC as your USB-DAQ server would just call the local host to establish communication.

  • How do I find the ports a pre existing program used in DAQ?

    Hi all, 
    I am setting up a laser displacement sensor and trying to utilize a pre existing program that was created by graduate students before me. There are 4 wires coming from the laser displacement sensor that need to be connected to the DAQ but we have no information telling us where these wires are supposed to attach to the DAQ in order to run the pre existing program correctly. 
    Is there any way that we could figure this out? 
    Thank you for your help,
    mccutchen12c

    James, 
    Thank you for your help! Yes, we have looked at a couple different methods on how to tell if the information had been programmed by the previous grad students and we haven't had any success in finding that information. So I believe you are right in assuming its not documented.. We will do a better job of documenting for future grad students after us. 
    I have attached our code. Any insight you could give would be greatly appreciated!
    We have an Acuity AR200-6 laser displacement sensor with green, yellow, black and a wire that isn't wrapped that all lead to the serial port in the back of the computer and ground. We then have white, blue, orange and brown wires that do not have a location.. We did some research and the are as follows:
    white: laser disable
    blue: buttons disable
    orange: voltage output
    brown: voltage RTN
    We are starting to wonder if we are just not supposed to use the DAQ.. Can you confirm the connection is solely through a serial port? 
    Cheers, 
    Carley

  • How can I use the NI PXI-6508 with Lab View 7? what are the first steps to get started??How can I use the channels with lab view 7????

    I have a 8 slot PXI system with 2 NI PXI 6508 and 1 DMM 4070 in it. I want to get started with programming the digital I/O cards (6508)! How can I use this cards with LabView 7?what is the best way to get started, or where can I get examples showing how to use the several channels?
    Thanks!
    Philipp

    Philipp,
    The best way to get started is to decide if you want to use traditional NI-DAQ or NI-DAQmx. Recently we released NI-DAQ 7.1 which provides NI-DAQmx support for the PXI-6508. In my opinion, NI-DAQmx is more efficient and much easier to use.
    To get started with examples, simply launch LabVIEW and go to Help>>Find Examples. Then expand Hardware Input and Output>>DAQmx and select the appropriate digital group for your application. This should help get you started.
    Please repost if you need addition assistance. Good luck with your application!

  • How to control a digital output signal using the DAQ assistant?

    I am using a USB 6251 DAQ board and would like to control a switch. I am gathering airflow, pressure, and acoustic data on the same board (analog input) and would like the switch to trigger when the airflow value is within a pre-determined range. Finally, I would like to reverse the polarity of the switch (to off) about a second after the initial digital signal, all of which is during continuous data acquisition.
    I am able to actuate the switch only when pressing the "run" button in the DAQ assistant window. I am proficient with data acquisition but have never tried programming an output... Please help!
    Thanks!
    -a troubled researcher
    P.S. I am running LabVIEW 8.5 as well.

    blsmith4,
    You probably won't get the control of the digital port on your card by only using the DAQ Assistant. One of the following examples should provide you the functionality that you would like out of the box:
    Digital - SW - Timed Output (Simple)
    Digital - Continuous Output (More Complex)
    Continuous Write Digital Port - External Clock - Non Regeneration (Most Complex)
    Let me know if these work better for you.
    Best,
    Jason M.
    Applications Engineer
    National Instruments

  • Using timer/counter with PCI-6221/USB-6210 to control timed-loop VI

    Dear all,
    I need to ask about two devices and one of their functionalities, PCI-6221 and USB-6210. For our NI-based system, we need to control some timings in a Timed-Loop vi, for that currently we are using PCI-6221 and we give external TTL signal (at 1 kHz) to it,
    recenntly we need to make some changes and for that we found USB 6210 DAQ to be more suitable, but we need to clear ourselves on some specific things.
    Can the counter/timers functions available in the either PCI 6221 or USB 6210 can be used to control the Timed-loop VI by giving external clock or by using their own internal clock source?
    Although we are using external clock with the PCI 6221 but we want to know about the usage of their internal clock, also are controlling timed-loop also possible for USB-6210
    Also... What if we use the RTOS, are they still able to control the timed-loop VI  without giving any 'EXTERNAL CLOCK' and using the internal clock sources of the DAQs
    Waiting for reply,
    Bests,
    RaJaf
    Solved!
    Go to Solution.

    Ben,
    I having read previous email which I send earlier with general overview, we discussed in more detail within our team and I am giviing the specific answers.
    Please check in RED the most recent answers. Blue are the questions/suggestions by your side.
    1.    Using Internal hardware clock of PCI-6221 would enable us get rid of external clock, but how to divert the internal hardware clock to the current settings. Any idea  (can you provide us with some reference manul for otherwise). I mean is there some flag-bit etc. or VI
    2.       Is it also meant that with the installation of RTOS the timed-loop can directly get the timing source from the internal hardware clock PCI-6221? --- How???
    3.       In order to make desktop to work as RT system, what is the hardware (motherboard, processor, etc..) requirement? What are the LabVIEW modules (specific name) that needed to be installed? Our platform is LabVIEW 8.6. (Currently we have windows-7 with i7 core processor)
    What kind of application are you intending for this system? ---- high-speed laser scanning system.
    Are you most concerned about accuracy, speed, or responsiveness? To control the laser mirror scanner to move at 1 kHz or 2 kHz speed. On the other hands, using PCI-5105 (128 MB memory) as a DAQ for real-time/on-the-fly data processing.
    Bests,
    RAJAF

  • OCCI problem with Borland

    I try to compile OCCI example with Borland C and receiving this error in occiCommon.h:
    typedef OCCI_STD_NAMESPACE::basic_string<utext> UString;
    1) Too few arguments in template class name 'basic_string'
    2)Declaration terminated incorrectly

    I have the same task: using OCCI class in Borland C++Builder (v6) environment. Unfortunately, the only version of OCCI-class prepared by Oracle is for MS VC++. No one tool translate that, does not matter, whether you use ORAOCCI.DLL and implib.exe or ORAOCCI9.LIB and coff2omf.exe.

Maybe you are looking for

  • All windows/tabs aren't opening from last session, even with setting checked. What's wrong?

    For a while now in Safari, if I have to close out the browser or restart my Mac for some reason, my previous tabs in Safari are not loading when I re-open Safari. I went online this week and did a change in Settings to where it would open up the opti

  • Problems with the 'Comments' field in iTunes

    First, sorry for my english (I'm danish). I've read a lot of threads here and everywhere else, but can't find a solution for my exact problem. I use Windows Vista and the newest version of iTunes. Most of my mp3 songs (35.000) are put directly in alb

  • Payment Types

    I am trying to access the Payment Types screen from HRMS Localization Seed Data Entry responsibility and getting the following error APP-PAY-07050: You cannot enter this form in USER mode. what does this mean? and how to fix it?

  • Itunes 7 song previews stop playing after 15 seconds

    30 second song previews stop in the middle of playing. They will complete if I click where they stop. iMac6,1   Mac OS X (10.4.7)   Intel Core 2 Duo

  • Use of BADI's instead of in-line modifications

    Hi! In using SAP packages, we do some customizations to cope with the requirements right? I was asked to do some modifications, and they asked me to use BADIs instead of in-line modification. Can we put evrything under BADIs? The changes were quite b