Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

delphi 6 to read data from 6024E

Hello,

I´m a newbie and I´ve got an easy question. I have an application (written in Delphi 6) and I want to read data from the the 6024E card. The time to read is 3 seconds. I wnat to read chanals 1 and 2. What is the easiest way?
0 Kudos
Message 1 of 2
(2,511 Views)
Hi,

Since you will be making driver level calls for the 6024E hardware, you will need the appropriate header files and library files for the driver (nidaq32.dll). This is essentially included in the NI-DAQ driver. When you install the NI-DAQ driver (install driver before hardware), you will have an option to install support for different programming environments. You will want to include support for Borland. Once you install the driver with support for Borland, you will have a National Instruments\NI-DAQ\Include directory which will include your header files and a Lib directory which will include the library files.

At this point, you should be able to use the example programs that ship with the NI-DAQ driver. They will be located in the Examples
directory. The example you will probably want to use is one similar to "SCANsingleBufAsync.c". I'll include the code for this example. The example does an acquisition on 2 channels. You can specify the rate and duration by setting the buffer size (buffer/rate = duration). Anyway, hope that helps.

Ron
0 Kudos
Message 2 of 2
(2,511 Views)