This topic explains how to use JavaScript in the VWorks software. For a full description of the JavaScript language, see the Mozilla Developer Center
at
https://developer.mozilla.org/en-US/docs/Web/JavaScript.
A comprehensive JavaScript engine is implemented in the VWorks software so that you can customize the software as follows:
By default, the values of all variables are cleared (set to undefined) before the next protocol is run. To retain the value of all variables from protocol to protocol, select the Use global context for this protocol option in the Protocol Options tab. When the option is turned on, a variable and its value assigned in one protocol can be used by other protocols that have the same variable until you exit the software. If using the global context option, the values of variables are not reset until the software is restarted.