Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
daq-and-datalogging:documents:dt9837b-matlab-analog-input-synchronization [2023/06/14 05:32] – created Scandiwebdaq-and-datalogging:documents:dt9837b-matlab-analog-input-synchronization [2023/07/28 01:07] (current) – Arthur Brown
Line 1: Line 1:
-====== Synchronizing the Analog Input Subsystems of multiple DT9837B modules with MATLAB R2018b ======+====== Synchronizing the Analog Input Subsystems of Multiple DT9837B Modules with MATLAB R2018b ======
  
-This article is a guide to configuring two DT9837B modules for sychronized analog input acquisition in MATLAB R2018b.  It can also be applied to grouping other modules, of the same model, i.e. DT9837A, DT9837C, DT9847 Series, DT9857E Series.  This procedure is required since Master/Slave mode is not supported with MATLAB's 64-bit sessions.+This article is a guide to configuring two DT9837B modules for synchronized analog input acquisition in MATLAB R2018b.  It can also be applied to grouping other modules, of the same model, i.e. DT9837A, DT9837C, DT9847 Series, DT9857E Series.  This procedure is required since Master/Slave mode is not supported with MATLAB's 64-bit sessions.
  
-1. This article assumes that the target system is already configured to use Data Translation hardware with MATLAB R2018b (or newer).  If this is not the case, then refer to KB article #50741 'Configuring a Windows system to use Data Translation hardware with MATLAB R2017b' (https://kb.mccdaq.com/KnowledgebaseArticle50741.aspx).+1. This article assumes that the target system is already configured to use Data Translation hardware with MATLAB R2018b (or newer). /*  If this is not the case, then refer to KB article #50741 'Configuring a Windows system to use Data Translation hardware with MATLAB R2017b' (https://kb.mccdaq.com/KnowledgebaseArticle50741.aspx). (KB article not migrated) */
  
-2. You will need to install the latest version of Data Translation's Device Collection Manager v1.0.0.4.  Refer to KB article #50734 'DT Device Collection Manager Update' (https://kb.mccdaq.com/KnowledgebaseArticle50734.aspx).+2. You will need to install the latest version of Data Translation's Device Collection Manager v1.0.0.4. /* Refer to KB article #50734 'DT Device Collection Manager Update' (https://kb.mccdaq.com/KnowledgebaseArticle50734.aspx). (KB article not migrated) */
  
 3. Close all software applications and disconnect the DT9837B modules, if already connected to the target system's USB ports. 3. Close all software applications and disconnect the DT9837B modules, if already connected to the target system's USB ports.
Line 13: Line 13:
 5. Connect the second DT9837B module to the target system and then open the 'Data Acquisition Control Panel' applet once again.  Make note of the second module's 'DT-Open Layer Name' (a.k.a. board name).  Verify that it looks similar to the image below and then close the applet. 5. Connect the second DT9837B module to the target system and then open the 'Data Acquisition Control Panel' applet once again.  Make note of the second module's 'DT-Open Layer Name' (a.k.a. board name).  Verify that it looks similar to the image below and then close the applet.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_mtis1.png?548x132}}+{{https://files.digilent.com/reference-images/pic_mtis1.png?548x132}}
  
 6. Open the DT Device Collection Manager located on the target system.  The application should have been installed to the folder:  'C:\Program Files (x86)\Data Translation\Utilities'. 6. Open the DT Device Collection Manager located on the target system.  The application should have been installed to the folder:  'C:\Program Files (x86)\Data Translation\Utilities'.
Line 19: Line 19:
 7. Click on 'New Collection' and enter a collection name, e.g. DT9837Bsync. 7. Click on 'New Collection' and enter a collection name, e.g. DT9837Bsync.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_mtis2.png?1005x442}}+{{https://files.digilent.com/reference-images/pic_mtis2.png?1005x442}}
  
 8. Select a device from the combo box, in the lower left corner, and then click the 'Add Device' button. 8. Select a device from the combo box, in the lower left corner, and then click the 'Add Device' button.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_mtis3.png?1005x446}}+{{https://files.digilent.com/reference-images/pic_mtis3.png?1005x446}}
  
 9. Select the second device from the combo box and then click the 'Add Device' button again. 9. Select the second device from the combo box and then click the 'Add Device' button again.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_mtis4.png?1005x211}}+{{https://files.digilent.com/reference-images/pic_mtis4.png?1005x211}}
  
 10. Click on the device designated to be the 'Master' and then select the 'Master Device' property.  The second device will not have this property value selected. 10. Click on the device designated to be the 'Master' and then select the 'Master Device' property.  The second device will not have this property value selected.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_mtis5.png?1005x249}}+{{https://files.digilent.com/reference-images/pic_mtis5.png?1005x249}}
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_mtis6.png?1005x256}}+{{https://files.digilent.com/reference-images/pic_mtis6.png?1005x256}}
  
 11. Close the DT Device Collection Manager and then open the 'Data Acquisition Control Panel' applet.  Verify that the board list shows the 'DT9837Bsync' collection name, which will be the 'device' used in MATLAB. 11. Close the DT Device Collection Manager and then open the 'Data Acquisition Control Panel' applet.  Verify that the board list shows the 'DT9837Bsync' collection name, which will be the 'device' used in MATLAB.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_mtis7.png?548x161}}+{{https://files.digilent.com/reference-images/pic_mtis7.png?548x161}}
  
-12. When synchronizing multiple DT9837B modules, connect a RJ45 cable (less than 1 foot in length) between the two modules.  Please refer the DT9837 Series User's Manual (https://www.mccdaq.com/PDFs/Manuals/UM9837.pdf).+12. When synchronizing multiple DT9837B modules, connect a RJ45 cable (less than 1 foot in length) between the two modules.  Please refer to the DT9837 Series User's Manual (https://files.digilent.com/manuals/UM9837.pdf).
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_8.png?701x535}}+{{https://files.digilent.com/reference-images/pic_8.png?701x535}}
  
 13. Close the 'Data Acquisition Control Panel' applet and launch MATLAB R2018b (or newer).  Begin by verifying the available Data Translation devices.  For this example, the 'DT9837Bsync' Device ID will be used.  The Analog Input subsystem shows 14 channels between the two modules.  The first eight channels are the BNC analog input channels.  The remaining channels correspond to the tachometer counter channels and the gate counter channels.  (Please refer to the 'Supported Device Driver Capabilities' chart in the DT9837 Series User's Manual.) 13. Close the 'Data Acquisition Control Panel' applet and launch MATLAB R2018b (or newer).  Begin by verifying the available Data Translation devices.  For this example, the 'DT9837Bsync' Device ID will be used.  The Analog Input subsystem shows 14 channels between the two modules.  The first eight channels are the BNC analog input channels.  The remaining channels correspond to the tachometer counter channels and the gate counter channels.  (Please refer to the 'Supported Device Driver Capabilities' chart in the DT9837 Series User's Manual.)
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_10.png?471x520}}+{{https://files.digilent.com/reference-images/pic_10.png?471x520}}
  
 The following lines of code were used in a .m script to acquire and display data from the Analog Input subsystems, of two DT9837B modules.  The following lines of code were used in a .m script to acquire and display data from the Analog Input subsystems, of two DT9837B modules.