MATLAB Answers

Signal Ghosting using NI USB-6001 with Simulink

14 views (last 30 days)
Ankit Gupta
Ankit Gupta on 9 Nov 2017
Commented: Ankit Gupta on 6 Dec 2017
We have been working with the USB-6001 in our experiment, and any time more than 1 channel is being used (i.e. AI0 and AI1) the signals seem to be crossing between the two channels. Shown below is the scope result of a sine wave supplied to channel 0. Channel 0 is yellow and channel 1 is blue. The blue signal is channel 1, which is not connected to any signal. The result, however, shows channel 1 closely following channel 0.
An image of the Simulink code used to process this signal is shown below.
Can anyone help me troubleshoot this as to why this ghosting is happening. We also tried using DAQ with LabVIEW which worked just fine without any ghosting but couldn't understand this issue on matlab We are using R2017a ver.
Thank You

Answers (1)

Andrei Ursache
Andrei Ursache on 6 Dec 2017
For an explanation on why you observe ghosting when acquiring from a multiplexed DAQ device such as NI USB 6001 with no signal connected to channel AI1 see
If you connect signals to both AI0 and to AI1 and still observe ghosting, make sure that TerminalConfig (Differential/SingleEnded) specified in the Analog Input block channel parameters is as intended and that the external wiring is correct for the specified TerminalConfig (refer to DAQ device data sheet pinout diagram).
  1 Comment
Ankit Gupta
Ankit Gupta on 6 Dec 2017
We still sees ghosting , both channels are connected and selected differential. both channels follows the high voltage signal. we also tried daq devices and it happens in other daq devices too( same model)

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!