Asked
I have tried to run both ARC 4.3 and ARC 4.5 with scripts from my previous Synthiam software.
I receive an error code that identifys a LOOP LABEL as not identified. I have reidentified the LOOP and still indicates an error.
I have performed multiple EZB4 resets and removed/reinstalled above software versions to include a computer retart.
I am using widows 10
All scripts operated beautifully until I updated this morning. I tried ARC 2 and problem remains.
Any help? I'm desparate.
Jack
Related Hardware EZ-Robot EZ-B v4
Thankyou DJ. I have multiple scripts that normally run. This is one of them. I have found that if I open the script up, it gets "corrupted" and sends an error code. Of the scripts that I did not open since the revision download, they run fine. The above code error message is LoopStart "undefined".Code:
Jack
A label: is defined in JavaScript quite differently, see here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label
And more specifically, someone attempting to use it in the similar fashion and realizing the label: needs to be applied directly before a looping statement, here: https://stackoverflow.com/questions/6393648/why-is-this-labeled-javascript-continue-not-working
Here is your code re-written. Keep in mind, as the code comment says, DEVIATION_LEFT is always false. So the IF condition will never be met.
Code:
Perhaps if you're communicating with other controls, you'd want DEVIATION_LEFT to be public across the entire project. In that case, use getVar() and setVar(). Such as....
Code:
What am I to do?
Jack
The solution would be to use the Loop Forever block, which produces while (true) loop
On this script an error msg "unble to get"(ADC 7). It is connected to the EZB4. I have tried recoding it using Blockly from this current ARC.Code:
My scripts ran perfectly earlier this morning before the download. Does a previous version exist that I could use? I would say that the last update I did was 3-6m ago. I tried ARC 4.2 with the same results.
Thanks
Jack
Jack
However, the rest of my scripts have multiple GOTO in Blockly. These do not lend themselves to FOREVER Looping. These scripts all error with Label not defined.
Does latest ARC support Blockly?
I'm really stuck here. My project of 3yrs is now bricked because this latest version will not run my scripting. All 11 scripts were functioning beautifully together this morning before the update.
Is it possible to obtain a previous version so that I may continue my work until your Blockly issues get sorted out?
Thankyou very much,
Jack
Jack
One more question. You provided an example of using a Variable globally across the entire project. This was done in JavaScript.
Can you provide an example in Blockly? I did this often in Blockly with the past ARC revision but cannot seem to get it to work now.
Thank you
Jack
To make a JavaScript or Blockly variable public, put a $ (dollar sign) in front
I downloaded the latest beta.
I have reviewed the link that you provided previously:
However I cannot make sense in blockly. Nothing works for me. Could I impose for a simple example in Blockly of LABEL, CONTINUE, & BLOCK.
Thanks so much.
Jack
All you seem to need is are loops. You want code to loop. So use the loop instead of thinking about labels. The examples i provided above have loops.
Notes:
- notice how a public (Global) variable has a $ (dollar sign) at the beginning. A global public variable means it can be accessed by all scripts.
- the variable "countThisIsNotPublic" does not start with a $ (dollar sign). Therefore, it only exists within this script. It cannot be accessible by other scripts.
- see how the main code is within a "loop forever". That will loop for ever, as the name suggests. You can exit the loop with a BREAK. Or you can exit the entire script with a HALT or a RETURN
And here's the JavaScript it generates...
Code:
Jack