In SX Microcontrollers, SX/B Compiler and SX-Key Tool, amg6975 wrote: Hey everyone, I've been using Stamps for a little while now and have been arond but first time poster because I'm starting to play around with the SX for fun. I'm a car guy so my ultimate goal is to get a fuel injection engine running on an SX. I've alread done traction control and shifting control with a BS2sx. I'm sure I'll have tons of questions but here's the first: I need to make a table (fuel map) and from what I've read so far it seems like DATA/WDATA is the way to do it but I can't figure out how to READ a specific value. Here's an example of the table I made (values are just in there as place holder... it'll be tuned if it ever gets connected to an engine :p) [code]'======================================== FuelLoad var word FuelMap: 'LOAD x xx xxx 'RPM WDATA 65535, 65535, 65535, 65535, 65535, 65535, 65535 ... '500 WDATA 65535, 65535, 65535, 65535, 65535, 65535, 65535 ... '1000 WDATA 65535, 65535, 65535, 65535, 65535, 65535, 65535 ... '1500 ... '=========================================[/code] I've read up the examples on displaying the whole string but I just want to grab a data based on the load and RPM So far I've got: (say for 1,000 RPM and xx load) [code]READ FuelMap + 2, FuelLoad[/code] I just have no idea how to get over to the xx word. I could also be completely in left field so if that's the case, please point me in the correct direction. Thanks! Adam ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=266981 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)