Giter Club home page Giter Club logo

twingrind's People

Contributors

captain-yoshi avatar kdorsel avatar koppa avatar seehma avatar stefanbesler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

twingrind's Issues

Symbol not found

Hi,

if you compile you plc programm with the compiler definition "TC_SYM_WITH_NAMESPACE" you cant get access to the symbol.
Because the Namspace of the Library will be added to the symbolname.

I would suggesst you to add an parameter for the symbol prefix,

Best Regards
Markus

Understanding my task bottleneck

I have a task which is set to a 1kHz loop as configured below:

lol

This is the Task online graph which shows the CPU time (don't know if it's the mean?) spent on the task. Notice that there are a lot of Exceeded counter, e.g. > 1 milliseconds.

TwinGrind-Slowest-ok

This graph represents the last execution time from Tc2_Utilities.PROFILER. It seems to corroborate the Exceeded counter: certain spikes goes above the 1kHz.

TwinGrind-Slowest

This graph was generated using the slowest Capture Mode in continuous mode, which gives 69.65% for my task. That represents about 696 microseconds. This would confirm that the code is well under 1 millisecond.

Untitled

So for my question: Is my assumption correct ? Does that mean that code is less then 1 kHz but there is something else that can't execute it properly under 1kHz ? This could be the OS, how the task is configured (priorities), I/O's, etc... Note that this was generated on a non-Beckhoff PC with Windows 10 (i3-2100 @ 3.1 GHz).

Pop/Push mismatch

I have a PLC project which relies on a custom library. When following the procedure, I get his error:

$ twingrind prepare -d /c/ws/TcRobot/TcRobotExample/TcRobotExample -m /c/ws/TcRobot/TcRobotExample/TcRobotExample/hashmap
INFO:root:Updating an existing hashfile
DEBUG:root:DEMO_SIC2: guards added in 1 methods, contains (3 returns)

image

Enable profiling of certain libraries

If you are using PLC libraries you can reuse the hashmap file and enabling profiling for your libraries as well by a similar call to twingrind prepare.

Not sure how to enable profiling for my libraries.

I have my library TcRobot and my task TcRobotExamples and tried to do the following:

# prepare the task
 twingrind prepare -d /c/ws/TcRobot/TcRobotExample/TcRobotExample -m /c/ws/TcRobot/TcRobotExample/TcRobotExample/hashmap

# prepare the libray
 twingrind prepare -d /c/ws/TcRobot/TcRobot/TcRobot -m /c/ws/TcRobot/TcRobotExample/TcRobotExample/hashmap

# Not sure... Do I have to recompile my library ? Tried it and recompiled my task, but it gave multiple errors...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.