https://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&feed=atom&action=historyCommon xPC Blocks - Revision history2024-03-29T09:12:40ZRevision history for this page on the wikiMediaWiki 1.35.9https://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1513&oldid=prevStephens at 18:23, 18 May 20062006-05-18T18:23:38Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:23, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 70:</td>
<td colspan="2" class="diff-lineno">Line 70:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></ul></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></ul></div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[Category:xPC|Simulink]]</div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1503&oldid=prevStephens at 18:19, 18 May 20062006-05-18T18:19:18Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:19, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The xPC blocks are found by opening up simulink and expanding the "xPC Target" menu to the left. It looks like this:</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The xPC blocks are found by opening up simulink and expanding the "xPC Target" menu to the left. It looks like this:</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>[[image:xpcblocks00.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[image:xpcblocks00.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Below you will find a list of commonly used blocks and those used specifically with the Sensoray 526 data aquisition board. The pictures will show how they could be used in common applications.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Below you will find a list of commonly used blocks and those used specifically with the Sensoray 526 data aquisition board. The pictures will show how they could be used in common applications.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks01.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks01.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks01b.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks01b.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></center></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 16:</td>
<td colspan="2" class="diff-lineno">Line 16:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks02.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks02.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks03.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks03.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></center></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 24:</td>
<td colspan="2" class="diff-lineno">Line 24:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks04.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks04.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks05.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks05.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></center></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 32:</td>
<td colspan="2" class="diff-lineno">Line 32:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks06.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks06.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks07.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks07.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></center></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 40:</td>
<td colspan="2" class="diff-lineno">Line 40:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks08.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks08.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks09.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks09.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></center></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 48:</td>
<td colspan="2" class="diff-lineno">Line 48:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks10.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks10.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks11.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks11.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></center></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 56:</td>
<td colspan="2" class="diff-lineno">Line 56:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks12.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks12.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks13.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks13.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks14.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks14.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td>[[image:xpcblocks15.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td>[[image:xpcblocks15.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></center></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 67:</td>
<td colspan="2" class="diff-lineno">Line 67:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>[[image:xpcblocks16.jpg<del class="diffchange diffchange-inline">|thumb</del>|center|<del class="diffchange diffchange-inline">300px</del>]]</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[image:xpcblocks16.jpg|center|<ins class="diffchange diffchange-inline">400px</ins>]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></ul></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></ul></div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1493&oldid=prevStephens at 18:14, 18 May 20062006-05-18T18:14:43Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:14, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline"><center></ins><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks01.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks01.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks01b.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks01b.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></tr></table<ins class="diffchange diffchange-inline">></center</ins>></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ D/A \ Sensoray \ Sensoray526 DA</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ D/A \ Sensoray \ Sensoray526 DA</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline"><center></ins><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks02.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks02.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks03.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks03.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></tr></table<ins class="diffchange diffchange-inline">></center</ins>></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ A/D \ Sensoray \ Sensoray526 AD 1</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ A/D \ Sensoray \ Sensoray526 AD 1</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline"><center></ins><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks04.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks04.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks05.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks05.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></tr></table<ins class="diffchange diffchange-inline">></center</ins>></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ Digital Input \ Sensoray \ Sensoray526 DI</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ Digital Input \ Sensoray \ Sensoray526 DI</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline"><center></ins><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks06.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks06.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks07.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks07.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></tr></table<ins class="diffchange diffchange-inline">></center</ins>></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ Digital Output \ Sensoray \ Sensoray526 DO</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ Digital Output \ Sensoray \ Sensoray526 DO</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline"><center></ins><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks08.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks08.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks09.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks09.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></tr></table<ins class="diffchange diffchange-inline">></center</ins>></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ Incremental Encoder \ Sensoray \ Sensoray526 ENC</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ Incremental Encoder \ Sensoray \ Sensoray526 ENC</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline"><center></ins><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks10.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks10.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks11.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks11.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></tr></table<ins class="diffchange diffchange-inline">></center</ins>></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>Simulink \ Signal Routing \ Data Store (Memory, Read, Write)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>Simulink \ Signal Routing \ Data Store (Memory, Read, Write)</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline"><center></ins><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks12.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks12.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks13.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks13.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 61:</td>
<td colspan="2" class="diff-lineno">Line 61:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks14.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks14.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><td>[[image:xpcblocks15.jpg|thumb|center|300px]]</td></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><td>[[image:xpcblocks15.jpg|thumb|center|300px]]</td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></tr></table<ins class="diffchange diffchange-inline">></center</ins>></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 67:</td>
<td colspan="2" class="diff-lineno">Line 67:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>[[image:xpcblocks16.jpg|thumb|center|300px]]<del class="diffchange diffchange-inline"></a></del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[image:xpcblocks16.jpg|thumb|center|300px]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></ul></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></ul></div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1492&oldid=prevStephens at 18:13, 18 May 20062006-05-18T18:13:23Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:13, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The xPC blocks are found by opening up simulink and expanding the "xPC Target" menu to the left. It looks like this:</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The xPC blocks are found by opening up simulink and expanding the "xPC Target" menu to the left. It looks like this:</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>[[image:xpcblocks00.<del class="diffchange diffchange-inline">JPG</del>|thumb|center|300px]]</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[image:xpcblocks00.<ins class="diffchange diffchange-inline">jpg</ins>|thumb|center|300px]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Below you will find a list of commonly used blocks and those used specifically with the Sensoray 526 data aquisition board. The pictures will show how they could be used in common applications.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Below you will find a list of commonly used blocks and those used specifically with the Sensoray 526 data aquisition board. The pictures will show how they could be used in common applications.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks01.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks01.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks01.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks01b.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks01b.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks01b.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ D/A \ Sensoray \ Sensoray526 DA</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ D/A \ Sensoray \ Sensoray526 DA</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks02.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks02.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks02.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks03.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks03.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks03.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ A/D \ Sensoray \ Sensoray526 AD 1</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ A/D \ Sensoray \ Sensoray526 AD 1</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks04.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks04.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks04.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks05.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks05.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks05.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ Digital Input \ Sensoray \ Sensoray526 DI</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ Digital Input \ Sensoray \ Sensoray526 DI</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks06.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks06.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks06.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks07.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks07.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks07.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ Digital Output \ Sensoray \ Sensoray526 DO</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ Digital Output \ Sensoray \ Sensoray526 DO</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks08.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks08.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks08.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks09.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks09.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks09.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ Incremental Encoder \ Sensoray \ Sensoray526 ENC</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ Incremental Encoder \ Sensoray \ Sensoray526 ENC</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks10.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks10.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks10.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks11.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks11.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks11.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>Simulink \ Signal Routing \ Data Store (Memory, Read, Write)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>Simulink \ Signal Routing \ Data Store (Memory, Read, Write)</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><table><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><table><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks12.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks12.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks12.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks13.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks13.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks13.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr><tr></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr><tr></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks14.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks14.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks14.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><td><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks15.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks15.JPG" border="0"></a></del></td></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><td><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks15.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></td></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></tr></table></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></tr></table></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>Simulink \ Sinks \ Out1</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>Simulink \ Sinks \ Out1</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"><a href="pics/</del>xpcblocks16.<del class="diffchange diffchange-inline">JPG"><img src="pics/xpcblocks16.JPG" border="0"></del></a></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline">[[image:</ins>xpcblocks16.<ins class="diffchange diffchange-inline">jpg|thumb|center|300px]]</ins></a></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline"></center></del></li></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></ul></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></ul></div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1491&oldid=prevStephens at 18:08, 18 May 20062006-05-18T18:08:33Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:08, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The xPC blocks are found by opening up simulink and expanding the "xPC Target" menu to the left. It looks like this:</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The xPC blocks are found by opening up simulink and expanding the "xPC Target" menu to the left. It looks like this:</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_3_0_lhs">⚫</a></td>
<td class="diff-addedline diff-side-added"><div><a name="movedpara_1_0_rhs"></a>[[image:xpcblocks00.JPG|thumb<ins class="diffchange diffchange-inline">|center</ins>|300px]]</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_0_rhs">⚫</a></td>
<td class="diff-deletedline diff-side-deleted"><div><a name="movedpara_3_0_lhs"></a>[[image:xpcblocks00.JPG|thumb|300px]]</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div></center></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Below you will find a list of commonly used blocks and those used specifically with the Sensoray 526 data aquisition board. The pictures will show how they could be used in common applications.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Below you will find a list of commonly used blocks and those used specifically with the Sensoray 526 data aquisition board. The pictures will show how they could be used in common applications.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1490&oldid=prevStephens at 18:08, 18 May 20062006-05-18T18:08:15Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:08, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>__NOTOC__</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>__NOTOC__</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>The xPC blocks are found by opening up simulink and expanding the "xPC Target" menu to the left. It looks like this:</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[image:xpcblocks00.JPG|thumb|300px]]</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div></center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Below you will find a list of commonly used blocks and those used specifically with the Sensoray 526 data aquisition board. The pictures will show how they could be used in common applications.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1489&oldid=prevStephens at 18:06, 18 May 20062006-05-18T18:06:19Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:06, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>__NOTOC__</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>__NO_TOC__</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1488&oldid=prevStephens at 18:06, 18 May 20062006-05-18T18:06:10Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:06, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>__NO_TOC__</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><ul><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1487&oldid=prevStephens at 18:05, 18 May 20062006-05-18T18:05:53Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:05, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_2_0_lhs">⚫</a></td>
<td class="diff-addedline diff-side-added"><div><a name="movedpara_0_0_rhs"></a><ins class="diffchange diffchange-inline"><ul></ins><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><ul></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_0_0_rhs">⚫</a></td>
<td class="diff-deletedline diff-side-deleted"><div><a name="movedpara_2_0_lhs"></a><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The target scopes are used to display data on the xPC screen. This requires the target PC to be connected to a monitor. These scopes can either plot data over time or display numerical values. Signals can be muxed to display on the same scope or multiple scopes can be used. The scope shown below will show two sin waves (one inverted).</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
</table>Stephenshttps://hades.mech.northwestern.edu//index.php?title=Common_xPC_Blocks&diff=1486&oldid=prevStephens at 18:05, 18 May 20062006-05-18T18:05:29Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:05, 18 May 2006</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><h2>Common Blocks</h2></div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><br /></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><ul></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><ul></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><li><h3>xPC Target \ Misc. \ Scope (xPC)</h3></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 11:</td>
<td colspan="2" class="diff-lineno">Line 9:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></center></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></center></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><li><del class="diffchange diffchange-inline">===</del>xPC Target \ D/A \ Sensoray \ Sensoray526 DA<del class="diffchange diffchange-inline">===</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><li><ins class="diffchange diffchange-inline"><h3></ins>xPC Target \ D/A \ Sensoray \ Sensoray526 DA<ins class="diffchange diffchange-inline"></h3></ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to output analog signals on the Analog Out pins. You cannot mux signals to this block. You must specify which pins you are using in the Block Parameters and connect the individual signals, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 20:</td>
<td colspan="2" class="diff-lineno">Line 18:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></center></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></center></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><li><del class="diffchange diffchange-inline">===</del>xPC Target \ A/D \ Sensoray \ Sensoray526 AD 1<del class="diffchange diffchange-inline">===</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><li><ins class="diffchange diffchange-inline"><h3></ins>xPC Target \ A/D \ Sensoray \ Sensoray526 AD 1<ins class="diffchange diffchange-inline"></h3></ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block is used to read values from the Analog-IN pins on the Sensoray board. The pins have to be individually specified, as shown below.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 27:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></center></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></center></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><li>xPC Target \ Digital Input \ Sensoray \ Sensoray526 DI</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><li<ins class="diffchange diffchange-inline">><h3</ins>>xPC Target \ Digital Input \ Sensoray \ Sensoray526 DI<ins class="diffchange diffchange-inline"></h3></ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block returns High (1) or Low (0) depending on the status of the defined pins. The block below shows how port one enabling the display of pin 2 on a Target Scope.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 38:</td>
<td colspan="2" class="diff-lineno">Line 36:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></center></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></center></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_10_0_lhs">⚫</a></td>
<td class="diff-addedline diff-side-added"><div><a name="movedpara_8_0_rhs"></a><li<ins class="diffchange diffchange-inline">><h3</ins>>xPC Target \ Digital Output \ Sensoray \ Sensoray526 DO<ins class="diffchange diffchange-inline"></h3></ins></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><br /></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_8_0_rhs">⚫</a></td>
<td class="diff-deletedline diff-side-deleted"><div><a name="movedpara_10_0_lhs"></a><li>xPC Target \ Digital Output \ Sensoray \ Sensoray526 DO</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs High (1) or Low (0) to the defined Digital Out pins. You must specify the initial values and reset values of these pins. <b>NOTE: If you are using the BoB, you will need to set the initial and reset values to 1's because the pins are inverted (refer to the hardware documentation)</b></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 48:</td>
<td colspan="2" class="diff-lineno">Line 45:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></center></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></center></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><li>xPC Target \ Incremental Encoder \ Sensoray \ Sensoray526 ENC</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><li<ins class="diffchange diffchange-inline">><h3</ins>>xPC Target \ Incremental Encoder \ Sensoray \ Sensoray526 ENC<ins class="diffchange diffchange-inline"></h3></ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>This block outputs the counts from an incremental encoder. The encoder starts counting from a specified value (usually zero). You have to use a separate block for each encoder, specifying the channel for each.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 57:</td>
<td colspan="2" class="diff-lineno">Line 54:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></center></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></center></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_16_0_lhs">⚫</a></td>
<td class="diff-addedline diff-side-added"><div><a name="movedpara_14_0_rhs"></a><li<ins class="diffchange diffchange-inline">><h3</ins>>Simulink \ Signal Routing \ Data Store (Memory, Read, Write)<ins class="diffchange diffchange-inline"></h3></ins></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><br /></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_14_0_rhs">⚫</a></td>
<td class="diff-deletedline diff-side-deleted"><div><a name="movedpara_16_0_lhs"></a><li>Simulink \ Signal Routing \ Data Store (Memory, Read, Write)</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>These blocks are used to store values in local memory during execution. This is especially useful for storing states over each timestep, such as position or heading. You must use the Data Store Memory block to define a variable name and reserve a place for it in the memory. You can then change the value using the Data Store Write block and read the value back using the Data Store Read block. For the Read/Write blocks, you must edit the Parameters to specify the name of the variable. The model below will create a variable called "A" and will add 1 to it (starts from zero) each timestep.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 70:</td>
<td colspan="2" class="diff-lineno">Line 66:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div></center></li></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div></center></li></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><li>Simulink \ Sinks \ Out1</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><li<ins class="diffchange diffchange-inline">><h3</ins>>Simulink \ Sinks \ Out1<ins class="diffchange diffchange-inline"></h3></ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>You can use this block in an xPC model to record data. This data is available after execution has finished by reading tg.OutputLog. You can mux signals into this block and tg.OutputLog will be a matrix instead of an array.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><center></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><center></div></td>
</tr>
</table>Stephens