<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=Matlab_Configuration</id>
	<title>Matlab Configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=Matlab_Configuration"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=Matlab_Configuration&amp;action=history"/>
	<updated>2026-05-09T20:13:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=Matlab_Configuration&amp;diff=510&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;{{Gotoparent|Matlab Option Tree}}  This page will walk you through configuring the Matlab/NeXtMidas interface. After completing this tutorial, you will be able to make NeXtMid...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=Matlab_Configuration&amp;diff=510&amp;oldid=prev"/>
		<updated>2020-04-15T15:26:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Gotoparent|Matlab Option Tree}}  This page will walk you through configuring the Matlab/NeXtMidas interface. After completing this tutorial, you will be able to make NeXtMid...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Gotoparent|Matlab Option Tree}}&lt;br /&gt;
&lt;br /&gt;
This page will walk you through configuring the Matlab/NeXtMidas interface. After completing this tutorial, you will be able to make NeXtMidas commands and talk directly to ICE-PIC cards from Matlab. This document assumes that you have followed the guide on setting up the [[Matlab_Option_Tree_Tutorial|Matlab Option Tree]], that you have Matlab installed, and that you're using a Red Hat distribution of Linux.&lt;br /&gt;
&lt;br /&gt;
== Matlab Configuration ==&lt;br /&gt;
Since we have already setup the NeXtMidas environment in [[Matlab_Option_Tree_Tutorial|this tutorial]], we simply need to tell Matlab where the Matlab Option Tree scripts are located. By default, they are located in the directory:&lt;br /&gt;
&lt;br /&gt;
 /opt/ice/pkg/nextmat/mat/&lt;br /&gt;
&lt;br /&gt;
Therefore, we need to add '/opt/ice/pkg/nextmat/mat/' to the Matlab path. We can do this permanently with the following steps:&lt;br /&gt;
&lt;br /&gt;
# Click on the 'HOME' tab&lt;br /&gt;
# Click 'Set Path'&lt;br /&gt;
# Click 'Add Folder'&lt;br /&gt;
# Navigate to the 'mat' folder in the NeXtMidas Matlab Option tree (i.e. /opt/ice/pkg/nextmat/mat/)&lt;br /&gt;
# Click 'OK'&lt;br /&gt;
# Click 'Save'&lt;br /&gt;
# Click 'Close'&lt;br /&gt;
&lt;br /&gt;
'''Note:''' These instructions were derived using Matlab R2013b (8.2.0.701). The procedure to add a path may be slightly different in other versions.&lt;br /&gt;
&lt;br /&gt;
== Running Example Scripts ==&lt;br /&gt;
We have provided some scripts in the 'examples' directory of the Matlab Option Tree. Let's enter the examples directory and look at the files:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;&amp;gt; cd /opt/ice/pkg/nextmat/examples&lt;br /&gt;
 &amp;gt;&amp;gt; ls&lt;br /&gt;
 mat2nxm_example.m  nxm2mat_example.m  picacq_example.m  picplay_example.m&lt;br /&gt;
&lt;br /&gt;
Run the mat2nxm example (which doesn't require a PIC card):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;&amp;gt; cd /opt/ice/pkg/nextmat/examples&lt;br /&gt;
 &amp;gt;&amp;gt; mat2nxm_example&lt;br /&gt;
&lt;br /&gt;
If you have a PIC card installed, you may wish to run one of the PIC examples. Note that the picacq and picplay examples might not work out of the box: you might have to change the PIC card and module ports to reflect your setup. The picacq example assumes that there is a module capable of acquisition on 'module1' of 'pic1'. The picplay example assumes that there is a module capable of playback on 'module2' of 'pic1'. Let's launch the playback example:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;&amp;gt; cd /opt/ice/pkg/nextmat/examples&lt;br /&gt;
 &amp;gt;&amp;gt; picplay_example&lt;br /&gt;
&lt;br /&gt;
You will now see the 'snapapp' GUI appear. To start playback, click the 'RTPlayback' button. You should see two tones: one at 2.5 MHz and one at 4.75 MHz. To stop playback hit the 'Exit' button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Matlab_Option_Tree|2]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>