<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.phidgets.com/docs/index.php?action=history&amp;feed=atom&amp;title=Template%3ALanguage_-_C_Editing_The_Examples</id>
	<title>Template:Language - C Editing The Examples - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.phidgets.com/docs/index.php?action=history&amp;feed=atom&amp;title=Template%3ALanguage_-_C_Editing_The_Examples"/>
	<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;action=history"/>
	<updated>2026-05-19T19:20:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=30904&amp;oldid=prev</id>
		<title>Jdecoux at 23:14, 1 March 2019</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=30904&amp;oldid=prev"/>
		<updated>2019-03-01T23:14:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:14, 1 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets can be found in our guide on [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Phidgets &lt;/del&gt;Programming Basics]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets can be found in our guide on [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Phidget &lt;/ins&gt;Programming Basics]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jdecoux</name></author>
	</entry>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=30881&amp;oldid=prev</id>
		<title>Jdecoux at 23:01, 28 February 2019</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=30881&amp;oldid=prev"/>
		<updated>2019-02-28T23:01:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:01, 28 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;follows &lt;/del&gt;in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the Write Code section&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;can be found &lt;/ins&gt;in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;our guide on [[Phidgets Programming Basics]]&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jdecoux</name></author>
	</entry>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=29738&amp;oldid=prev</id>
		<title>Jdecoux at 19:03, 10 August 2018</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=29738&amp;oldid=prev"/>
		<updated>2018-08-10T19:03:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:03, 10 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Editing the Examples==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To get our example code to run in a custom application, simply remove the calls to &amp;#039;&amp;#039;AskForDeviceParameters&amp;#039;&amp;#039; and &amp;#039;&amp;#039;PrintEventDescriptions&amp;#039;&amp;#039;, and hard-code the addressing parameters for your application.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To get our example code to run in a custom application, simply remove the calls to &amp;#039;&amp;#039;AskForDeviceParameters&amp;#039;&amp;#039; and &amp;#039;&amp;#039;PrintEventDescriptions&amp;#039;&amp;#039;, and hard-code the addressing parameters for your application.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jdecoux</name></author>
	</entry>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=29621&amp;oldid=prev</id>
		<title>Mparadis: Created page with &quot;== Editing the Examples== To get our example code to run in a custom application, simply remove the calls to &#039;&#039;AskForDeviceParameters&#039;&#039; and &#039;&#039;PrintEventDescriptions&#039;&#039;, and har...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_C_Editing_The_Examples&amp;diff=29621&amp;oldid=prev"/>
		<updated>2018-07-05T21:17:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Editing the Examples== To get our example code to run in a custom application, simply remove the calls to &amp;#039;&amp;#039;AskForDeviceParameters&amp;#039;&amp;#039; and &amp;#039;&amp;#039;PrintEventDescriptions&amp;#039;&amp;#039;, and har...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Editing the Examples==&lt;br /&gt;
To get our example code to run in a custom application, simply remove the calls to &amp;#039;&amp;#039;AskForDeviceParameters&amp;#039;&amp;#039; and &amp;#039;&amp;#039;PrintEventDescriptions&amp;#039;&amp;#039;, and hard-code the addressing parameters for your application.&lt;br /&gt;
&lt;br /&gt;
If you are unsure what values to use for the addressing parameters, check the [[Finding The Addressing Information]] page.&lt;br /&gt;
&lt;br /&gt;
For instance:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
AskForDeviceParameters(&amp;amp;channelInfo, (PhidgetHandle)ch);&lt;br /&gt;
&lt;br /&gt;
prc = Phidget_setDeviceSerialNumber((PhidgetHandle)ch, channelInfo.deviceSerialNumber);&lt;br /&gt;
CheckError(prc, &amp;quot;Setting DeviceSerialNumber&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
&lt;br /&gt;
prc = Phidget_setHubPort((PhidgetHandle)ch, channelInfo.hubPort);&lt;br /&gt;
CheckError(prc, &amp;quot;Setting HubPort&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
&lt;br /&gt;
prc = Phidget_setIsHubPortDevice((PhidgetHandle)ch, channelInfo.isHubPortDevice);&lt;br /&gt;
CheckError(prc, &amp;quot;Setting IsHubPortDevice&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
    &lt;br /&gt;
Phidget_setChannel((PhidgetHandle)ch, channelInfo.channel);&lt;br /&gt;
CheckError(prc, &amp;quot;Setting Channel&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
&lt;br /&gt;
if (channelInfo.netInfo.isRemote) {&lt;br /&gt;
    prc = Phidget_setIsRemote((PhidgetHandle)ch, channelInfo.netInfo.isRemote);&lt;br /&gt;
    CheckError(prc, &amp;quot;Setting IsRemote&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
        &lt;br /&gt;
    if (channelInfo.netInfo.serverDiscovery) {&lt;br /&gt;
        prc = PhidgetNet_enableServerDiscovery(PHIDGETSERVER_DEVICEREMOTE);&lt;br /&gt;
        CheckEnableServerDiscoveryError(prc, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
    } else {&lt;br /&gt;
        prc = PhidgetNet_addServer(&amp;quot;Server&amp;quot;, channelInfo.netInfo.hostname,&lt;br /&gt;
                    channelInfo.netInfo.port, channelInfo.netInfo.password, 0);&lt;br /&gt;
        CheckError(prc, &amp;quot;Adding Server&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Might become:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
prc = Phidget_setDeviceSerialNumber((PhidgetHandle)ch, 370114);&lt;br /&gt;
CheckError(prc, &amp;quot;Setting DeviceSerialNumber&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
&lt;br /&gt;
prc = Phidget_setHubPort((PhidgetHandle)ch, 2);&lt;br /&gt;
CheckError(prc, &amp;quot;Setting HubPort&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
&lt;br /&gt;
prc = Phidget_setIsHubPortDevice((PhidgetHandle)ch, 1);&lt;br /&gt;
CheckError(prc, &amp;quot;Setting IsHubPortDevice&amp;quot;, &amp;amp;(PhidgetHandle)ch);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;br /&gt;
&lt;br /&gt;
You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets follows in the Write Code section.&lt;/div&gt;</summary>
		<author><name>Mparadis</name></author>
	</entry>
</feed>