Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

Invite a Co-worker

Send a co-worker an invite to the Exchange 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
  • Home
  • Collaborate
  • Exchange Community
  • :
  • SCADA & Telemetry Solutions
  • :
  • Geo SCADA Expert Forum
  • :
  • Historic Data Export
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
          • Eldistribution & Fastighetsautomation
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Wireless Information Network Solutions
          • Instrument Area Network
          • Remote Monitoring
          • Tank Level Monitoring
          • Remote Data Collection
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
        • Eldistribution & Fastighetsautomation
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Wireless Information Network Solutions
        • Instrument Area Network
        • Remote Monitoring
        • Tank Level Monitoring
        • Remote Data Collection
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation Knowledge Base
    • Industrial Automation How-to videos
    • SCADA & Telemetry Solutions Knowledge Base
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Technology Partners
  • Support
    • Ask Exchange
    • Leaderboard
    • Our Community Guidelines
    • Community User Guide
    • How-To & Best Practices
    • More
Join Now
How can we help?
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: 
51317members
Join Now
245520posts
Join Now

Historic Data Export

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
Solved Go to Solution
Back to Geo SCADA Expert Forum
Solved
jen6190
Ensign jen6190 Ensign
Ensign
‎2019-12-16 06:57 AM
1 Like
15
3424
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-16 06:57 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?

Solved! Go to Solution.

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

Accepted Solutions
AdamWoodland
Lt. Commander AdamWoodland Lt. Commander
Lt. Commander
‎2019-12-16 03:03 PM
0 Likes
14
3422
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-16 03:03 PM

Re: Historic Data Export

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

Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-19 02:19 AM
0 Likes
10
3388
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-19 02:19 AM

Re: Historic Data Export

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

Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
15 Replies 15
AdamWoodland
Lt. Commander AdamWoodland Lt. Commander
Lt. Commander
‎2019-12-16 03:03 PM
0 Likes
14
3423
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-16 03:03 PM

Re: Historic Data Export

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

Share
Reply
jen6190
Ensign jen6190 Ensign
Ensign
‎2019-12-17 01:19 AM
0 Likes
13
3418
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-17 01:19 AM

Re: Historic Data Export

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

Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-19 01:28 AM
0 Likes
12
3397
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-19 01:28 AM

Re: Historic Data Export

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. 🙂  )

Share
Reply
jen6190
Ensign jen6190 Ensign
Ensign
‎2019-12-19 01:58 AM
0 Likes
11
3391
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-19 01:58 AM

Re: Historic Data Export

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.

Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-19 02:19 AM
0 Likes
10
3389
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-19 02:19 AM

Re: Historic Data Export

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

Share
Reply
jen6190
Ensign jen6190 Ensign
Ensign
‎2019-12-19 02:53 AM
0 Likes
9
3385
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-19 02:53 AM

Re: Historic Data Export

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

Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-19 02:55 AM
0 Likes
8
3383
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-19 02:55 AM

Re: Historic Data Export

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.

Share
Reply
jen6190
Ensign jen6190 Ensign
Ensign
‎2019-12-19 03:18 AM
0 Likes
0
3379
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-19 03:18 AM

Re: Historic Data Export

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.

Share
Reply
DavidSkilbeck
Lt. Commander DavidSkilbeck
Lt. Commander
‎2020-06-29 11:16 PM
0 Likes
6
2120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-06-29 11:16 PM

Re: Historic Data Export

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 (1)
  • Tags:
  • english
Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2020-06-30 12:52 AM
0 Likes
5
2114
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-06-30 12:52 AM

Re: Historic Data Export

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

Tags (1)
  • Tags:
  • english
Share
Reply
CHRN
Ensign CHRN
Ensign
‎2020-12-05 09:38 AM
0 Likes
4
1000
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-12-05 09:38 AM

Re: Historic Data Export

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 (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-12-05 04:47 PM
1 Like
2
994
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-12-05 04:47 PM

Re: Historic Data Export

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 (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-12-05 04:48 PM
0 Likes
0
993
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-12-05 04:48 PM

Re: Historic Data Export

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 (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
CHRN
Ensign CHRN
Ensign
‎2021-01-29 09:53 AM
1 Like
1
419
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2021-01-29 09:53 AM

Re: Historic Data Export

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 (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
jen6190
Ensign jen6190 Ensign
Ensign
1 month ago
0 Likes
0
318
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
1 month ago

Re: Historic Data Export

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

Tags (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
Related Products
Schneider Electric
SCADAPack 300E
Schneider Electric
Trio Licensed Radios
Schneider Electric
EcoStruxure™ Geo SCADA Expert
Top Experts
User Count
sbeadle
Sisko sbeadle Sisko
188
BevanWeiss
Sisko BevanWeiss
53
AdamWoodland
Lt. Commander AdamWoodland Lt. Commander
16
JChamberlain
Lieutenant JChamberlain Lieutenant
16
AndrewScott
Lieutenant AndrewScott
15
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric