{"id":29587,"date":"2023-02-03T12:07:22","date_gmt":"2023-02-03T20:07:22","guid":{"rendered":"https:\/\/digilent.com\/blog\/?p=29587"},"modified":"2023-02-03T12:24:22","modified_gmt":"2023-02-03T20:24:22","slug":"getting-started-with-the-latest-digilent-toolbox-add-on-for-matlab","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/getting-started-with-the-latest-digilent-toolbox-add-on-for-matlab\/","title":{"rendered":"Getting Started with the Latest Digilent Toolbox Add-on for MATLAB"},"content":{"rendered":"<h2><strong>So what is it?<\/strong><\/h2>\n<p>The Digilent Test &amp; Measurement Toolbox allows users to acquire and analyze data in MATLAB using Digilent&#8217;s test and measurment devices.<\/p>\n<p>Featuring analog data streaming, digital I\/O control, and configurable power supplies, users can easily collect and send data from Digilent Test and Measurement devices, either directly or with the newly added non-blocking functions with no software limitation on the sampling rate.\u00a0 Users familiar with the old Data Acquisition Toolbox Support Package for Digilent Devices will be pleased to hear that all of their old code can be seamlessly used with the new Toolbox.<\/p>\n<h2><strong>So what is supported?<\/strong><\/h2>\n<h4>Hardware<\/h4>\n<p>A Digilent Test and Measurement device:<\/p>\n<ul>\n<li>Analog Discovery (Legacy)<\/li>\n<li><span data-contrast=\"auto\">A<\/span><span data-contrast=\"auto\">nalog <\/span><span data-contrast=\"auto\">D<\/span><span data-contrast=\"auto\">iscovery <\/span><span data-contrast=\"auto\">2<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">A<\/span><span data-contrast=\"auto\">nalog <\/span><span data-contrast=\"auto\">D<\/span><span data-contrast=\"auto\">iscovery<\/span><span data-contrast=\"auto\"> Studio<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">A<\/span><span data-contrast=\"auto\">nalog Discovery <\/span><span data-contrast=\"auto\">P<\/span><span data-contrast=\"auto\">ro (ADP3450\/ADP<\/span><span data-contrast=\"auto\">3250<\/span><span data-contrast=\"auto\">)<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/li>\n<li>Discovery USB Programmable Power Supply (DPS3340)<\/li>\n<li><span class=\"TextRun SCXW160645765 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW160645765 BCX8\">Electronics Explorer<\/span><\/span><span class=\"EOP TrackedChange SCXW160645765 BCX8\" data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<h4>Software<\/h4>\n<p><span data-contrast=\"auto\">MATLAB (compatible with R2021b and newer)<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The new Digilent Toolbox also relies on the <\/span><a href=\"https:\/\/www.mathworks.com\/products\/data-acquisition.html\"><span data-contrast=\"none\">MATLAB Data Acquisition Toolbox<\/span><\/a><span data-contrast=\"auto\"> and <\/span><a href=\"https:\/\/digilent.com\/reference\/software\/waveforms\/waveforms-3\/start\"><span data-contrast=\"none\">WaveForms<\/span><\/a><span data-contrast=\"auto\"> SDK. Note that by installing WaveForms to interact with your test and measurement device, you likely already have a WaveForms SDK installation.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<h2 aria-level=\"2\"><b><span data-contrast=\"auto\">So how do I use it?<\/span><\/b><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">A variety of example scripts are included that you can run within MATLAB using this plugin. One of these can be seen here. It uses two oscilloscope channels, one arbitrary waveform generator (AWG), one programmable power supply channel, and all the digital channels on the AD2 device, and can be easily modified to adjust how the instruments are used.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-29589\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/01\/img_17-matlab-toolbox-update-blog-post-600x309.png\" alt=\"simulation example matlab \" width=\"600\" height=\"309\" data-wp-pid=\"29589\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/01\/img_17-matlab-toolbox-update-blog-post-600x309.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/01\/img_17-matlab-toolbox-update-blog-post-1024x528.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/01\/img_17-matlab-toolbox-update-blog-post-1536x792.png 1536w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/01\/img_17-matlab-toolbox-update-blog-post.png 1920w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><span data-contrast=\"auto\">The guide \u201c<a href=\"https:\/\/digilent.com\/reference\/test-and-measurement\/guides\/matlab-getting-started\">Getting Started with the Digilent Toolbox Add-on for MATLAB<\/a>\u201d on Digilent\u2019s Reference site presents how to install and use the Digilent Toolbox add-on for MATLAB.\u202f Users working with the latest versions of MATLAB and Digilent\u2019s WaveForms now have access to more devices and capabilities.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<h2><strong>Final Notes<\/strong><\/h2>\n<p>The Digilent Toolbox is also available on the <a href=\"https:\/\/github.com\/Digilent\/matlab\">Digilent \u2013 MATLAB<\/a> repository on GitHub.<\/p>\n<p>For more information about how to use WaveForms SDK, please visit the <a href=\"https:\/\/digilent.com\/reference\/software\/waveforms\/waveforms-3\/getting-started-guide\">WaveForms SDK Reference Manual<\/a>.<\/p>\n<p>For technical support, please visit the <a href=\"https:\/\/forum.digilent.com\/forum\/8-test-and-measurement\/)\">Digilent Forums<\/a><\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-29587 jlk' data-task='like' data-post_id='29587' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-29587 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-29587 jlk' data-task='unlike' data-post_id='29587' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-29587 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-29587 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>So what is it? The Digilent Test &amp; Measurement Toolbox allows users to acquire and analyze data in MATLAB using Digilent&#8217;s test and measurment devices. Featuring analog data streaming, digital &hellip; <\/p>\n","protected":false},"author":67,"featured_media":29594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4361,38,4323,1554,1561],"tags":[4355,4375,4378,4376,3899,4377,4374],"ppma_author":[4509],"class_list":["post-29587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-acquisition","category-expansion-modules","category-software","category-news","category-applications","tag-getting-started","tag-matlab","tag-plugin","tag-software","tag-test-and-measurement","tag-toolbox","tag-update"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/01\/MATLAB-ToolboxUpdate-1080x1080-1.png","authors":[{"term_id":4509,"user_id":67,"is_guest":0,"slug":"fsoares","display_name":"Fausto Soares","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/d29731075657ea5932ccd457506e6971?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Soares","last_name_2":"","first_name":"Fausto","first_name_2":"","job_title":"","description":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/29587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=29587"}],"version-history":[{"count":13,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/29587\/revisions"}],"predecessor-version":[{"id":29607,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/29587\/revisions\/29607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/29594"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=29587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=29587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=29587"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=29587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}