Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

second analog input scales wrong

I want to measure two channels at the same time with different voltage ranges:

DAQmxCreateAIVoltageChan(taskHandle,
                "Dev1/0","", DAQmx_Val_Cfg_Default,minVal0,maxVal0,DAQmx_Val_Volts,NULL);

DAQmxCreateAIVoltageChan(taskHandle,
                "Dev1/1","", DAQmx_Val_Cfg_Default,minVal1,maxVal1,DAQmx_Val_Volts,NULL);

when I read the results with DAQmxReadAnalogF64, the values of the second channel are scaled with the parameters of the first channel, for example:

channel0: [0 10]
channel1: [-0.1 0.1]

then the values from channel1 are between 0 and 10 instead of -0.1 and 0.1. Can someone help me?

Thanks
0 Kudos
Message 1 of 4
(4,565 Views)

Hello!

Which DAQ hardware do you use?

Regards,
Wolfgang

0 Kudos
Message 2 of 4
(4,546 Views)
I have a NI PCI-5122 (14 Bit 100MS/s Digitizer) and I installed the DAQmx 8.1 software

thanks,
Deran
0 Kudos
Message 3 of 4
(4,542 Views)
Hello Deran!

The PCI-5122 is a Digitizer. For this Digitizer you should install NI-SCOPE.
NI-SCOPE 3.1 installs NI-DAQ 8.1, IVI Compliance Package 2.3, NI-VISA 3.6, among other software (see readme.htm for more info).

http://digital.ni.com/softlib.nsf/websearch/C0489666CE6F58468625719500636C2C?opendocument&node=132060_US

If you have installed NI-SCOPE you should use the the NI-SCOPE library.
Examples and Documentation you can find after the installation of NI-SCOPE at
Start >> All Programs >> National Instruments >> NI-SCOPE
and here
http://digital.ni.com/manuals.nsf/websearch/44EEAE2AD6F15D2086256EEC006942E3?opendocument
http://zone.ni.com/devzone/conceptd.nsf/webmain/EF50F1961863583D862568DB00683667?opendocument
http://zone.ni.com/devzone/devzone.nsf/webcategories/47B945D23E10244F8625678600592F72

Regards,
Wolfgang

0 Kudos
Message 4 of 4
(4,532 Views)