Finding The Addressing Information

From Phidgets Support


Addressing Informaiton

Before opening a channel, it is important to set enough of the addressing parameters to ensure the desired device channel is matched. By default, the matching code in the Phidget library will match the first available device channel that is of the correct class.

This guide will serve as an overview of how to quickly find these addressing parameters to set them up for your device. For more in-depth descriptions of what they all mean, check out the Using Multiple Phidgets page.

Channel Class

This is the API class used to communicate with your Phidget. A set of compatible channel classes for your Phidget will be available on the API tab on its product page. Some devices also list the available channel classes on their enclosure.

DeviceSerialNumber

The device serial number serves to identify a specific Phidget, and can be found on a label on the bottom of the Phidget. If your Phidget does not have a serial number label, you will instead need to use the serial number of the Phidget it plugs into.

Channel

The channel identifier is generally listed as a number beside the physical terminal on the device. A full list of channels available to your Phidget will be available on the API tab on its product page.

HubPort

This refers to the port on the VINT Hub that your device is plugged into, indicated by the number beside the port. If your device does not plug into a VINT port, this parameter may be left as default.

IsHubPortDevice

If you are trying to use a VINT port with a simple device such as a slider, a 0-5V sensor, a switch, or an LED, you will want to set this property to TRUE. Otherwise this should be left as default or set to FALSE.

Finding The Addressing Information

Before you can access the device in your own code, and from our examples, you'll need to take note of the addressing parameters for your Phidget. These will indicate how the Phidget is physically connected to your application. For simplicity, these parameters can be found by clicking the button at the top of the Control Panel example for that Phidget.

The locate Phidget button is found in the device information box

In the Addressing Information window, the section above the line displays information you will need to connect to your Phidget from any application. In particular, note the Channel Class field as this will be the API you will need to use with your Phidget, and the type of example you should use to get started with it. The section below the line provides information about the network the Phidget is connected on if it is attached remotely. Keep track of these parameters moving forward, as you will need them once you start running our examples or your own code.

All the information you need to address your Phidget