EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
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
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,
Link copied. Please paste this link to share this article on your social media post.
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*
Link copied. Please paste this link to share this article on your social media post.
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.
I'd reference this article here, but keep in mind that the Resource Center is going away.
The below is shamelessly copied from the article above.
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:
Link copied. Please paste this link to share this article on your social media post.
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)
Link copied. Please paste this link to share this article on your social media post.
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*
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
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,
Link copied. Please paste this link to share this article on your social media post.
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:
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)
Link copied. Please paste this link to share this article on your social media post.
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.