Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
23 ratings:
 3.13 out of 5   

Archived: NI-DAQ and the Delphi Language Interface

This document has been archived and is no longer updated by National Instruments

Note: This page is about NI-DAQ also known as Traditional NI-DAQ (Legacy). NI-DAQmx replaced Traditional NI-DAQ (Legacy) in 2003. NI strongly recommends using NI-DAQmx for new designs and migrating existing Traditional NI-DAQ (Legacy) applications to NI-DAQmx. Please review the Getting Started with NI-DAQmx guide for more information on migration.


Primary Software: Driver Software>>NI-DAQ
Primary Software Version: 6.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
When I install Traditional NI-DAQ 5.x or 6.x with the language interface option, there is a Borland Delphi support option. Choosing this installs an NIDAQ.PAS file in the nidaq\include directory. How do I use this file with Delphi? Is there a Delphi language interface for Traditional NI-DAQ 7.0 and later, or for NI-DAQmx?

Solution:
To use this file in your Delphi 2.0 project, somewhere in your source code you need to place:

uses NIDAQ;

and simply include this NIDAQ.PAS file in the Delphi Project (.DPR).

This same header file can be used in 16-bit Delphi (with Traditional NI-DAQ 5.0) if you change one line in the header file:

from: NIDAQDLL:="nidaq32.dll";

to: NIDAQDLL:="nidaq.dll";

There is no language interface for Delphi in Traditional NI-DAQ 7.0 and later. Although National Instruments does not officially support Delphi with the NI-DAQmx driver, you can refer to KnowledgeBase 3D8C2TPC: Can I Make NI-DAQmx Calls From Borland Delphi? for information on how to call NI-DAQmx from Delphi using a wrapper DLL.

Related Links:
KnowledgeBase 3D8C2TPC: Can I Make NI-DAQmx Calls From Borland Delphi?


Attachments:





Report Date: 02/27/1997
Last Updated: 10/07/2010
Document ID: 0UQFO1L7

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