From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-14-2018 12:59 PM
Hello everyone
I am using following setup: NI cDAQ 9174,NI 9234 (AI) and NI 9269 (AO). The Matlab data acquisition toolbox is used with DAQmx.
In the most simple case an analog output is placed over a resistor of 1kOhm and at the same place the voltage is measured by the analog input card.
The signal is a chirp cosine (sweep) with an amplitude of 1 V that increases in 30 s from 1 kHz untill 25.6 kHz. This maximum here is half of the samplefrequency (51.2 kHz). The problems I experience are visible in the attached PDF. Also the code to generate and measure the signal is added.
There is a fixed delay in the beginning of the measurement. When the frequency increases, the amplitude decreases (this is not the case when measured with an oscilloscope). Also there is some strange behaviour at the end of the measurement (even far from the maximal value). In this way I cannot rely on the defined output, and I always have to measure it as well.
Is it possible to explain these effects by for example some kind of low pass filter that is not mentioned in the datasheet or a feature of the BNC cable itself? The amplitude difference worries me the most.
Thanks in advance
11-15-2018 05:56 AM
Since you have a simultaneous sampling AI, I would always do a 2channel aquisition and read the AO back. (and if you use the same range, you can swap the channels, repeat you measurement and compensate the linear gain/ phase errors between both channels 😉 )
However it looks like you don't start both tasks (AO and AI) at the same time. Have a look at the examples on how to do that and/or post your vi.
11-15-2018 06:56 AM
Hello
I am not using LabView, but Matlab. The synchronization is a minor problem and cannot be solved according to what I find online.
The main question is why the amplitude decreases for increasing frequency. I use 1 channel on the AO card to generate the signal and 1 channel on the AI card to measure the same signal (over a resistor).
Thanks in advance
11-15-2018 09:42 AM - edited 11-15-2018 09:44 AM
Oh, the frequency response.. well you measure complex impedances ..
different setups , different cable capacities ..different input impedances..
And why not read two channels ?
11-15-2018 09:52 AM
I indeed measure the voltage drop over a real resistor. The setup stays the same. It is possible that the internal voltage drop increases because of the frequency (the capacitance/inductance is dependent on the frequency). But when measured with an oscilloscope this decrease in amplitude is not seen. What would I measure with the second channel?