How to capture a result of an particular event in the scope while performing real time simulation ?

Hi,

I am working on real time simulation of an isolated microgrid. In my model, when the microgrid meets a certain condition, it connects to the grid, and the grid starts to supply the additional required power in the microgrid. Since this event happens at a particular time, I am not able to get it in the scope. How can I get the transition of microgrid from off-grid to on-grid? I am only able to get the result in the scope where the grid is already connected and supplying power. I could not get the result where the power supplied by the grid rises from zero to steady-state.

Refer to T=3:00-4:30 in the following video on the Plexim website on how to configure the PLECS external mode and external mode triggering.

If you are trying to capture just a single event of a periodic signal, for example when the grid current first rises above a certain current threshold, then simply use “Manual Trigger” instead of “Auto triggering”. You can also use “Auto triggering” if the signal is non-periodic, for example the grid breaker status signal that will change when the grid connection first occurs.

Lastly, if you are using XML-RPC, refer to the demo model included in the RT Box Target Support Package for an example of how to use a trigger with a Data Capture block.

Just as what you say, the grid breaker status signal that will change when the grid connection first occurs,but I am using “Auto triggering” , so how can I stop and capture transient state data of scope?

If the breaker signal is non-periodic, then either approach should work fine. Simply connect the breaker signal to a Scope or Display, select the breaker status as the Trigger Signal, and choose your Trigger level and Trigger delay settings.