Showing results 1 to 2 of 2

Thread: Runtime freeze on event-triggered recording operation

  1. #1
    Join Date
    11.02.2019
    Posts
    11

    Default Runtime freeze on event-triggered recording operation

    Dears,

    I have developed a C# program to read data from CSV files and register variables data in the historian. I canot use the Zenon drive to read my CSV files because they have a diferent format from what is aceptable by the Zenon drive.

    Everything is going perfect except the fact that when the C# program is executed by Zenon in the runtime it freeze during 2 to 5 minutes (depending on the number os CSV files it is reading). Normaly te number of files to be read is from 10 to 20.

    I'm using an event-triggered recording type operation to archive the values when reading it from the CSV source files. The number of values registered everytime the c# program is executed is something arround 2000 divided by 7 diferent variables. Registering consecutively 2000 values based on event-trigered operation can be the reason of the application freeze? Should I reduce  the number of values registered in each operation ?
    Thanks in advance for any help and eventual sugestions to solve this problem. 

    Best regards,

    Carlos Martins



  2. #2
    Join Date
    28.02.2013
    Posts
    159

    Default Re: Runtime freeze on event-triggered recording operation

    Dear Carlos Martins,

    every zenon API call needs to be synchronised to zenon main thread. And those API calls are quite slow (up to 10ms).
    So doing a lot of those calls in your code is very likely to cause the freeze.

    So please make sure to reduce this calls to as least as possible in your code or try to use a different approach to get this values to zenon archives.
    Maybe converting the csv files via c# and read it then by the file driver could be an approach here.

    Also using archives with SQL evacuation and importing the csv files directly in the DB would be an approach.

    Another solution could be to use zenon logic in combination with rda archives to parse the csv files and forward the values to a zenon archive.

    Best regards,
    Felix

Similar Threads

  1. Zenon Operator freeze
    By danyr in forum zenon Operator
    Replies: 2
    Last Post: 19th August 2019, 09:40
  2. Set planned event in runtime
    By marco.azzoni in forum zenon Supervisor
    Replies: 3
    Last Post: 12th August 2014, 14:28
  3. Freeze Notepad (text screen) in Runtime
    By dario in forum zenon Supervisor
    Replies: 5
    Last Post: 22nd May 2013, 08:17
  4. V-460 Runtime close event
    By altera in forum VSTA
    Replies: 1
    Last Post: 27th August 2010, 12:10
  5. Event triggered archive by counter
    By affoltep in forum zenon Supervisor
    Replies: 5
    Last Post: 24th March 2010, 12:38

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •