#46 Tutorial example not working as expected

v1.1.0.0
closed
aliazzz
None
2020-07-11
2020-06-08
No

I updated to latest RC version 1.0.9.94

After updating my lib in my project from version 1.0.0.0 the Variable NumberOfTests of my instance of FB_Sum_Test is always 0..

I have exactly the same setting as it is described in the tutorial with the FB_Sum..

Related

Tickets: #46

Discussion

  • aliazzz

    aliazzz - 2020-06-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
    -I updated to latest RC version 1.0.9.94 (thanks to aliazzz for sending this to me).
    +I updated to latest RC version 1.0.9.94
    
    -after i updated my lib in my project which worked with version 1.0.0.0 the Variable NumberOfTests of my instance of FB_Sum_Test is always 0..
    +After updating my lib in my project from version 1.0.0.0 the Variable NumberOfTests of my instance of FB_Sum_Test is always 0..
    
    -i have exactliy the same setting as it is described in the tutorial with the FB_Sum..
    +I have exactly the same setting as it is described in the tutorial with the FB_Sum..
    
     
  • aliazzz

    aliazzz - 2020-06-08
    • status: open --> pending
     
  • aliazzz

    aliazzz - 2020-06-08

    Hi,

    The simple example works fine with the RC4.
    Please, check all your settings or libs references, etc, etc... (see the attached picture for proof as I ran it just now).
    Usually after library swapping, it is usually better to close/reopen the project before running it again with the new libraries.

    What system at you using? The preciser the information the better you help:
    The version and brand of your IDE,
    The version and type and brand of your controller,
    The version of the firmware.

    With kind regards,

    The CfUnit team

     
  • aliazzz

    aliazzz - 2020-06-08
    • status: pending --> closed
     
  • aliazzz

    aliazzz - 2020-06-08
    • status: closed --> open
     
  • lukasstelzer - 2020-06-10

    i changed line 15 in FB_TestSuite.AreAllTestsFinished to:

    CurrentCycleCount := GetCurrentTaskIndex.CurTaskInfo.dwIECCycleCount;
    

    instead of

    CurrentCycleCount := GetCurrentTaskIndex.CurTaskInfo.dwCycleCount;
    

    i have seen that dwCycleCount is already >= 1 and because of this AreAllTestsFinished is TRUE already in first IEC Cycle..
    so no tests are added to TestSuite because function FB_TestSuite.AddTest is never called

     
  • aliazzz

    aliazzz - 2020-06-10

    Good Catch :-)
    I'll test this patch

     
  • lukasstelzer - 2020-06-15

    Hi,

    What type of CODESYS version are you running (IDE)

    it is a brand-labelled version of CODESYS 3.5.15.0

    What type of CPU are you running?

    my test system is a simulated controller. It is a virtual box virtual
    machine running on my windows PC. I had the same troubles on the real
    controller which can be an Intel Atom or Celeron processor.

    What CODESYS runtime version is running on your CPU?

    we build our own linux runtime system with sources of CODESYS and small
    adjustments from us. the version from codesys is also 3.5.15.0.

    our runtime system is running on a debian based system.

    i guess the difference is when you test the lib with the CODESYS Control
    Win V3 controller simulation and when i test the lib on the real
    controller...

    Von: tickets@cfunit.prj.forge.codesys.com tickets@cfunit.prj.forge.codesys.com Im Auftrag von aliazzz
    Gesendet: Freitag, 12. Juni 2020 20:01
    An: [cfunit:tickets] 46@tickets.cfunit.prj.forge.codesys.com
    Betreff: [cfunit:tickets] Re: #46 tutorial example not working anymore
    after update

    I have tested your

    Please can you provide more information about your setup?

    What type of CODESYS version are you running (IDE)
    What type of CPU are you running?
    What CODESYS runtime version is running on your CPU?

    Thank you

    [tickets:#46] https://forge.codesys.com/prj/cfunit/tickets/46/
    tutorial example not working anymore after update

    Status: open
    Milestone: v1.1.0.0
    Created: Mon Jun 08, 2020 11:50 AM UTC by lukasstelzer
    Last Updated: Wed Jun 10, 2020 03:59 PM UTC
    Owner: nobody

    I updated to latest RC version 1.0.9.94

    After updating my lib in my project from version 1.0.0.0 the Variable
    NumberOfTests of my instance of FB_Sum_Test is always 0..

    I have exactly the same setting as it is described in the tutorial with the
    FB_Sum..


    Sent from forge.codesys.com because you indicated interest in
    https://forge.codesys.com/prj/cfunit/tickets/46/

    To unsubscribe from further messages, please visit
    https://forge.codesys.com/auth/subscriptions/

     

    Related

    Tickets: #46

  • aliazzz

    aliazzz - 2020-06-15
    • status: open --> accepted
    • assigned_to: aliazzz
     
  • aliazzz

    aliazzz - 2020-06-15
    • status: accepted --> closed
     
  • aliazzz

    aliazzz - 2020-06-15
    • status: closed --> open
     
  • aliazzz

    aliazzz - 2020-06-16

    RC5 in the trunk is tested and fixes this issue

     
  • aliazzz

    aliazzz - 2020-06-17
    • summary: tutorial example not working anymore after update --> Tutorial example not working as expected
    • status: open --> pending
     
  • aliazzz

    aliazzz - 2020-06-22

    Hi,

    Would you please provide feedback whether the solution has helped?

    Thank you.

     
  • lukasstelzer - 2020-06-22

    tested succesfully on my system!

    -- ticket can be closed --

     
  • aliazzz

    aliazzz - 2020-06-22

    Good to hear this.

     
  • aliazzz

    aliazzz - 2020-07-11
    • status: pending --> closed
     

Log in to post a comment.