Addressing Network Phidgets

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

Addressing Network Phidgets

Postby HuntJason » Thu Oct 03, 2019 10:02 am

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: 268
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: Addressing Network Phidgets

Postby fraser » Thu Oct 03, 2019 12:46 pm

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

Postby HuntJason » Mon Oct 07, 2019 11:09 am

That worked. Thanks!


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 1 guest