I don't know about any of you using the Expression Gate 1, but I am having a major problem with it, and perhaps you guys could help me.
I didn't thoroughly read the 40 pages of the thread, but I'm sure I'm not the only one having this problem (I sure hope so!). When I type in a new expression, this is what happens...
(I am trying to make a chip that tells four wheels to go when your distance from it is less than 100 inches, but to reverse when it is less than 50 inches [providing a Target Finder and Beacon Sensor are used]).
1. I type in a label, for example "Acceleration" (without quotes, of course).
2. For input, I type "Distance"
3. For output, I type "Go"
4. The first line of code is: "Go = 0, if (Distance < 100) -> Go = 1;"
5. The second line of code is: "If (Distance < 50) -> Go = -1;"
6. I press "Validate," and the second line of code is deleted! What the hell?!
--Also, I noticed something else: When I press "validate," it will validate the lines of code I already have. However, if I modify them (such as by adding inputs and/or outputs) and hit "validate" again, it reverts the expression chip back to how it was the first time I validated it. Let me give you an example; I define a label, inputs, outputs, and a line of code. Then I hit validate. When validated successfully, I then modify it again, this time adding another input or output, and perhaps adding another one. Then I hit "validate" again, and lo and behold, it reverts the chip back to how it was the first time I hit "validate," completely destroying the fresh modifications I just made on it since.
Another thing: sometimes, when I hit "validate," it partially processes the second line, but only by a few characters (weird...).
Is my version of Wire corrupt or something? What does this mean? I have the SVN revision as of 4-17-2009 (yesterday). I think it is at 1090 or something.
If anyone could tell me what I am doing wrong, I would be a really happy Wire modder.
Thanks in advance.


LinkBack URL
About LinkBacks






Reply With Quote




Bookmarks