Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

delphi not finding nidaq

Returning to NI and Borland Delphi after long absense. I am using Delphi 5 and 6, NIDAQ 6.9, and a NI-6025E card.
I cannot compile new Delphi code. My problem(s) look like this:

First, Delphi does not want to find NIDAQ ([Fatal Error] Unit2.pas(49): File not found: 'nidaq.dcu'). Seems like a library directory problem but I can't solve it. I might get close though---

Next, after adding some library directories, Delphi finds NIDAQ but returns two error messages: [Error] nidaq.pas(820): Undeclared identifier: 'pf32' and then [Fatal Error] Unit2.pas(49): Could not compile used unit '..\..\..\..\Program Files\National Instruments\NI-DAQ\Include\nidaq.pas'.

Could some kind soul please stamp out my ignorance?

By the way, I can drive the board just fine with the test bench sofware provided in NIDAQ and I also do just fine with previously compiled Delphi code.

Thanks much,
0 Kudos
Message 1 of 2
(3,041 Views)
Looks like this might be a problem with nidaq.pas. The pf32 type is not defined near the top of the file where it should be. Look at the top of the nidaq.pas file and you'll see typedefs of types such as i16, u16, f32, f64, pf64, etc. but pf32 is missing. Just add the section

type
pf32 = ^f32;

and this should fix your problem.

Good luck,
Joe
0 Kudos
Message 2 of 2
(3,036 Views)