Ok, I just spent over an hour troubleshooting a problem that made no sense at all. To make a long story short, I am using the quotient& remainder function and some simple logic to determine every 1 second of Igniton=on time from a data file.
Anyhow, I have a type def with several doubles in it that I read from shift register, modify, and write back to shift register in a certain state of a state machine.
I needed to add another double to the type def so, open type def, select a double, ctrl+drag, rename and you have a new double in your type def, right?
So, I start running the program and checking things out and my new double has values that just dont make any sense at all. I can see what I am writing to it and where I am writing to it but the value I am writing is not what I am getting out when I read it in the next iteration of the loop.
Turns out, I must not have had the ctrl key pressed all the way down when I dragged and renamed my new double in the type def so all I really did was rename the original double which was then getting written to again in another state of the state machine!!!!
DOH!!!!!
:frusty: