×

Newsletter


Exclude a device using javascript

1 reply [Last post]
hamza.sarhrouni_1
hamza.sarhrouni_1's picture
Offline
Joined: Feb 8 2018

Hello evryone,

I need to know if someone among you had already done a script to exclude devices in emtp?

h.gras
h.gras's picture
Offline
Joined: Jan 1 1970
Hi Hamza,Here is how to

Hi Hamza,

Here is how to do:

var cct = currentCircuit()  //grab the circuit

var dev = cct.devices('Name', 'Dev')[0]  //grab the device named Dev

dev.setAttribute('Exclude', 'Ex')   //exclude the device.

Let me know if anything.

Thanks

Henry