Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

configuring 6023E AI

Hi, I'm using a PCI 6023E board with LabWindows /CVI 6, DAQ 6.9.1 and MAX 2.1.3.15. I need to acquire uniploar signal, range 0/10V RSE.
 
The fonction (AI_Configure (1, 0, 1, 10, 1, 0) returns an invalidValueError, which not appears if I write
0 Kudos
Message 1 of 7
(3,832 Views)

OOoops, something happened with the forum. I start again.

I'm using a PCI 6023E board with LabWindows /CVI 6, DAQ 6.9.1 and MAX 2.1.3.15. I need to acquire uniploar signal, range 0/10V, RSE.
 
The fonction AI_Configure (1, 0, 1, 10, 1, 0) returns an invalidValueError, which not appears if I write AI_Configure (1, 0, 1, 10, 0, 0).
With this last case, the acquisition is OK, but bipolar +/-5V.
 
Anyone could help me please ?
0 Kudos
Message 2 of 7
(3,828 Views)
FJB,

PCI 6023E does not support unipolar ranges. there are only bipolar ranges:
+- 10V
+- 5V
+- 500mV
+- 50 mV
therefore, the parameter "Polarity" set to unipolar leads to the error InvalidValue.  another point is, that AI-Configure only lets choose you between 20, 10 and 5 for input range. i dont know what happens if you choose 5, but 20 is +-10V and 10 is +-5V.

Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 7
(3,826 Views)
Many thanks Norbert, this wasn't quite clear in the catalogue or manual. So I will set up it to bipolar +/-10V.
0 Kudos
Message 4 of 7
(3,822 Views)
There's another thing you should be aware of: the basic input range of the board is +-5V. The +-10V range is achieved by applying a "gain" of 0.5 to the input signal. Your call to the configuration function should specify 10V bipolar range.

To get +-10V range, you must use -1 as the gain argument when you scan or read the analog inputs.

Confusing, eh?

You might want to look into using NI-DAQmx if you can (that is, if you're programming for Windows).
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 5 of 7
(3,812 Views)
Thanks John. Is DAQmx easier to use to configure this board ?
0 Kudos
Message 6 of 7
(3,808 Views)
>Is DAQmx easier to use to configure this board ?

DAQmx doesn't do a configuration as such. When you set up a channel for analog input (or output) you tell the driver the expected (or desired) range of your signals, and the driver picks the best device configuration for that range.

If you need to know the gain selected by the driver, or the voltage range, you can query the driver for that information.

DAQmx takes some getting used to- it's quite different from traditional NI-DAQ, but once you get past the learning curve, it's much easier to use.
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 7 of 7
(3,799 Views)