Scripting
Tis I the view faq page 4 html
How to trigger a script in EMTP
I. From the Script tabCreate a new JavaScript document (ctrl + N)Click on runThis method is good for small scripts.The EMTP code editor must be used.II. From the Design tab1. Click on Run a script This method calls script file (.dwj).Any JavaScript code editor can be used.III. From a buttonA. Cre... See more
What are DWDevice, DWCircuit, DWSignal, DWPin, etc in EMTP JavaScript?
DWDevice, DWCircuit, DWSignal, etc refer to JavaScript classes of the EMTP graphical user interface (GUI) which are used for scripting purpose.DW is the abbreviation of DesignWorks which is the name of the technology the GUI is built with.· A DWDevi... See more
How to get devices in circuit using EMTP JavaScript
Required knowledge: * How to trigger a script in EMTP* What are DWDevice, DWCircuit, DWSignal, DWPin, etc in EMTP JavaScript?This script gets a DWDevice from an EMTP DWCircuit.This script gets DEV1 in the main circuit, then gets all ... See more
How to change a device name using EMTP JavaScript
Required knowledge: * How to trigger a script in EMTP* What are DWDevice, DWCircuit, DWSignal, DWPin, etc in EMTP JavaScript?* How to get devices in circuit with EMTP JavaScriptThis script gets a DWDevice from an EMTP DWCircuit and change its attribute Name.//* Descript... See more
How to connect signals and pins using EMTP JavaScript
Required knowledge: * How to trigger a script in EMTP* What are DWDevice, DWCircuit, DWSignal, DWPin, etc in EMTP JavaScript?This script connects a device pin to different buses using virtual connection (signal naming) method or wire connection.Applications:· &n... See more
How to replace a device by another from a library using EMTP JavaScript
Required knowledge: * How to trigger a script in EMTP* What are DWDevice, DWCircuit, DWSignal, DWPin, etc in EMTP JavaScript?This script replaces a device by another device type defined in a EMTP library (.clf).Applications:· &... See more