#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

     

    Last edit: aliazzz 2020-06-08
  • aliazzz

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

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

    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

     

    Last edit: aliazzz 2020-06-13
  • 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

    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.