https://hades.mech.northwestern.edu//index.php?title=Using_the_Host_Scope&feed=atom&action=historyUsing the Host Scope - Revision history2024-03-29T10:11:09ZRevision history for this page on the wikiMediaWiki 1.35.9https://hades.mech.northwestern.edu//index.php?title=Using_the_Host_Scope&diff=3787&oldid=prevStephens at 18:42, 7 August 20062006-08-07T18:42:19Z<p></p>
<p><b>New page</b></p><div>MATLAB implemented a "Host Scope" in version 2006a. This is allows you to view scopes of real-time data from the target PC on the Host PC screen. It is a little tricky to use, so here are some instructions:<br />
<br />
1. Add a xPC scope to your model (from the xPC Target\Misc menu). We will use the simple model below for instructional purposes.<br />
<br />
[[image:hostscope1.jpg|center]]<br />
<br />
2. Double-click on the Scope to open the properties dialog. Change the Scope type to "Host" and the Number of samples to something like 1000.<br />
<br />
[[image:hostscope2.jpg|center]]<br />
<br />
3. Now build your model by pressing Ctrl-B.<br />
<br />
4. Open xpcexplr<br />
<br />
5. Right-click on "TargetPC1" on the left menu and click "Connect". The menu will expand.<br />
<br />
[[image:hostscope3.jpg|center]]<br />
<br />
6. Expand the list to find xPC Scopes \ Host Scope(s) \ Scope: 1<br />
<br />
7. Right click on "Scope: 1" and click "View Scope". This will open up the scope window.<br />
<br />
8. Now you can start your model any way you like. After the model has started, you will see the scope data displayed.<br />
<br />
To get better performance that suits your application, try adjusting the "Number of Samples" and "Decimation" values for the scope.</div>Stephens