Addressing Network Phidgets

Supporting Visual Studio on Windows
Post Reply
HuntJason
Phidgetsian
Posts: 14
Joined: Tue Mar 20, 2018 12:56 pm
Contact:

Addressing Network Phidgets

Post by HuntJason »

Hello,
What properties need to be set to address a network phidget?

I am setting all of ServerName, DeviceSerialNumber, HubPort, IsHubPortDevice, and Channel but that still doesn't seem to be enough/the correct combination to address/connect to the phidget.

Thanks,
Jason
fraser
Engineering
Posts: 324
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: Addressing Network Phidgets

Post by fraser »

3 things are required for a network device:
1)Have a network server running on the machine with the Phidget plugged into it.

2)Access the Network server from the machine running the code. This can be done with either:
Net.EnableServerDiscovery(ServerType.DeviceRemote);
or
Net.AddServer(servername, ipaddress, 5661, password, 0);
- Where servername can be any string
- Where ipaddress is either the ipaddress as a string or the hostname of the machine
- Where password is a string of what ever your server password is (if you have one)

3)Set the device property "IsRemote" to true, before opening the Phidget.
HuntJason
Phidgetsian
Posts: 14
Joined: Tue Mar 20, 2018 12:56 pm
Contact:

Re: Addressing Network Phidgets

Post by HuntJason »

That worked. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests