How to use tables and lookup/down commands...
Archiver
Posts: 46,084
alright im strating to like this fourm because every time i post
something i get exactly what i need backm, a CORRECT answer [noparse]:)[/noparse] hehe
anyways , my new qusetion is this,. how the heck do u use tables and
lookup and look down command, once agian this qusetion is reguarding
my fuel injected engine im working on i have a breife description on
in below hear .....
****well what im trying to do is make a small single piston engine
like gokart motors, fuel injected ... so my application is time
critial. on my setup i have two sensors feeding the stamp then a
fuel injector comeing out of the stamp as a output(fed though some
transitors of couse)... for every rotaion of the engine (probley
useing the Pulsein command) , i have a magnetic coil pick up indicate
the start of the program to start injecting fuel into the engine. the
duration of the fuel injection or pulse width is decided from the
thottle postion sensor , so for example if im running at idle or no
thottole is being applied, the injector will open say 5 milo seconds
on every roation (as example) but if i give it a quater gass or half
gass on the thottole , the stamp will see the value change from say 1
to 2 or 4 (im trying to keep the thottle postion resolution down as
much as possble from the thottole postion sensor, the range im aiming
for is 1~8 or even 1~4 (from idle ~ full thottle))
now the stamp see's the thottole postion change from value of 1
(idle) and is indicating that its new vaule is 4 (half speed or full
speed) , so now the stamp will do a lookup command read from a set of
tables , get the correct injector pulse/duration and then do a
pulseout command to the injector...
i dont know if any of this makes sence this is all in my head right
now im a first time stamp'er hear, only program i wrote so far was to
watch a debug screen show my thottle postion useing the stupid RCTime
command but i was told that useng those sorts of commands to measure
things, the stamp waits to dischjarge the cap through resistor and
takes more time before it will read the next insturuction...******
maybe someone could give me a sample program of what im trying to do
based off what im inputing into the stamp...... that would really win
my day if that happend [noparse]:)[/noparse] hehe
Sean....
something i get exactly what i need backm, a CORRECT answer [noparse]:)[/noparse] hehe
anyways , my new qusetion is this,. how the heck do u use tables and
lookup and look down command, once agian this qusetion is reguarding
my fuel injected engine im working on i have a breife description on
in below hear .....
****well what im trying to do is make a small single piston engine
like gokart motors, fuel injected ... so my application is time
critial. on my setup i have two sensors feeding the stamp then a
fuel injector comeing out of the stamp as a output(fed though some
transitors of couse)... for every rotaion of the engine (probley
useing the Pulsein command) , i have a magnetic coil pick up indicate
the start of the program to start injecting fuel into the engine. the
duration of the fuel injection or pulse width is decided from the
thottle postion sensor , so for example if im running at idle or no
thottole is being applied, the injector will open say 5 milo seconds
on every roation (as example) but if i give it a quater gass or half
gass on the thottole , the stamp will see the value change from say 1
to 2 or 4 (im trying to keep the thottle postion resolution down as
much as possble from the thottole postion sensor, the range im aiming
for is 1~8 or even 1~4 (from idle ~ full thottle))
now the stamp see's the thottole postion change from value of 1
(idle) and is indicating that its new vaule is 4 (half speed or full
speed) , so now the stamp will do a lookup command read from a set of
tables , get the correct injector pulse/duration and then do a
pulseout command to the injector...
i dont know if any of this makes sence this is all in my head right
now im a first time stamp'er hear, only program i wrote so far was to
watch a debug screen show my thottle postion useing the stupid RCTime
command but i was told that useng those sorts of commands to measure
things, the stamp waits to dischjarge the cap through resistor and
takes more time before it will read the next insturuction...******
maybe someone could give me a sample program of what im trying to do
based off what im inputing into the stamp...... that would really win
my day if that happend [noparse]:)[/noparse] hehe
Sean....