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:matlab-setup-in-windows [2023/06/13 16:06] – created Scandiwebdaq-and-datalogging:documents:matlab-setup-in-windows [2023/07/28 00:59] (current) – Arthur Brown
Line 1: Line 1:
-====== Configuring a Windows system to use MCC hardware with MATLAB R2017a ======+====== Configuring a Windows System to Use MCC Hardware With MATLAB R2017a ======
  
 The following information will enable a user with a MCC data acquisition device to use MATLAB R2017a (64-bit sessions). The following information will enable a user with a MCC data acquisition device to use MATLAB R2017a (64-bit sessions).
Line 5: Line 5:
 Prior to launching MATLAB R2017a, a MCC daq device must be configured in InstaCal.  Otherwise, you will get a “no devices available” error, in MATLAB.  (The latest release of InstaCal can be downloaded from the Support section of MCC’s website.)  Also, InstaCal must then be closed before opening MATLAB and should not be opened while MATLAB is running. Prior to launching MATLAB R2017a, a MCC daq device must be configured in InstaCal.  Otherwise, you will get a “no devices available” error, in MATLAB.  (The latest release of InstaCal can be downloaded from the Support section of MCC’s website.)  Also, InstaCal must then be closed before opening MATLAB and should not be opened while MATLAB is running.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_1.png?257x201}}+{{https://files.digilent.com/reference-images/pic_1.png?257x201}}
  
 In addition to having MATLAB R2017a installed, a user must also have the MathWorks’ Data Acquisition Toolbox (https://www.mathworks.com/hardware-support/data-acquistion-software.html) and the Measurement Computing Hardware Support Package (https://www.mathworks.com/hardware-support/measurement-computing.html). In addition to having MATLAB R2017a installed, a user must also have the MathWorks’ Data Acquisition Toolbox (https://www.mathworks.com/hardware-support/data-acquistion-software.html) and the Measurement Computing Hardware Support Package (https://www.mathworks.com/hardware-support/measurement-computing.html).
Line 11: Line 11:
 If you need to install the toolbox and/or support package, you can do so from within MATLAB®.  On the Home tab, in the environment section, click Add-Ons > Get Hardware Support Packages. If you need to install the toolbox and/or support package, you can do so from within MATLAB®.  On the Home tab, in the environment section, click Add-Ons > Get Hardware Support Packages.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_2.png?580x212}}+{{https://files.digilent.com/reference-images/pic_2.png?580x212}}
  
 Once in the Add-On Explorer, click in the search field and clear any preexisting filters.  If you need to install the Data Acquisition Toolbox package, enter ‘data acquisition toolbox’.  (Note:  the Data Acquisition Toolbox package requires an additional license from MathWorks.) Once in the Add-On Explorer, click in the search field and clear any preexisting filters.  If you need to install the Data Acquisition Toolbox package, enter ‘data acquisition toolbox’.  (Note:  the Data Acquisition Toolbox package requires an additional license from MathWorks.)
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_3.png?586x201}}+{{https://files.digilent.com/reference-images/pic_3.png?586x201}}
  
 Next, enter ‘Measurement Computing’ in the search field to find and then install the Data Acquisition Toolbox Support Package for Measurement Computing Hardware package. Next, enter ‘Measurement Computing’ in the search field to find and then install the Data Acquisition Toolbox Support Package for Measurement Computing Hardware package.
  
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_4.png?580x159}}+{{https://files.digilent.com/reference-images/pic_4.png?580x159}}
  
 After both packages have been installed, launch MATLAB and enter ‘ver’ in the Command Window; see below. After both packages have been installed, launch MATLAB and enter ‘ver’ in the Command Window; see below.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_5.png?588x141}}+{{https://files.digilent.com/reference-images/pic_5.png?588x141}}
  
 Next, enter ‘d = daq.getVendors’ and MATLAB should return ‘mcc’ as a vendor. Next, enter ‘d = daq.getVendors’ and MATLAB should return ‘mcc’ as a vendor.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_6.png?531x502}}+{{https://files.digilent.com/reference-images/pic_6.png?531x502}}
  
 Additionally, ‘d = daq.getDevices’ will return a list of MCC daq devices previously recognized by InstaCal. Additionally, ‘d = daq.getDevices’ will return a list of MCC daq devices previously recognized by InstaCal.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_7.png?623x294}}+{{https://files.digilent.com/reference-images/pic_7.png?623x294}}
  
 Enter 'd(index#)' to view general specs regarding the board specified. Enter 'd(index#)' to view general specs regarding the board specified.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_8.png?572x592}}+{{https://files.digilent.com/reference-images/pic_8.png?572x592}}
  
 You are now ready to begin developing your application in MATLAB.  If you are new to MATLAB, please reference the MathWorks website for learning resources.  Else, press the F1 key to open MATLAB’s Help.  You can then search MATLAB’s documentation and/or the Data Acquisition Toolbox documentation. You are now ready to begin developing your application in MATLAB.  If you are new to MATLAB, please reference the MathWorks website for learning resources.  Else, press the F1 key to open MATLAB’s Help.  You can then search MATLAB’s documentation and/or the Data Acquisition Toolbox documentation.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/pic_9.png?624x407}}+{{https://files.digilent.com/reference-images/pic_9.png?624x407}}