I cant find a way to set the device, which my active application belongs to, in simulation mode. How do I get the reference to the interface IScriptDeviceObject for it.
Any help is appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Shabroz.Gill hat geschrieben:
I cant find a way to set the device, which my active application belongs to, in simulation mode. How do I get the reference to the interface IScriptDeviceObject for it.
Search for the device object by using find() and use the method set_simulation_mode() for setting the simulation mode.
For example:
proj=projects.primaryfound=proj.find("Device",True)assert(len(found)==1,"No or too many devices with the name 'Device' found")dev=found[0]dev.set_simulation_mode(True)assert(dev.get_simulation_mode()==True,"Simulation not active")
BR
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I cant find a way to set the device, which my active application belongs to, in simulation mode. How do I get the reference to the interface IScriptDeviceObject for it.
Any help is appreciated.
Hi Shabroz.Gill.
Search for the device object by using find() and use the method set_simulation_mode() for setting the simulation mode.
For example:
BR
Martin