here's the roadrunner.exe
See attached, search the code for greenman100 if you like. meant to be compiled with 11-12-06 version.
phigdonXX - turn on digital output XX
phigdoffXX - turn off digital output XX
phigdoXX - returns digital output XX state
phigdiXX - returns digital input XX state
good work man, now i just need my new car, a phidgets kit, and a carpc, so i can ditch the climate controls
Ok, I had no idea what a "phidget" was till I did a quick Google This looks like it could open up a pretty big world to the already amazing RR front end.
Has this been submitted to Guino, so it can become part of the official releases?
With a little research, I can see this used so many ways! Of particular interest is the Distance sensor Phidget to place on the rear of the vehicle for distance to an object when backing up. (Good for a range of just over 2 feet)
Now for a question
Can the input be turned into useful data with Road Runner? For instance the distance sensor, mentioned above, outputs a range of numbers from 0 to 500. Having that converted to the actual distance would be much more useful.
many of the sensors already support conversion through a tooltip:
Code:Case "c2f" 'Show in C N = N - 200: N = N / 4 N = (N * 9) / 5: N = N + 32 GetPhid = Format(N, "0.0F") Case "f2c" 'Show in F N = N - 200: N = N / 4 GetPhid = Format(N, "0.0C") Case "volt" 'Show in V N = N - 500: N = N * 0.06 GetPhid = Format(N, "0.00") Case "50amp" 'Show in Amps N = N - 500: N = N * 0.1 GetPhid = Format(N, "0.00") Case "15amp" 'Show in Amps N = N - 500: N = N * 0.03 GetPhid = Format(N, "0.00") Case "gp" 'Show in Pressure N = (N / 4) + 10 GetPhid = Format(N, "0.00")
I could add code for the rest later, but I really need people to beta test the code to confirm it works before I submit anything to guino.
your code is for digital i/o not sensor reading, right? theres already commands in skin commands.txt for reading phidget sensor data. is it possible to do math and/or simple scripting in the skin files, or would that have to be output to a specific program for proccessing?
sorry for goin off topic, but yea, your code, digital i/o not sensors..
scrol abotu halfway down and click on 'Download for free with FileFactory Basic'
Ah very cool i'll have to spend more time with skinning in RR.. using your addition, i can have a nifty lil setup that keeps my car at whatever temp i want