Jump to content

Paolo Neri

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Paolo Neri's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. I thought that the difference between background and foreground was Matlab waiting or not the comletion of the acquisition, isn't it? I whould perform some testing with background operation. Meanwhile, are the digital channels synchronized with respect to the analog? (i.e. digital input with analog input and digital output with analog output)
  2. Thanks. Meanwhile, I tried to generate the output from the analog out and record it on the anolog input with the matalb script attached in my first post. I generate a sine wave and I expected to read it synchronously on the input. But I find that I have a (usually) small time delay in the recorded sine wave, so that the output channel seems to be not synchronized with the input: is there any specific code to synchronize the channels (both analog and digital, if possible)? Thanks regards Paolo
  3. After some browisn on the forum, I followed the instruction provided at the link: https://forum.digilent.com/topic/26056-data-translation-dt9847-analog-output-error-with-matlab/ I removed all the old installation, and installed the software provided in the message from JRis, Posted on June 23. So far, it looks like I'm able to acquire the signal on analog input correctly, probably I had some old installation interfering with my scripts. Anyway, it is still needed to modify the functions "AsyncOLChannel" and "ChannelGroupOL", as explained by Fausto Soares in the link: https://it.mathworks.com/matlabcentral/answers/1693530-error-when-trying-to-start-acquisition-from-data-translation-device
  4. I'm testing my DT9847-2-2, I connected analog output 0 to analog input 0 and, by using QuickDaq software, I'm able to produce a sinusoidal wave and to acquire it on the analog input. I'm also checking with an oscilloscope and the operation looks fine. Now, I'm trying a simple matlab script (attached as .m file and copied at the bottom of the question) which should do exactly the same. If I plot the generated signal (i.e. dout, figure1) I can see the proper sinusoidal function, while if I plot the acquired analog input I see something like this: On the oscilloscope, I see the voltage going from 0 to -10 V, and then going back to 0 gradually when the command delete(s) is performed. I installed version 7.8.9 of the DT software (I also tried version 7.8.2, same result) and I applied the fix to the scripts "AsyncOLChannel" and "ChannelGroupOL", which solved the first Matlab errors. Any suggestion? Thank you very much MATLAB SCRIPT %% Initialize DT DAQ clear close all clc dev = daq.getDevices(); % NEEDED to obtain correct Device Name for DT9847 devID = dev.ID; % ID for the DT9847 % Sets up session with the DT-DAQ (Needed to setup the session) s=daq.createSession('dt'); Rate = 50000; Duration = 2; tout = 0:1/Rate:Duration; fout = 10; dout = 0.9*sin(2*pi*fout*tout).'; % Set Sampling Rate s.Rate = Rate; % Setup output channel as Voltage with the default range chOut0 = addAnalogOutputChannel(s, devID,'0', 'Voltage'); chIn0 = addAnalogInputChannel(s, devID ,'0', 'Voltage'); % Queue the output to be output to the channel queueOutputData(s, dout); figure(1) plot(dout) % Transmit the output based on sampling rate and data samples queued [din, tin] = startForeground(s); delete (s); figure(2) plot(tin, din) DT9847_InOut_Test.m
  5. OK, I'm not sure if I'm shy for this issue, or if I'm mad with the manual... but I found an adaptor for the power supply and now it looks like stuff are working properly, I can read inputs and outputs, let's check with some more testing to be sure there are no other surprises... Thank you JRys
  6. I get mad if this is the solution, because I found on the manual that I could use USB as power supply... 🤣Additionally, the power supply arrived with the American socket, while I'm in Europe, but I can find an adaptor to try if you think this could solve the problem...
  7. I tried the device on a desktop worksation with windows 11 pro. It was assembled by a computer dealer, thus it's not branded, the processor is Intel(R) Xeon(R) W-3245 CPU @ 3.20GHz 3.20 GHz. I also tried on a HP Zbook laptop, still with windows 11, but I get exactly the same results, +-10 V noise and nothing from the output channel. Yes, on both machines I started by installing the Omni software downloaded by MC website (DataAcqOMNI_V7.8.9) with no issues. Any other option to try? Can it be an issue on device firmware?
  8. Thank you for your suggestions. Now I'm working with an oscilloscope and a function generator. I split the function generator signal with a T-BNC connector: the oscilloscope properly reads the sinusoidal wave, while the DT9847 still show the same random +-10 V signal. I tried both channels, same result. Additionally, I tried to connect the DT9847 output to the oscilloscope, but it does not produce any wave form. Now I'm trying to uninstall and reinstall all the software (maybe a driver issue?). The device is brand new.
  9. Dear support team, I'm Paolo Neri, from the University of Pisa. I jus received my DT9847-2-2 (s/n: 219C6F2). I was testing the device with QuickDaq, I can see my device connected and the channel list. But when I try to run an acquisition from anlago input (without any signal connected to the BNC) I get a noisy signal which covers the whole range +-10V. I also tried to follow the manual (pages 52-57) to acquire a sine wave produced by the analog output, but I get the same +-10 V noisy signal. Here is a screenshot to show the acquisition: What am I doing wrong?
×
×
  • Create New...