Page 1 of 1

Phidget Control Panel

Posted: Fri Jun 14, 2019 3:41 pm
by HuntJason
Hello,
Just wondering if the code for Phidget Control Panel is open? It would sure help with getting a better understanding of the intended use of the API.

TIA,
Jason

Re: Phidget Control Panel

Posted: Wed Jun 19, 2019 2:17 pm
by Patrick
It's not open. What API are you having trouble with? We have examples for all the APIs.

-Patrick

Re: Phidget Control Panel

Posted: Thu Jun 20, 2019 3:18 pm
by HuntJason
Would you be open to permitting me to publish an open-source C# WPF sample that replicates much of the functionality of the Phidget Control Panel? I could send it to you for your approval in advance if you wish. I think some of the community would find it valuable in helping them get started with the API.

Re: Phidget Control Panel

Posted: Fri Jun 21, 2019 5:26 pm
by Patrick
Of course, you are welcome to publish anything you like.

I can send you the control panel source if you want to look at it, but there is a lot going on in there, and the code is pretty messy. It would not be a good place to look for new users.

The one thing the control panel does that we don't really document well anywhere, is build a tree of connected channels using PhidgetManager.

-Patrick

Re: Phidget Control Panel

Posted: Sun Jun 23, 2019 3:58 pm
by HuntJason
Patrick,
I should have something for you to take a look at this week. I didn't use the PhidgetManager. I used a chain of responsibility pattern and addressing to have the phidgets sort of assemble themselves. I do notice, using this technique, though, that there are occasions when the phidgets don't trigger their visibility in the same order. A simple restart of my application has always resolved the problem.

Re: Phidget Control Panel

Posted: Mon Jul 15, 2019 8:31 am
by HuntJason
It took longer than expected to get this up to github (holidays, office changes, etc.) but I have posted the open source code for the Control Panel here

https://github.com/pd-management-services/PD.Phidget

All contributions welcomed.