03-11-2008 12:39 PM
03-12-2008 06:10 PM
Hello Venkat,
Currently DAQmx is not supported for Delphi Pascal. We do have wrappers available, however they have not been fully tested. I am assuming that you are using these wrapper files, which can be found at the following location: Can I Make NI-DAQmx Calls From Borland Delphi?. These are the most up to date files we have for Delphi Pascal support. You can modify these files to include definitions, provided you define them as documented in the ANSI C help files.
I hope this helps!
Regards,
03-13-2008 12:03 PM
03-16-2008 08:15 PM
Hello Venkat,
I am glad that you were able to get the wrappers working properly. Let me try to answer your questions.
1. Double buffering was a concept used with the Traditional NI-DAQ driver. With DAQmx, double buffering is has been replaced by the concept of the circular buffer. To achieve this, simply set the acquisition mode of the DAQmx timing function to continuous. The buffering will then be handled for you by DAQmx.
2. The maximum sample rate of the 6251 is 1.25 MS/s on a single channel. This means you can read a signal up to 625 kHz (1.6 us) and still maintain Nyquist. When using multiple channels, the maximum sample rate becomes 1.00 MS/s aggregate. This means that this sample rate is split over the number of samples used. A 5 ns update rate would correspond to a 200MS/s sample rate.
An additional important aspect to keep in mind is that the maximum sample rate is divided down by N to achieve lower sample rates, where N is an integer. This is important to keep in mind when selecting the sample rate.
I hope this clears some issues up.
Regards,