LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

HELP -- AI_Configure returns -10003

Hi all. I am using a 6024E PCMCIA card. I am monitoring several
items with it and controlling one. Everything works except for the
feedback I get back from the item I'm controlling. It caps out at 5V.
So I thought, "Oh it's the polarity, I need to switch it from +/-5V
to 0,+10V". But using AI_Configure returns -10003 (Invalid numeric
parameter).

Measurement and Automation works just fine (0,+10V), but my C++ app
can't change the polarity!!! What gives? The actual line is:

return ::AI_Configure(1, channel, 0, 10, polarity, 0);

I pass in 0 for polarity and it works, I pass in 1 for polarity and it
gives me -10003!!!

Thanks in advance
0 Kudos
Message 1 of 4
(3,431 Views)
I'm not sure what the problem is for you. I tried it with NI-DAQ 6.9.1 and the same PCMCIA DAQ card and it worked fine. Is the polarity variable declared as a short? Did you try sending in just a constant value of "1"?

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,430 Views)
Yes I tried "1" and it is a short. I went ahead and adjusted the gain
instead (-1 which is 0.5 and gives me +/-10 instead of +/-5). I still
don't know why it's not letting me set the polarity but I'm not going
to worry about it now 🙂

Thanks

Chris Matthews wrote in message news:<506500000005000000ED800000-1023576873000@exchange.ni.com>...
> I'm not sure what the problem is for you. I tried it with NI-DAQ
> 6.9.1 and the same PCMCIA DAQ card and it worked fine. Is the
> polarity variable declared as a short? Did you try sending in just a
> constant value of "1"?
>
> Best Regards,
>
> Chris Matthews
> National Instruments
0 Kudos
Message 3 of 4
(3,430 Views)
I realize this is an old post, but I came across in a search, and I wanted to clear the air in case anyone else find this. The reason why you can't set the polarity of the DAQCard-6024E to unipolar is because this board is a low cost E Series board and it does not support unipolar mode. These low cost boards only support bipolar mode, so the only way to acquire signals greater than 5V is to set the gain to -1 (0.5) in order to achieve a bipolar range of +/-10V.
0 Kudos
Message 4 of 4
(3,411 Views)