Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming NIDAQmx in Delphi Pascal

I am trying to convert a Delphi Pascal program that controls a  data acquisition board using  traditional NIDAQ to work with a PCI-6251 board that can use only NIDAQmx.  I am running across two problems:

1.  The documentation for programming in ANSI C is very incomplete.
While some commands seem to be documented, others are not very well
documented.  For example, I would like to initialize my program by
searching for boards (I am using a PCI 6251 board) and checking the
serial number.  I can apparently obtain this using the
DAQmxGetSysDevNames command, but there is no description in the
documentation about what type of arguments this function takes, and I
cannot get it to work.

2.  The header file for Pascal (nidaqmx.pas) that I obtained from the
support pages is full of errors:  they have a number of <not
supported> lines within them which prevent compilation.  Is there a more complete header file available?



0 Kudos
Message 1 of 2
(3,453 Views)

This is a link to a discussion forum where they clarify some issues with the function data types . In the C Reference ("C:\Program Files\National Instruments\NI-DAQ\docs\cdaqmx.chm"); that I guess you know where it is located, shows that “int32 __CFUNC DAQmxGetSysNames(char *data, uInt32 bufferSize);” where it takes a pointer of a char and an unsigned integer.

I will like to tell you that Delphi is not supported by National Instruments so help is very limited but you can try this link I found it in this NI Forum and it looks it worked for the customer.  I’m providing this as a work around to the incomplete header we have for Delphi. 

Message Edited by Jaime F on 09-18-2007 05:00 PM

Jaime Hoffiz
National Instruments
Product Expert
0 Kudos
Message 2 of 2
(3,427 Views)