An example is attached, where the current source is controlled via a DSL block. Three different possibilities are included in the example.Import the project in PowerFactory and run an EMT Simulation. Observe the plot "Simulation".