Template:PT1 HUB0007 WIN: Difference between revisions

From Phidgets Support
(Created page with "<div class="phd-slide-deck" data-deck="PT1_HUB0007_LNX"> <div class="phd-slide-deck-header"><h3>HUB0007 - Linux</h3></div> <div class="phd-slides"> <div class="phd-slide"> <div class="phd-panels"> <div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle"> <div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_LNX/350x-/50/HUB0007_LNX.jpg"></div> </div> <div class="phd-panel phd-flex-column-align-left phd-flex-column-just...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="phd-slide-deck" data-deck="PT1_HUB0007_LNX">
<div class="phd-slide-deck" data-deck="PT1_HUB0007_WIN">
<div class="phd-slide-deck-header"><h3>HUB0007 - Linux</h3></div>
<div class="phd-slide-deck-header"><h3>USB VINT Hub - Windows</h3></div>
<div class="phd-slides">
<div class="phd-slides">
<div class="phd-slide">
<div class="phd-slide">
<div class="phd-panels">
<div class="phd-panels">
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_LNX/350x-/50/HUB0007_LNX.jpg"></div>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/350x-/50/HUB0007_WIN2.jpg"></div>
</div>
</div>
<div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-middle">
<div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-middle">
Line 18: Line 18:
<h2>Step 1: Install Phidgets Library</h2>
<h2>Step 1: Install Phidgets Library</h2>


<p>1. First, you need to install the libusb-1.0 development libraries. For example, in Debian based distributions:</p>
<p>Before you begin using your Phidgets, you will need to install the Phidget Library.</p>


<div class="phd-command-line"><code>apt-get install libusb-1.0-0-dev</code></div>
<p>1. Download the installer for your system:</p>


<br />
<p><span>[https://www.phidgets.com/downloads/phidget22/libraries/windows/Phidget22-x86.exe ● 32-bit Installer Download]</span></p>
 
<p><span>[https://www.phidgets.com/downloads/phidget22/libraries/windows/Phidget22-x64.exe ● 64-bit Installer Download]</span></p>


<p>You’ll also need a C compiler and builder, if you don’t already have one installed.</p>
<p>If you're unsure which one you should get, press <kbd>⊞ WIN</kbd> + Pause/Break:</p>


<div class="phd-command-line"><code>apt-get install gcc</code></div>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/64bit.jpg"></div>


<div class="phd-command-line"><code>apt-get install make</code></div>
<p>Before installing our libraries, be sure to read our <span>[https://www.phidgets.com/docs/Software_License Software License]</span>.</p>
</div>
</div>


Line 34: Line 36:
<h2>Step 1: Install Phidgets Library</h2>
<h2>Step 1: Install Phidgets Library</h2>


<p>2. Next, download and unpack the Phidgets library:</p>
<p>2. Open the download. If it asks you for permission, select <b>Run</b></p>


<p>● <span>[https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22.tar.gz libphidget22]</span></p>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/runfile.jpg"></div>
</div>
</div>


Line 42: Line 44:
<h2>Step 1: Install Phidgets Library</h2>
<h2>Step 1: Install Phidgets Library</h2>


<p>3. Use the following commands in the location you unpacked to install the library:</p>
<p>3a. Select <b>Next</b></p>


<div class="phd-command-line"><code>./configure</code></div>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x350/50/win_install1.jpg"></div>
</div>


<div class="phd-command-line"><code>make</code></div>
<div class="phd-slide">
<h2>Step 1: Install Phidgets Library</h2>


<div class="phd-command-line"><code>sudo make install</code></div>
<p>3b. Read the Licence Agreement. Select <b>Next</b>.</p>
 
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x350/50/win_install2.jpg"></div>
</div>
</div>


Line 54: Line 60:
<h2>Step 1: Install Phidgets Library</h2>
<h2>Step 1: Install Phidgets Library</h2>


<p>4. (Optional) You can also download and unpack the following optional packages:</p>
<p>3c. Choose Installation Location. Select <b>Next</b>.</p>
 
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x350/50/win_install3.jpg"></div>
</div>
 
<div class="phd-slide">
<h2>Step 1: Install Phidgets Library</h2>
 
<p>3d. Confirm Install</p>
 
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x350/50/win_install4.jpg"></div>
</div>


<p>
<div class="phd-slide">
<span>[https://www.phidgets.com/downloads/phidget22/servers/linux/phidget22networkserver.tar.gz phidget22networkserver]</span> - Phidget Network Server, which
<h2>Step 1: Install Phidgets Library</h2>
enables the use of Phidgets over your network
</p>


<p>
<p>3e. Wait for Installation to complete. This should only take a few moments.</p>
● <span>[https://www.phidgets.com/downloads/phidget22/tools/linux/phidget22admin.tar.gz phidget22admin]</span> - Admin tool to track who is connected to your
Phidgets when using the network server
</p>


<p>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x350/50/win_install5.jpg"></div>
● <span>[https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22extra.tar.gz libphidget22extra]</span> - Required for phidget22networkserver
</div>
and phidget22admin
</p>


<p><span>[https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22java.tar.gz libphidget22java]</span> - The Java libraries for Phidget22</p>
<div class="phd-slide">
<h2>Step 1: Install Phidgets Library</h2>


<br />
<p>3f. Installation Complete. Close installation Window.</p>


<p>For installation instructions for these packages, see the README file included with each one.</p>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x350/50/win_install6.jpg"></div>
</div>
</div>


Line 81: Line 92:
<h2>Step 2: Connect Devices</h2>
<h2>Step 2: Connect Devices</h2>


<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_LNX/HUB0007_1.gif"></div>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/HUB0007_1.gif"></div>


<p>● Connect the HUB0007 to a USB Port on your Linux Computer</p>
<p>● Connect the HUB0007 to a USB port on your Windows Computer</p>


<p>● Connect VINT Device(s)</p>
<p>● Connect VINT Device(s)</p>
Line 91: Line 102:
<h2>Step 3: Verify Connection</h2>
<h2>Step 3: Verify Connection</h2>


<p>
<p>1. Open the Phidgets Control Panel:</p>
1. The easiest way to verify that your libraries are working properly is to compile and run an example program. Download and unpack this C example that will
detect any Phidget:
</p>


<p><span>[https://www.phidgets.com/downloads/phidget22/examples/c/Manager/Phidget22_HelloWorld_C_Ex.zip HelloWorld C Example]</span></p>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x210/50/win_panel1.jpg"></div>
 
<p>If your Control Panel does not open, look in your taskbar. Double click the Phidget Icon.</p>
 
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/-x80/50/win_panel2.jpg"></div>
</div>
</div>


Line 102: Line 114:
<h2>Step 3: Verify Connection</h2>
<h2>Step 3: Verify Connection</h2>


<p>2. Next, open the terminal in the location where you unpacked the example. Compile and run using:</p>
<p>2. If connected, your Phidgets will appear in the Phidget Control Panel.</p>
 
<div class="phd-command-line"><code>gcc HelloWorld.c -o HelloWorld -lphidget22</code></div>
 
<div class="phd-command-line"><code>sudo ./HelloWorld</code></div>
 
<p>ou should receive a “Hello” line for each Phidget channel that is discovered:</p>
 
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_LNX/-x180/50/helloworld.png"></div>


<p>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT1_HUB0007_WIN/win_panel_hub0007.jpg"></div>
{{UGC-Entry|I don’t see any Phidgets show up in the HelloWorld example||You need to run it with sudo in order to be able to access USB devices. In order to use
Phidgets without sudo, you need to set your udev rules. See the Advanced Information page on the final slide of this guide for details.}}
</p>
</div>
</div>


Line 121: Line 122:
<h2>Done!</h2>
<h2>Done!</h2>


<p>If you're able to see your devices in the Hello World example, you're done with the Setup part of this guide.</p>
<p>If you're able to see and interact with your devices in the Phidget Control Panel, you're done with the Setup part of this guide.</p>


<p>Scroll down to <b>Part 2: Using Your Phidget</b> for the next step.</p>
<p>Scroll down to <b>Part 2: Using Your Phidget</b> for the next step.</p>
Line 127: Line 128:
<br />
<br />


<p>For more info installing in Linux (e.g. Udev rules, old versions, etc.), visit this page:</p>
<p>For more help installing in Windows (e.g. manual install, using a VM, etc.), visit this page:</p>


<p>● <span>[https://www.phidgets.com/docs/OS_-_Linux#Advanced_Information Linux Advanced Information]</span></p>
<p>● <span>[https://www.phidgets.com/docs/OS_-_Windows_Advanced_Information Windows Advanced Information]</span></p>
</div>
</div>
</div>
</div>
Line 143: Line 144:
<div class="phd-simple-button phd-to-slide-button" data-navigation-direction="next">»</div>
<div class="phd-simple-button phd-to-slide-button" data-navigation-direction="next">»</div>
</div>
</div>
<div hidden class="phd-hidden-breadcrumb-label" data-label="Linux Install"></div>
<div hidden class="phd-hidden-breadcrumb-label" data-label="Windows Install"></div>
</div>
</div>

Latest revision as of 18:37, 4 July 2024

Step 1: Install Phidgets Library

Step 2: Connect Devices

Step 3: Verify Connection

Step 1: Install Phidgets Library

Before you begin using your Phidgets, you will need to install the Phidget Library.

1. Download the installer for your system:

● 32-bit Installer Download

● 64-bit Installer Download

If you're unsure which one you should get, press ⊞ WIN + Pause/Break:

Before installing our libraries, be sure to read our Software License.

Step 1: Install Phidgets Library

2. Open the download. If it asks you for permission, select Run

Step 1: Install Phidgets Library

3a. Select Next

Step 1: Install Phidgets Library

3b. Read the Licence Agreement. Select Next.

Step 1: Install Phidgets Library

3c. Choose Installation Location. Select Next.

Step 1: Install Phidgets Library

3d. Confirm Install

Step 1: Install Phidgets Library

3e. Wait for Installation to complete. This should only take a few moments.

Step 1: Install Phidgets Library

3f. Installation Complete. Close installation Window.

Step 2: Connect Devices

● Connect the HUB0007 to a USB port on your Windows Computer

● Connect VINT Device(s)

Step 3: Verify Connection

1. Open the Phidgets Control Panel:

If your Control Panel does not open, look in your taskbar. Double click the Phidget Icon.

Step 3: Verify Connection

2. If connected, your Phidgets will appear in the Phidget Control Panel.

Done!

If you're able to see and interact with your devices in the Phidget Control Panel, you're done with the Setup part of this guide.

Scroll down to Part 2: Using Your Phidget for the next step.


For more help installing in Windows (e.g. manual install, using a VM, etc.), visit this page:

Windows Advanced Information

«
»