# Extract Data from Running SFC Chart

**URL:** <https://forum.inductiveautomation.com/t/extract-data-from-running-sfc-chart/75537>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 26, 2023, 5:02pm UTC](https://forum.inductiveautomation.com/t/extract-data-from-running-sfc-chart/75537 "2023-06-26T17:02:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Goeser](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@Mark\_Goeser](https://forum.inductiveautomation.com/u/Mark_Goeser)\
**Post date:** [June 26, 2023, 5:02pm UTC](https://forum.inductiveautomation.com/t/extract-data-from-running-sfc-chart/75537/1 "2023-06-26T17:02:47Z")

</div>

Hello,

Is there a way to reference a SFC's active step number & time in step through scripting/tag references? I haven't seen anything other than the total runtime and chart state that can be returned via the system.sfc.getChartState function. I'm trying to display the active step of a basic SFC and a total "time in step" on a perspective display to help with chart monitoring & debugging. For example, we could be stuck in a step for an indefinite amount of time if there isn't a critical error, but the chart will still show itself in the "Running" state (as expected). It would be very handy to be able to confirm we aren't sitting in a step indefinitely without having to open the Designer and drill down to the specific chart instance. Any help would be greatly appreciated!

Thanks,  
Mark G.
