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

C# loaddatafile

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
  • C# loaddatafile
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
96
BevanWeiss
Spock BevanWeiss
90
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
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
DavidSkilbeck
Lt. Commander DavidSkilbeck
Lt. Commander

Posted: ‎2021-07-12 02:54 AM . Last Modified: ‎2023-05-03 12:02 AM

0 Likes
6
2877
  • 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: ‎2021-07-12 02:54 AM . Last Modified: ‎2023-05-03 12:02 AM

C# loaddatafile

Hi, is it possible to load a data file in to the history of a point with c#. I have an example of loading a data value.

Thanks,

Labels
  • Labels:
  • SCADA
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
tfranklin
Commander tfranklin
Commander

Posted: ‎2021-07-12 09:18 AM . Last Modified: ‎2021-07-12 09:23 AM

In response to AndrewScott
1 Like
3
2861
  • 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: ‎2021-07-12 09:18 AM . Last Modified: ‎2021-07-12 09:23 AM

The more you know.  Thx

 

Looks like reason is still defaulted to 0 though.

 

Depending on the use case you may still consider LoadDataValues for the extra reason code parameter.

 

 

*Edited -- I RTFM*

See Answer In Context

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

Replies 6
tfranklin
Commander tfranklin
Commander

Posted: ‎2021-07-12 07:06 AM

1 Like
5
2871
  • 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: ‎2021-07-12 07:06 AM

It should be the same process but calling a different method. 

  1. The file must be accessible by the user running the script
  2. The format of the file is drastically different than LoadDataValue, as there is no quality and the date is broken into separate columns.  If you need to include quality or a different reason, I'd advise using LoadDataValues

 

I'd reference this article here, but keep in mind that the Resource Center is going away. 

https://tprojects.schneider-electric.com/telemetry/display/public/CS/Importing+History+Using+LoadDat...

 

The below is shamelessly copied from the article above.

 

 

Spoiler

 

LoadDataFile
 LoadDataFile( FileName{String} )

The LoadDataFile method takes a filename as its single parameter. This is the name of a local CSV on the main server. Some points to note about the files to be imported:

  • Each line of the CSV file specifies a single record and has the format: YYYY,MM,DD,HH,MM,SS,Value
  • The file must be in ANSI format.
  • To insert comments into the file start the line with a semi-colon.
  • Reason is set to 0 (Current Data) on import.
  • 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.

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2021-07-12 09:12 AM

In response to tfranklin
1 Like
4
2867
  • 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: ‎2021-07-12 09:12 AM

The online help has two examples of using the LoadDataFile method, plus details of how to specify quality:

 

See https://tprojects.schneider-electric.com/GeoSCADAHelp/Geo%20SCADA%202020/Default.htm#ServerAdministr... (bottom of page)


Andrew Scott, R&D Principal Technologist, AVEVA
  • 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.

tfranklin
Commander tfranklin
Commander

Posted: ‎2021-07-12 09:18 AM . Last Modified: ‎2021-07-12 09:23 AM

In response to AndrewScott
1 Like
3
2862
  • 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: ‎2021-07-12 09:18 AM . Last Modified: ‎2021-07-12 09:23 AM

The more you know.  Thx

 

Looks like reason is still defaulted to 0 though.

 

Depending on the use case you may still consider LoadDataValues for the extra reason code parameter.

 

 

*Edited -- I RTFM*

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

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2021-07-12 09:24 AM . Last Modified: ‎2021-07-13 01:50 AM

In response to tfranklin
1 Like
0
2851
  • 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: ‎2021-07-12 09:24 AM . Last Modified: ‎2021-07-13 01:50 AM

The 'reason for logging' for each record is fixed as "Current Data" (0) when using LoadDataFile method.


Andrew Scott, R&D Principal Technologist, AVEVA
  • 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.

DavidSkilbeck
Lt. Commander DavidSkilbeck
Lt. Commander

Posted: ‎2021-07-12 03:10 PM

In response to tfranklin
0 Likes
1
2842
  • 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: ‎2021-07-12 03:10 PM

Hi, yes the line below is exactly one of things I was trying to determine.

Is there a big time saving with LoadDataFile to make it worth while investing the extra time and effort as to using LoadDataValues.

I already have code that iterates through with LoadDataValues.

 

"Depending on the use case you may still consider LoadDataValues for the extra reason code parameter"

 

I would still like to see the LoadDataFile work with C#.

But maybe at a later date.

 

 

Thanks,

  • 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-07-16 08:36 PM

In response to DavidSkilbeck
1 Like
0
2782
  • 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: ‎2021-07-16 08:36 PM

There were performance benefits, I think when I last did anything with the LoadDataFile it was on the order of 2-10x faster.

But the restrictions, and the requirement to generate the file in a particular format really meant that it wasn't worth it.

The overall process needed more steps, and hence it actually took longer in real world times.

 

Issues were things like:

  1. the file needing to exist on the server, so the data couldn't just come from the client
  2. file format isn't very standard from other platforms, so needed an entire process to generate it
  3. not able to customise the reason code
  4. not able to simultaneously 'process' the data (i.e. if the value was the same, LoadDataFile would import it always, with LoadDataValues we could easily have code do compression / skipping during loading

 

I'd say if LoadDataValues is working for you, it's easiest to just keep that as the backend load mechanism, and then you can easily tweak your front end loading code to do the things you want (like loading data from the client etc)


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