From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

CWAI problem when configuring card: The value of a numeric value is invalid

Hi!

I'm not able to configure the CWAI object with Configure method. After I call that method, I always have the error: "The value of a numeric parameter is invalid".

Here's a sample of my program:

CWAI.Channels.Add("0", 10.0, -10.0, cwaiDIFF, cwaiDC);
CWAI.ChannelClock.Frequency := 10000;
CWAI.NScans := 1000;
CWAI.StartCondition.Type_ := cwaiNoActiveCondition; //Immediate start
CWAI.StopCondition.Type_ := cwaiContinuous;
CWAI.AcquiredDataEnabled := False;
CWAI.ProgressEnabled := False;
AI.CWAI.Configure;

I'm using Delphi 5 with NT SP6.

I can acquire data with MAX test panel.

What I'm doing wrong?
0 Kudos
Message 1 of 2
(2,155 Views)
Hi,

I would suggest you to take a look at the set of examples provided in your c:\program files\national instruments\ni-daq\examples\delphi folder. Also please do take a glance at the readme file.

Please do let me know if you still have questions.

Sincerely,
Sastry V.
Applications Engineer
National Instruments.
0 Kudos
Message 2 of 2
(2,155 Views)