KB-29644: Global variables in E3’s scripts.
Question: Can I create a global variable in an object’s script that will be accepted by all other project’s script? Solution: No, there is no command that can do so…
Question: Can I create a global variable in an object’s script that will be accepted by all other project’s script? Solution: No, there is no command that can do so…
Question: How can I create a table link in runtime via scripts? Solution: To do so, you must first use CreateLink method to create the link, and pass parameter “4”…
Question: I have inserted Login() method in Viewer’s OnStartRunning event. However, when I click on Cancel button in the login window, the screen opens anyway. How can I fix this?…
Question: How can I obtain the difference between the current date/time and the date/time input in a setpoint, in minutes? Solution: To do so, you can use the following script:…
Question: How can I use an internal tag as vector (Array)? Solution: To save a vector in an internal tag, you must use the following script: Dim list(2) list(0) =…
Question: Can the Caps Lock key be enabled/disabled via E3? Solution: Yes, this cane be done via VBScript‘s SendKeys method. The script below toggles the Caps Lock key: set WshShell…
Question: Can I open Windows Explorer in a specific folder, via E3? Solution: Yes. With Run Application pick, you will just need to type the address of the folder in…
Question: How can I perform a Sequence of Events (SOE) in E3? Solution: This can be done in two ways: via alarms settings, or via I/O Driver’s OnTagRead event. How…
Question: On a frame, how can I open a screen on another frame? Solution: To do so, you can use a script with methods GetFrame() and OpenScreen(). Example: Application.GetFrame(“”).OpenScreen “NameOfTheFrame”,…
Question: How can I plot the functions y=x+2; y=X^2; y=x^3 in an E3Chart? Solution: To do so, use Pen’s AddPoint method, via scripts, to add points to a chart. Examples:…