Jump to content
  • 0

Data Translation DT9847 Analog Output Error with Matlab


Ivan Howitt

Question

Overview -  Successfully implemented MATLAB application with DT9847 with a Dell Precision 7530 laptop using the software and driver configuration outlined below.   When attempting to implement the same application on a Dell Precision 5570 laptop, the application failed to operate correctly.  The application involved using a single input and output channel on the DT9847 simultaneously and in background mode.  Based on troubleshooting the issue with the Dell Precision 5570, it was found that the analog output channel of the DT9847 was not operating correctly.

Configuration:

Dell Precision 5570 | 32GB Memory
Operating System:  Windows 10Pro; Version 22H2
MATLAB:  '9.6.0.1472908 (R2019a) Update 9'
Data Translation Open Layers  7.8.2
Data Translation DT9847-3-1 (Device ID: 'DT9847-3-1(00)')

   Analog input subsystem supports:

      -10 to +10 Volts,-1.0 to +1.0 Volts ranges

      Rates from 1000.0 to 216000.0 scans/sec

      3 channels ('0','1','2')

      'Voltage','IEPE' measurement types

      Analog output subsystem supports:

      -3.0 to +3.0 Volts,-10 to +10 Volts ranges

      Rates from 30000.0 to 216000.0 scans/sec

Digital subsystem supports:

      4 channels ('port0/line0','port0/line1','port0/line2','port0/line3')

      'InputOnly','OutputOnly' measurement types

 

Troubleshooting – based on testing the input and output channels independently using an O-scope and signal generator, the input channel operated as expected and the output channel failed.  The Matlab code used for testing is attached.  The attached graph is a screen capture of the output from the DT9847 D/A while running the Matlab script with a Dell Precision 5570.  As indicated in the code, a 10 second sinusoidal signal was transmitted from the PC at 100Hz 0.9V0-p.  The graph indicates the DT9847 output is triggered, but incorrectly.  Note, this same code produces the correct output using the same configuration outlined above but implemented on a Dell Precision 7530.  

  image.png.58ab67ebeb069a16b8f549bd875922e3.png    

 

DT9847_TestSetup_II.m

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Hello,

We are not getting complaints that the Dell Precision 5570 is problematic. Will it work if you moved only the USB connection back to the Dell Precision 7530 without changing anything else?

Have you tried testing with the QuickDAQ program? You should be able to generate a sine wave using the Output tab. It would be interesting to know if it also fails to output when using the 5570.

Best regards,
John

Link to comment
Share on other sites

  • 0

Hi John,

Thanks for the response.

"Will it work if you moved only the USB connection back to the Dell Precision 7530 without changing anything else?"  Yes, it does work fine when switching back to the 7530 with no change in setup between the two computers.

"Have you tried testing with the QuickDAQ program?"  Yes, using the QuickDAQ program there was no issue with generating a sine wave with the 5570. 

Best,

Ivan

 

Link to comment
Share on other sites

  • 0

Hi Ivan, 

Because of a bug, the DAQ Adapter MatLab support for analog output relies on an older software version. A component may have inadvertently been updated to new and broke the support. Could you wipe all the Data Translation software off the 5570, including the DAQ Adapter support for MatLab? Once this has been done, (first) reinstall Open Layers 7.8.2 and (second) install the DAQ Adapter support.  

Best regards,
John

Link to comment
Share on other sites

  • 0

Hi John,

Followed your suggestion from 6/23 - uninstalled the DT Omni software and drivers and uninstalled the DT Matlab toolbox.  Reinstalled the DT Omni CD from your link (v7.8.2) and next installed the DAQ adapter from the link you provided.   After updating obtained the same result as originally posted.  Any additional thoughts.

Thanks,

Ivan

Link to comment
Share on other sites

  • 0

Hi Ivan,

Please send me a screen capture from the Control Panel->Programs and Features showing the Data Translation software and version column, like the one below. 

image.png

Link to comment
Share on other sites

  • 0

Hello @Ivan Howitt.

Thank you for the screen capture.  Please launch MATLAB and uninstall the Data Translation Hardware Support Package via the Add-On Manager.  Close MATLAB and then uninstall those four Data Translation programs (in your screen capture) via the Control Panel - Programs and Features.  Afterwards, restart your computer.  Launch MATLAB and reinstall the Data Translation Hardware Support Package via the Add-On Manager.  Close MATLAB again and then install Data Translation's OMNI software v7.8.2.  Restart your computer and then go back into MATLAB to retest your code.

Regards,

Fausto

Link to comment
Share on other sites

  • 0

Hello @Ivan Howitt.

Thank you for testing.

Please connect your DT9847-3-1 module to your Dell Precision 5570 laptop.  Confirm that you are using the EP394 external power supply with the DT9847-3-1 module.  Open Windows Control Panel and click on the Open Layers Control Panel (32-bit) applet.  Select your DT9847-3-1 device and click the Advanced button.  Verify that the coupling is 'DC' for all three channels and the current source is 'disabled' for all three channels.

image.png

 

Close the applet and download the attached MATLAB example. DT9847_background_Streaming_AI_AO_v1.m

Launch MATLAB and open the downloaded example.  Verify the device name in the code matches your device.  Using a BNC-BNC cable loop the analog output channel to analog input channel 0.  Run the example.  Does MATLAB create the following plot?

image.png

 

Regards,

Fausto

Link to comment
Share on other sites

  • 0

Hello Fausto,

Thanks for the suggestions.  I was very hopeful when I opened the DT9847 Open Layer Device Driver and saw that they were all unspecified.  Unfortunately, this did not resolve the issue, but did provide additional insight into the issue.  At least, I hope so.

To assist in further evaluating the issue, the following are screen shots of the setup and QuickDAQ setup verification, followed by the results from running the Matlab Script you provided.  Look forward to any additional thoughts you may have.

Thanks,

Ivan

DT9847 Control Panel with settings updated as suggested in your post.

image.png.7577a8dc5af2e051e4e8911d2c64c3ce.png

Matlab Add-On-Manager:

image.png.3f10dff5401bd028f5d6c3bd42bbc675.png

 

Data Translation Stack

image.png.548115f8600cb8f33882b67d028a9d3d.png

QuickDAQ Operation to Verify DT9847 D/A to A/D Hardware & Operation

image.png.3a2412ec30e21ce146dee4c8ae314600.png

Results of DT9847_background_Streaming_AI_AO_v1.m

image.png.db2c10c617c7820b341dc6ee83895c3c.png


Results with modified Data Signal DT9847_background_Streaming_AI_AO_v1.m

The original output data signal which resulted in the recorded 50Hz rectangular wave graphed above was a 50Hz sinusoid with +/- 2 Volt peak to peak.

I modified the output signal as follows, a 50Hz sinusoid with +/- 1 Volt peak to peak signal.

data = linspace(0,pi*100,s.Rate)';

%outputSignal1 = sin(data)*2;  % Original Signal

outputSignal1 = sin(data); % Modified Signal

 

This modification resulted in the same D/A to A/D response I have been observing based on the script I used for testing which was similar to the one you had provided.

 

image.png.143f0ce000b26201ffc987d33aa5ce8e.png

 

 

 

image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...