PDA

View Full Version : Phidgets 5.0.15 Unhandled exception error



KenK
02-13-2010, 04:11 PM
I have recently installed ver 5.0.15 and am having some problems:

My system has 1 led-64 card installed. This card worked correctly with the older version of Phidgets (4.3.8)

I un-installed v4.3.8 and installed v5.0.15 and phidgets mgr v 2.1.6

At this time the phidgets program starts up correctly and the manager reckognizes the led-64 card correctly.

1. FS2 Phidgets gives me an "unhandled exception error" when I try to assign led-64 outputs to a digital output symbol. What is the correct way to assign digital output pins ?

2. I could not find an led-64 emulator is it available yet ?

I like this interface a lot it seems very intuitive. Unfortunately my intuion is down a few notches this week . I gotta be doing somthing dumb !!! :?::-(

Best regards to all

KenK

gokhotit
02-14-2010, 03:41 AM
That version doesnt like the LED64 card...I am beta testing for Alan and working out the kinks..

KenK
02-14-2010, 01:45 PM
Thanks guys I hope you are successful. I like this interface its a lot like some data Acquisition programs where you draw in components and define parameters in a window.If you need an led-64 tester let me know.

regards Ken K

CocnutAir
02-14-2010, 02:48 PM
Kenk,

Another user reported same problem. There is a bug.
Will post an update as soon as that is sorted out.

Regards,
Alan.

CocnutAir
02-14-2010, 05:10 PM
Here is what gokhotit and I found from testing:

LED64s are a little different from interfacekit leds.
IFKits work with true or false, but one can set the brightness on led64s.

Full on is 100 and off is 0.
Will get an Argument Exception error if outside this range

Initial bug was that I was setting led64 like an IFkit i.e. true or false.
In computing false is 0 and true is -1
The -1 will cause error.
I fixed this to use circuit value.
Current problem I now realise is that a circuit can send a value greater than 100 or less than 0.

I am going to fix this in 3 ways:

(1) Put a check in code to ensure brightness value is on correct range. 0 - 100
(2) Add a brightess property to circuit components.
If set to true will attempt to use brightness in circuit.
Iif set to false, led will function like an IFkit. i.e. full bright when on, no brighness when off.
(3) Trap error and write to log (only one entry, to prevent saturating disk).

Regards,
Alan

KenK
02-15-2010, 11:52 AM
Thanks guys I apreciate all your efforts. Sounds like your on the right track.

Regards
Ken K