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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Historic Data Export

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
  • Historic Data Export
Options
  • 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
308
AndrewScott
Admiral AndrewScott
98
BevanWeiss
Spock BevanWeiss
91
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
37
View All
Related Products
product field
Schneider Electric
SCADAPack 300E
product field
Schneider Electric
Trio Licensed Radios
product field
Schneider Electric
EcoStruxureโ„ข Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
jen6190
Ensign jen6190 Ensign
Ensign

Posted: โ€Ž2019-12-16 06:57 AM . Last Modified: โ€Ž2023-05-03 12:19 AM

1 Like
18
12422
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-16 06:57 AM . Last Modified: โ€Ž2023-05-03 12:19 AM

Historic Data Export

Please how do i export HISTORICAL DATA from clearscada to a CSV file. I want it to be in form of a button, when the user wants to export he can click the button and inputs the period for which he wants to export the historical data. Please is this possible?

Labels
  • Labels:
  • DNP3
  • RTU
  • SCADA
  • Telemetry
  • ViewX
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: โ€Ž2019-12-16 03:03 PM . Last Modified: โ€Ž2019-12-16 03:05 PM

0 Likes
17
12418
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-16 03:03 PM . Last Modified: โ€Ž2019-12-16 03:05 PM

Sure, lots of ways, the best way really depends what you want to do with the CSV file afterwards

 

* Use the CSV Export driver, but may not be as flexible that you need

* Use logic, use VAR INPUT to define the time and %S to query the data from CDBHistoric, then use and FILE_WRITE() functions. This will store the file on the server and has the advantage that it can be both scheduled and manually triggered, but again lose some flexibility on defining the source point

* Use scripting on mimics. Use the Form object or similar to prompt for date inputs, Server.Query to get the data from CDBHistoric and create a COM object to fso to write files to the local workstation's disk. Probably lots more flexibility with this one but more coding required

See Answer In Context

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: โ€Ž2019-12-19 02:19 AM

In response to jen6190
0 Likes
13
12384
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-19 02:19 AM

The issue about parameters - noted!

 

Filenames - you can use trip characters to add parts of the date/time stamp, e.g. %Ddd MMM yyyy% %THH:mm:ss%

See Answer In Context

Reply

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

Replies 18
AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: โ€Ž2019-12-16 03:03 PM . Last Modified: โ€Ž2019-12-16 03:05 PM

0 Likes
17
12419
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-16 03:03 PM . Last Modified: โ€Ž2019-12-16 03:05 PM

Sure, lots of ways, the best way really depends what you want to do with the CSV file afterwards

 

* Use the CSV Export driver, but may not be as flexible that you need

* Use logic, use VAR INPUT to define the time and %S to query the data from CDBHistoric, then use and FILE_WRITE() functions. This will store the file on the server and has the advantage that it can be both scheduled and manually triggered, but again lose some flexibility on defining the source point

* Use scripting on mimics. Use the Form object or similar to prompt for date inputs, Server.Query to get the data from CDBHistoric and create a COM object to fso to write files to the local workstation's disk. Probably lots more flexibility with this one but more coding required

Reply

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

jen6190
Ensign jen6190 Ensign
Ensign

Posted: โ€Ž2019-12-17 01:19 AM

In response to AdamWoodland
0 Likes
16
12414
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-17 01:19 AM

I am new to clearscada, but i'm gonna try your 3rd option , i think it would work. Thanks!

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: โ€Ž2019-12-19 01:28 AM . Last Modified: โ€Ž2019-12-19 01:28 AM

In response to jen6190
0 Likes
15
12393
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-19 01:28 AM . Last Modified: โ€Ž2019-12-19 01:28 AM

The first option - the facility is called 'SQL Expert' - find the object in the Create ... New ... Other menu.

Any SQL can be written which exports that data in CSV (or tab) into a file. This can be scheduled or triggered from the client.

Note that option 1 may or may not work on WebX, and on Virtual ViewX will write a file on the web server.

 

(This thread should be in the Geo SCADA forum, but I don't see an option to move a thread. ๐Ÿ™‚  )

Reply

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

jen6190
Ensign jen6190 Ensign
Ensign

Posted: โ€Ž2019-12-19 01:58 AM

In response to sbeadle
0 Likes
14
12387
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-19 01:58 AM

Yeah i have tried the SQL export, but its not as flexible as i want, the Client cannot specify the date range in which he wants to export the historical data and also, it doesnt save each export in a new CSV file, it overwrites the old one.

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: โ€Ž2019-12-19 02:19 AM

In response to jen6190
0 Likes
13
12385
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-19 02:19 AM

The issue about parameters - noted!

 

Filenames - you can use trip characters to add parts of the date/time stamp, e.g. %Ddd MMM yyyy% %THH:mm:ss%

Reply

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

jen6190
Ensign jen6190 Ensign
Ensign

Posted: โ€Ž2019-12-19 02:53 AM . Last Modified: โ€Ž2019-12-19 02:58 AM

In response to sbeadle
0 Likes
12
12381
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-19 02:53 AM . Last Modified: โ€Ž2019-12-19 02:58 AM

When i do this, does it export in a new csv file with the new time specification? Although i tried this format"%Ddd MMM yyyy% %THH:mm:ss%" and it kept giving me "Invalid OPC relative time for trip sequence", this was the format that worked e.g D-2D or H

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: โ€Ž2019-12-19 02:55 AM

In response to jen6190
0 Likes
11
12379
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-19 02:55 AM

Yes, it creates a new file, leaving the old file in place.

You can use the time/date sequences in both file and folder names.

Reply

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

jen6190
Ensign jen6190 Ensign
Ensign

Posted: โ€Ž2019-12-19 03:18 AM . Last Modified: โ€Ž2019-12-19 03:22 AM

In response to sbeadle
0 Likes
0
12375
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2019-12-19 03:18 AM . Last Modified: โ€Ž2019-12-19 03:22 AM

It worked!, so i used the  %THH mm ss% format in the Output filename. It creates a new file now. Thanks! Prolly try to figure out how the client can specify the Date range he/she wants.

Reply

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

DavidSkilbeck
Lt. Commander DavidSkilbeck
Lt. Commander

Posted: โ€Ž2020-06-29 11:16 PM . Last Modified: โ€Ž2020-06-29 11:17 PM

In response to sbeadle
0 Likes
9
11116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2020-06-29 11:16 PM . Last Modified: โ€Ž2020-06-29 11:17 PM

Hi, does this topic relate to https://www.se.com/ww/en/faqs/FA312272/
Also, does a  .HRD / .csv file contain historic data relating to all points with historic data? I have not seen one of these files structure just yet.

(I notice, by week, yes?)
Thanks,

  • Tags:
  • english
Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: โ€Ž2020-06-30 12:52 AM

In response to DavidSkilbeck
0 Likes
8
11110
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2020-06-30 12:52 AM

While using the raw historic files is possible, I don't recommend this method for an application, just for diagnostic purposes.

  • Tags:
  • english
Reply

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

Anonymous user
Not applicable

Posted: โ€Ž2020-12-05 09:38 AM

In response to sbeadle
0 Likes
7
9996
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2020-12-05 09:38 AM

Hello Experts,

Can anyone share a sample SQL query for pulling out data from the database for two tags for a a time period .

I am kind of stuck at this portion. 
Kindly share a sample code 


  • 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: โ€Ž2020-12-05 04:47 PM

In response to Anonymous user
1 Like
5
9990
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2020-12-05 04:47 PM

I won't give you the exact SQL Query... because learning to fish will be more rewarding.

 

If you find one of the points that you are interested in, and right click to bring up the context menu, there is an option called 'Display Historic List'.  This will provide you with a List Window which will have the SQL Query to display the historical data for that point.

This is a good leap-pad into SQL queries in particular.  There is also an entire 'Queries' pane available from the View Ribbon that is worthwhile looking at for any future queries that you might be interested in.  You will almost always want to customise them in some way, but you can right click in the List Window (once you've selected a query) and select 'Edit Query' to see exactly what the SQL is.  Then if you edit it and select OK the window will update with your new query expression shown.


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.

BevanWeiss
Spock BevanWeiss
Spock

Posted: โ€Ž2020-12-05 04:48 PM

In response to Anonymous user
0 Likes
0
9989
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2020-12-05 04:48 PM

PS: In forums, unless you have extra information to add to a particular thread (i.e. a solution, or additional context to the problem the original poster encountered etc), you should be creating a new thread with your new problem / question to ask.


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.

Anonymous user
Not applicable

Posted: โ€Ž2021-01-29 09:53 AM

In response to BevanWeiss
1 Like
4
9415
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2021-01-29 09:53 AM

Thank you for the lead.

I finally made it using the method mentioned.
Created from and to date picker and finally exported it as CSV.

  • 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.

jen6190
Ensign jen6190 Ensign
Ensign

Posted: โ€Ž2021-02-05 03:03 AM

In response to Anonymous user
0 Likes
2
9314
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2021-02-05 03:03 AM

Please can you share your steps/procedure with me, i am still having issues on this. Thank you

  • 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.

arun36
Crewman arun36
Crewman

Posted: โ€Ž2021-10-21 10:58 PM

In response to jen6190
0 Likes
1
7020
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2021-10-21 10:58 PM

hi, how about this topic, did you have solved your problem ? i have same problem here. thank you if you can share step by step how to export to CSV

  • 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: โ€Ž2021-10-22 01:43 PM

In response to arun36
0 Likes
0
7006
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2021-10-22 01:43 PM

You should post this as a new thread/topic, and detail what you have tried already.

If you search in the Geo SCADA Expert online help for "export CSV" then you should get some hits to follow up on learning more about. 

 

As Geo SCADA Expert provides numerous ways to perform such requirements, you would need to consider which is the most suited for your needs, and research more on 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.

jen6190
Ensign jen6190 Ensign
Ensign

Posted: โ€Ž2021-11-18 02:26 AM

In response to Anonymous user
0 Likes
0
6787
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: โ€Ž2021-11-18 02:26 AM

Hi Please, can you share a sample program on how you did this?

 

  • 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