KB-20337: StrZero function in E3.
Question: Is there a function similar to SCADA’s StrZero in VBScript? Solution: No, there is no such function in VBScript. However, this could be worked around with this script: Dim…
Question: Is there a function similar to SCADA’s StrZero in VBScript? Solution: No, there is no such function in VBScript. However, this could be worked around with this script: Dim…
Question: How can I set Windows’ clock via E3 scripts? Solution: To do so, use DATE and TIME commands via DOS command line. It can be inserted in a script…
Descrição: Como converter o valor de um contador em segundos para o formato de horas, minutos e segundos (por exemplo, converter 70 segundos para o formato 00h 01min 10seg)? Solução:…
Question: I use WriteEx() method to command a remote device’s output. Some of these commands return errors, but the driver’s log indicates this method is working properly. How can I…
Question: How can I pass additional parameters for opening a screen via scripts? Solution: To do so, you can use Parameter field in Open Screen pick. In OnPreShow event of…
Question: How can I ping a device that is external to the network running the application? Solution: To do so, you can use VBScripts commands. For example: dim oShell, strComputerset…
Question: How can I change a pen’s width at runtime? Solution: To do so, you must change the pen’s Width property via scripts. Example: Screen.Item(“E3Chart1”).Pens.Item(“Pen1”).Width = 20 NOTE: Attached to…
Question: How can I convert an absolute decimal value into its separate RGB values? Solution: To do so, you will need to use scripts. In the example below, the script…
Question: Can I write all the values in a block at once, instead of writing them individually in each element? Solution: Yes. To do so, disable the IOBlock’s AllowWrite property…
Question: How can I play sound files in E3? Solution: To do so, select a script and use Viewer’s PlaySound method. NOTE: Attached to this article is a sample application…