Thanks for the reply, but I don't think that was the problem. I tried rearranging the code to:
//power = 50;
current = phid.getSensorValue(1)/13.2 - 37.8787;
voltage = (phid.getSensorValue(0)+10)/13.2 - 37.8787;
power = current*voltage;}
So the value should refresh at every frame. However, I think that the problem is with the value of phid.getSensorValue(1). It always increases by approx 10, which will make my current and power increase/decrease by a more or less fixed value. Please view the video attached and you will get what I mean. The value being displayed is phid.getSensorvalue(1).
I would like to make it such that the video being captured by phid.getSensorValue(1) is sensitive to the point where it will increase by a value of "1". That means that the phid.getSensorValue(1) should be increasing and decreasing by a value of "1", 501>502>503>504.... instead of jumping from 501 to 510.
If the problem lies with the sensitivity, is it possible to please tell me the code required to change the sensitivity of the sensor using Actionscript 3.0? I tried changing the slider bar from the Phidgets Manager but the sensitivity does not save.
Thanks for your help in advance!
Link to short video: http://www.youtube.com/watch?v=xHsXCVdrhFA