Search Results

by Patrick
Tue Mar 28, 2017 11:40 am
Forum: VB .NET
Topic: Opening a new form then returning to the original
Replies: 6
Views: 19590

Re: Opening a new form then returning to the original

Create a singleton class, which your forms will all share. The forms can register/deregister for events as they come up/down. Since the PhidgetBridge object isn't owned by your forms, you will need to handle Invoke yourself if you need to access the form directly from and Phidget events. For example...
by Patrick
Tue Mar 28, 2017 11:29 am
Forum: General
Topic: NodeJS
Replies: 3
Views: 5994

Re: NodeJS

If you want to get Node.JS running on an SBC2/3 you would need to compile/cross-compile it yourself. Also, you would need to use the old 0.10 branch, as the newer branches require ARMv6 or newer, and the SBC3 only support ARMv5.

-Patrick
by Patrick
Tue Mar 28, 2017 8:35 am
Forum: VB .NET
Topic: Opening a new form then returning to the original
Replies: 6
Views: 19590

Re: Opening a new form then returning to the original

You can close/open, but you may want to move your bridge code to another class and just share as a global singleton.

-Patrick
by Patrick
Tue Mar 28, 2017 8:33 am
Forum: General
Topic: Help With Exception please
Replies: 6
Views: 11904

Re: Help With Exception please

This generally happen if you have the bridge data event handler set up, and then close the bridge in a form closing event. This will cause a deadlock. You need to deregister the event 1st, then call Application.DoEvents(), then close the bridge.

-Patrick
by Patrick
Wed Mar 08, 2017 12:16 pm
Forum: General
Topic: Change webserver port off of 80
Replies: 1
Views: 4705

Re: Change webserver port off of 80

Yes, modify the file /etc/init.d/busybox-httpd and modify the OPTIONS line, adding -p for port. For example, to use port 85:

OPTIONS="-c $DEFAULTS -f -p 85"

-Patrick
by Patrick
Fri Jan 13, 2017 9:30 am
Forum: Python
Topic: OnChange fired for every I/O during Phidget Load
Replies: 1
Views: 3155

Re: OnChange fired for every I/O during Phidget Load

Yes, you will get change events for the initial state.

-Patrick
by Patrick
Tue Dec 20, 2016 9:11 pm
Forum: General
Topic: 1012 Detaching Sporadically
Replies: 15
Views: 13976

Re: 1012 Detaching Sporadically

If 1067 is disconnecting as well, it's EMI. Maybe wiring with usb cables tightly zip-tied in? Installing the diodes might help a little. I would recommend you put plenty of ferrites on USB cables, from hub to pc, hub to devices, and the hub-5v power supply line. No reason they can't put 5 ferrites a...
by Patrick
Tue Dec 20, 2016 11:18 am
Forum: General
Topic: Clarification on 1044 compass calibration
Replies: 1
Views: 3232

Re: Clarification on 1044 compass calibration

How important the compass calibration is depends on what you're using the compass data for.

You need to calibrate in it the location that it's going to be used, because the calibration is for filtering out nearby metallic sources.

-Patrick
by Patrick
Fri Dec 16, 2016 2:28 pm
Forum: General
Topic: 1012 Detaching Sporadically
Replies: 15
Views: 13976

Re: 1012 Detaching Sporadically

From the log it looks like there are 2 detaches happening - are the 1012 and 1067 both detaching at the same time?

-Patrick
by Patrick
Fri Dec 16, 2016 10:40 am
Forum: General
Topic: 1012 Detaching Sporadically
Replies: 15
Views: 13976

Re: 1012 Detaching Sporadically

It's not EMI, there is actually a real USB detach happening. Have you tried connecting the 1012 directly to the PC to rule out hub issues? Have you tried swapping out the USB cable? Can you provide a diagram of exactly how the I/O on the 1012 is connected? Are you using both digital inputs and outpu...