<?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_-_Java_Editing_the_Examples</id>
	<title>Template:Language - Java 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_-_Java_Editing_the_Examples"/>
	<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Java_Editing_the_Examples&amp;action=history"/>
	<updated>2026-04-07T00:30:47Z</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_-_Java_Editing_the_Examples&amp;diff=30905&amp;oldid=prev</id>
		<title>Jdecoux at 23:15, 1 March 2019</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Java_Editing_the_Examples&amp;diff=30905&amp;oldid=prev"/>
		<updated>2019-03-01T23:15:09Z</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:15, 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-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&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;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;&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;For future Phidgets-based projects, you can leave out the &amp;#039;&amp;#039;PhidgetHelperFunctions.java&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ChannelInfo.java&amp;#039;&amp;#039; classes entirely.&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;For future Phidgets-based projects, you can leave out the &amp;#039;&amp;#039;PhidgetHelperFunctions.java&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ChannelInfo.java&amp;#039;&amp;#039; classes entirely.&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_-_Java_Editing_the_Examples&amp;diff=30882&amp;oldid=prev</id>
		<title>Jdecoux at 23:04, 28 February 2019</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Java_Editing_the_Examples&amp;diff=30882&amp;oldid=prev"/>
		<updated>2019-02-28T23:04:41Z</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:04, 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-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&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;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;&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;For future Phidgets-based projects, you can leave out the &amp;#039;&amp;#039;PhidgetHelperFunctions.java&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ChannelInfo.java&amp;#039;&amp;#039; classes entirely.&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;For future Phidgets-based projects, you can leave out the &amp;#039;&amp;#039;PhidgetHelperFunctions.java&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ChannelInfo.java&amp;#039;&amp;#039; classes entirely.&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_-_Java_Editing_the_Examples&amp;diff=29695&amp;oldid=prev</id>
		<title>Jdecoux: Created page with &quot;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;, as well as the &#039;&#039;ChannelInfo&#039;&#039; ob...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Java_Editing_the_Examples&amp;diff=29695&amp;oldid=prev"/>
		<updated>2018-08-09T20:29:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;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;, as well as the &amp;#039;&amp;#039;ChannelInfo&amp;#039;&amp;#039; ob...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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;, as well as the &amp;#039;&amp;#039;ChannelInfo&amp;#039;&amp;#039; object, then 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=Java&amp;gt;&lt;br /&gt;
//You may remove these lines and hard-code the addressing parameters to fit your application&lt;br /&gt;
ChannelInfo channelInfo = new ChannelInfo();  //Information from AskForDeviceParameters(). May be removed when hard-coding parameters.&lt;br /&gt;
PhidgetHelperFunctions.AskForDeviceParameters(channelInfo, ch);&lt;br /&gt;
&lt;br /&gt;
ch.setDeviceSerialNumber(channelInfo.deviceSerialNumber);&lt;br /&gt;
ch.setHubPort(channelInfo.hubPort);&lt;br /&gt;
ch.setIsHubPortDevice(channelInfo.isHubPortDevice);&lt;br /&gt;
ch.setChannel(channelInfo.channel);&lt;br /&gt;
&lt;br /&gt;
if(channelInfo.netInfo.isRemote) {&lt;br /&gt;
    ch.setIsRemote(channelInfo.netInfo.isRemote);&lt;br /&gt;
    if(channelInfo.netInfo.serverDiscovery) {&lt;br /&gt;
        try {&lt;br /&gt;
            Net.enableServerDiscovery(ServerType.DEVICE_REMOTE);&lt;br /&gt;
        }&lt;br /&gt;
        catch (PhidgetException e) {&lt;br /&gt;
            PhidgetHelperFunctions.PrintEnableServerDiscoveryErrorMessage(e);&lt;br /&gt;
            throw new Exception(&amp;quot;Program Terminated: EnableServerDiscovery Failed&amp;quot;, e);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    else {&lt;br /&gt;
        Net.addServer(&amp;quot;Server&amp;quot;, channelInfo.netInfo.hostname,&lt;br /&gt;
            channelInfo.netInfo.port, channelInfo.netInfo.password, 0);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//This call may be harmlessly removed&lt;br /&gt;
PrintEventDescriptions();&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=Java&amp;gt;&lt;br /&gt;
ch.setDeviceSerialNumber(370114);&lt;br /&gt;
ch.setHubPort(2);&lt;br /&gt;
ch.setIsHubPortDevice(true);&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;br /&gt;
&lt;br /&gt;
For future Phidgets-based projects, you can leave out the &amp;#039;&amp;#039;PhidgetHelperFunctions.java&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ChannelInfo.java&amp;#039;&amp;#039; classes entirely.&lt;/div&gt;</summary>
		<author><name>Jdecoux</name></author>
	</entry>
</feed>