# Plecs externel mode data saver

**URL:** <https://forum.plexim.com/t/plecs-externel-mode-data-saver/1309>\
**Category:** Coder\
**Tags:** external-mode\
**Created:** [January 31, 2024, 1:52pm UTC](https://forum.plexim.com/t/plecs-externel-mode-data-saver/1309 "2024-01-31T13:52:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dorj.M](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@Dorj.M](https://forum.plexim.com/u/Dorj.M)\
**Post date:** [January 31, 2024, 1:52pm UTC](https://forum.plexim.com/t/plecs-externel-mode-data-saver/1309/1 "2024-01-31T13:52:05Z")

</div>

I am using the external mode. My project is a DC motor control system. I can see my signals on display. But I want to see the whole data stream and what happened initially, such as speed and how many seconds the PI controller reached my setpoint. Display continually refreshed if buffer full is.  
How do I save my RCP data to a file at a given time, or do you have any other ideas?

---

<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:** [February 5, 2024, 11:55pm UTC](https://forum.plexim.com/t/plecs-externel-mode-data-saver/1309/2 "2024-02-05T23:55:25Z")

</div>

Can you clarify if you’re referring to a PLECS simulation model or accessing data from the RT Box?

---

<div class="post-metadata">

**Author:** ![Dorj.M](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@Dorj.M](https://forum.plexim.com/u/Dorj.M)\
**Post date:** [February 6, 2024, 5:03am UTC](https://forum.plexim.com/t/plecs-externel-mode-data-saver/1309/3 "2024-02-06T05:03:23Z")

</div>

Hi Bryan,

Both of them are not :). I am using RCP with JTAG. If I use RT Box or Simulation, I can save data with the TOFILE block.

---

<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:** [February 6, 2024, 11:18am UTC](https://forum.plexim.com/t/plecs-externel-mode-data-saver/1309/4 "2024-02-06T11:18:02Z")

</div>

Thanks for clarifying you are using an embedded real-time target like a TI C2000 / STM microcontroller.

At this time the only way to natively view the data is to use the external mode and view the results in the PLECS Scopes, as you are currently doing. With the external mode one can configure meaningful data triggers or change the decimation to get data from the time-period of interest.

One could conceivably connect an external data-logging system (e.g. use a CAN-based data logger), but this generally requires additional hardware and software tools.

---

<div class="post-metadata">

**Author:** ![Dorj.M](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@Dorj.M](https://forum.plexim.com/u/Dorj.M)\
**Post date:** [February 22, 2024, 8:15pm UTC](https://forum.plexim.com/t/plecs-externel-mode-data-saver/1309/5 "2024-02-22T20:15:21Z")

</div>

Thank your feedback.  
Is there a way to receive some specific data using Serial port mode?
