Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 653

How to specify "single ended" or "differential" data acquiring in NIDAQmx c++

$
0
0

Dear all,

i wrote a program in VC++ which acquires some analog voltage channels using NIDAQmx. By means of the "DAQmxCreateAIVoltageChan()" function it works properly, but I've faced a question:

When I measure a sine wave as a input channel whith diffrential terminals (pins) on NI-Device, there is no problem but if I connect the input signal in single ended form (connect input signal to each single terminal and connect GND of NI-Device and Signal generator together), there is a irrigular and alternative offset (DC value) in aqcuiered data that shows there is an error in connection of GND's. (I'm sure about function generators)

Is there any specific function to assign exactly that input data should be measured in differential or single ended form?  I mean, should I write seperate codes in C++, if I want to measure input signal in both forms of differential and single ended or does the mentioned function satisfy both needs (when the answer is positive wherefrom does this fault emerge)?

Thanks a lot for your helpfully replies in advance,

sincerely yours,

Mohammad Harati


Viewing all articles
Browse latest Browse all 653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>