Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Export Data in CSV every 15 minutes in GEO SCADA

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Export Data in CSV every 15 minutes in GEO SCADA
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
95
BevanWeiss
Spock BevanWeiss
89
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to EcoStruxure Geo SCADA Expert Forum
917_Kuntal
Ensign 917_Kuntal
Ensign

Posted: ‎2022-04-18 11:20 PM . Last Modified: ‎2023-05-02 11:56 PM

1 Like
11
3315
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-18 11:20 PM . Last Modified: ‎2023-05-02 11:56 PM

Export Data in CSV every 15 minutes in GEO SCADA

Hi All,

Can anyone help me with how to export data in CSV from GEO SCADA Expert at the interval of every 15 min?

I have tried the SQL Export function but it overwrites the existing raw.

I need to export10 nos of parameters data in every 15 min with the specific file name. Attached is the CSV format for the same.

 

It is good if anyone shares a sample code/project.

 

Thanks a lot.

 

  • Tags:
  • english
  • Export Data in CSV
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 11
917_Kuntal
Ensign 917_Kuntal
Ensign

Posted: ‎2022-04-18 11:29 PM

0 Likes
10
3306
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-18 11:29 PM

Refer Below query and format of CSV.

 

Query:

SELECT "FullName","Name","CurrentValueAsReal"

FROM

CDBPOINT

where ("FullName" = 'Z_SQL_Test.Copy of New Analog Point')

 

CSV Format:

DateTimeGII-W/m2GHI-W/m2Mod.Temp.-Deg.CAmb.Temp.-Deg.CWind Speed-km/hr
12.00.13 AM0036.4261
12.15.13 AM0035.1425.10.8
12.30.13 AM0037.126.50.8

 

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2022-04-19 03:21 AM

In response to 917_Kuntal
0 Likes
6
3292
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-19 03:21 AM

If you need unique time-based filenames, you can specify the filename with trip characters to include time.

See: https://tprojects.schneider-electric.com/GeoSCADAHelp/Geo%20SCADA%202020/Default.htm#SQLExportDriver...

 

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

917_Kuntal
Ensign 917_Kuntal
Ensign

Posted: ‎2022-04-19 05:04 AM

In response to sbeadle
0 Likes
5
3284
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-19 05:04 AM

I got it, but I didn't need a unique time-based file.

What I want is, a single CSV for the day with a time interval of 15 minutes.

DateTimeGII-W/m2GHI-W/m2Mod.Temp.-Deg.CAmb.Temp.-Deg.CWind Speed-km/hrWind Dir.-Deg.
12.00.13 AM0036.4261196.9

 

 

 

 

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-04-19 06:00 PM

In response to 917_Kuntal
1 Like
4
3265
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-19 06:00 PM

When you have your CSV format columns, what 'values' should they actually contain?

 

You say you want 15 minute intervals, there may be anywhere from 0 to millions of actual data records during the 15 minute interval.  So you probably want one of the:

  • First
  • Last
  • Average
  • Minimum
  • Maximum
  • Total (time weighted?)

 

Hence you probably want to look into Historic Aggregates and Historic Views.

https://tprojects.schneider-electric.com/GeoSCADAHelp/Geo%20SCADA%202020/Content/ServerAdministratio...

 

You'd need to configure one with the right aggregates for what you want, and the right time intervals.

Then you'd run the CSV Export once a day and have it execute the appropriate SQL query (using OPC time references I assume).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

917_Kuntal
Ensign 917_Kuntal
Ensign

Posted: ‎2022-04-19 09:35 PM

In response to BevanWeiss
0 Likes
3
3260
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-19 09:35 PM

Hello,

What I want is, that the current value of that particular time means 15 minutes. 

Mean If parameter X has a value YY at the time 09.15 AM then this Value (YY) should be logged in the CSV with the time stamp(09.15 AM).

 

Hope the question is clear.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BGedco2022
Lt. Commander BGedco2022
Lt. Commander

Posted: ‎2022-04-19 11:36 PM . Last Modified: ‎2022-04-19 11:40 PM

In response to 917_Kuntal
0 Likes
1
3251
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-19 11:36 PM . Last Modified: ‎2022-04-19 11:40 PM

for such customization, it is better to export from out of the GEO Scada.

You can develop an ASP.net C# application that be connected to the GEO Scada  using ODBC and make query that loops every 15 minute

 

First, define ODBC connection using ODBC Data Sources tool in both version (32bit and 64 bit)

odbc data source toolodbc data source tool

 

then define it in the web.config file

 

<connectionStrings>
<add name="ConnectionString" connectionString="Dsn=scada;uid=scada_username;pwd=user_password;LOCALTIME=True;" providerName="System.Data.Odbc"/>
</connectionStrings>

 


 then in any web page (c# code sample)

 

 

//define odbc object
OdbcConnection conn = new OdbcConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString());
//start connection
conn.Open();
//define query string
string query = "select valueasreal, RecordTime from cdbhistoric where id=10101 and recordtime =";
DateTime time = DateTime.Now.AddDays(-15);
//loop
while(DateTime.Compare(time, DateTime.Now)<0){
query += time.toString("yyyy-MM-dd HH:mm:ss");
using (OdbcCommand com = new OdbcCommand(query , conn))
{
using (OdbcDataReader reader = com.ExecuteReader())
{
while (reader.Read())
{
DateTime tt = reader.GetDateTime(1);
double r = reader.GetDouble(0) + "";
//write date to csv

} //end while
} //end reader
} // end com
time.AddMinutes(15); //add 15 minutes interval
}// end while (time)

 


hope this will help

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

917_Kuntal
Ensign 917_Kuntal
Ensign

Posted: ‎2022-04-20 12:27 AM

In response to BGedco2022
0 Likes
0
3246
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-20 12:27 AM

Can we achieve this kind of functionality via the FILE_WRITE function inside geo scada or any mimic scripting ??

If yes, then share with me a sample example project/script for the same.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-04-20 08:41 PM

In response to 917_Kuntal
0 Likes
0
3210
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-20 08:41 PM


@917_Kuntal wrote:

Hello,

What I want is, that the current value of that particular time means 15 minutes. 

Mean If parameter X has a value YY at the time 09.15 AM then this Value (YY) should be logged in the CSV with the time stamp(09.15 AM).

 

Hope the question is clear.


So you want the 'Last' historic aggregate.

Did you look into the Historic Views?

 

This should be quite trivial with a Historic View (using the Last aggregate).  Then just the SQL Export to CSV.

 

Don't do your own CSV stuff using FILE_WRITE if you can avoid it.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

murrayclay
Ensign murrayclay
Ensign

Posted: ‎2022-04-20 09:08 PM . Last Modified: ‎2022-04-20 09:14 PM

In response to 917_Kuntal
0 Likes
2
3205
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-20 09:08 PM . Last Modified: ‎2022-04-20 09:14 PM

If your data is already / only coming back to GeoSCADA at 15 min intervals then I would think you just need to add the last 24 hour time range to your query above. That would give you the data for one day. run the SQL export once per day and use the trip characters (as per sbeadle post) to get the date appended to the filename to get one unique file for each day.  If your data is not already in 15 minute intervals then I would configure a historic view to generate 15 min interval data based on a suitable algorithm (as per bevan weiss post). Join that table and update column in your query to get the 15 minute interval data. All of that should give you a single CSV file per day that doesn't get overwritten each day which has one day worth of 15 min interval data. That's how we are doing it on our system. I think File Write and C# is overcomplicating it.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

917_Kuntal
Ensign 917_Kuntal
Ensign

Posted: ‎2022-04-20 10:49 PM

In response to murrayclay
0 Likes
1
3197
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-20 10:49 PM

Thank @Murrayclay for your input.

I need to clarify some points first, data are continuously updating in my SCADA based on the dead band set-by customer.

Second, I didn’t want 15 min interval data (aggregate, Min, Max, AVG), I need the actual value of the parameters as shown in the below table based on the respected time.

Time

Parameter X

Parameter Y

00:00

1.23

5.32

23:45

523.65

1365.36

 

If these can be possible via any historic view/algorithm then can you just share with me an idea/sample of how can I achieve these?

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-04-25 06:12 PM

In response to 917_Kuntal
0 Likes
0
3104
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-25 06:12 PM

There is no 'actual value' at these exact 15 minute intervals.  There might be a sample shortly before, and shortly after, but you are almost certainly guaranteed that those points will NOT have timestamps at the same time.

 

What research have you done into Historic Views? and into Historic Aggregates?


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of