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

**URL:** <https://forum.plexim.com/t/how-to-capture-a-result-of-an-particular-event-in-the-scope-while-performing-real-time-simulation/918>\
**Category:** RT Box\
**Tags:** rt-box\
**Created:** [December 9, 2020, 3:53am UTC](https://forum.plexim.com/t/how-to-capture-a-result-of-an-particular-event-in-the-scope-while-performing-real-time-simulation/918 "2020-12-09T03:53:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kabi](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kabi](https://forum.plexim.com/u/Kabi)\
**Post date:** [December 9, 2020, 3:53am UTC](https://forum.plexim.com/t/how-to-capture-a-result-of-an-particular-event-in-the-scope-while-performing-real-time-simulation/918/1 "2020-12-09T03:53:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [December 9, 2020, 12:57pm UTC](https://forum.plexim.com/t/how-to-capture-a-result-of-an-particular-event-in-the-scope-while-performing-real-time-simulation/918/2 "2020-12-09T12:57:35Z")

</div>

Refer to T=3:00-4:30 in the[following video on the Plexim website](https://www.plexim.com/support/videos/rtbox1_analog_io) 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.

---

<div class="post-metadata">

**Author:** ![JX\_LIU](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@JX\_LIU](https://forum.plexim.com/u/JX_LIU)\
**Post date:** [December 11, 2020, 4:35am UTC](https://forum.plexim.com/t/how-to-capture-a-result-of-an-particular-event-in-the-scope-while-performing-real-time-simulation/918/3 "2020-12-11T04:35:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [December 14, 2020, 9:50am UTC](https://forum.plexim.com/t/how-to-capture-a-result-of-an-particular-event-in-the-scope-while-performing-real-time-simulation/918/4 "2020-12-14T09:50:48Z")

</div>

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.
