Re: Look-Up Tables Tutorial
Posted: Tue May 13, 2014 11:31 am
Hello martin,medelec35 wrote:So SW_ST1 & SW_ST1 will have a value e.g 10, so you want to retrieve the 10th number within the look-up table?
One thing I have noticed is you have a calculation like this: SW_ST1 = (SW_A * 4) + (SW_B * 2) + (SW_C)
You will have errors if SW_A, SW_B or SW_C are Bool.
You will need to change Bool to Bytes.
To be honest I'm not following your explanation, but it could be the time of night.
Can you give examples what you want each LUT to retrieve as that will make it easier for me.
Martin
thank you so much for helping me out with this and please forgive my late replies. I have explained in details what the program is about and what i want to achieve with the look up table in the word document attached to this post. I hope you find my explanations clear enough and if there's any part that isn't clear please let me know so i can make it clear. thanks again.