Archived: NI-DAQ and the Delphi Language InterfaceThis document has been archived and is no longer updated by National Instruments
Primary Software: Driver Software>>NI-DAQ
Primary Software Version: 6.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
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?
To use this file in your Delphi 2.0 project, somewhere in your source code you need to place:
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:
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.
KnowledgeBase 3D8C2TPC: Can I Make NI-DAQmx Calls From Borland Delphi?
Report Date: 02/27/1997
Last Updated: 10/07/2010
Document ID: 0UQFO1L7