External Entities

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6121
    Rob
    Participant

    I am using External Entities and added an operation to an external entity . I recompiled. However, the new operation does not work. Any troubleshooting hints?

    #6122
    keithbrown
    Keymaster

    I’m not sure what you mean by “does not work”, but I can explain a point about using EEs that might help.

    When you translate your project, an .c will be created in the src/ folder. You then need to copy that file to the gen/ folder and put your implementation of the internals into the functions. Next time you translate, the empty/structural EE will be created in the src/ folder, then the build process will copy the .c from the gen/ folder into the src/ overwriting the blank one that is there.

    So, when you add a new operation, you need to edit the function signature into the .c in the gen/ folder so at the end of translation your full-fledged EE ends up in src/ .

    You might also check out Module 18 – Realized components in the learning course.

    #6123
    Rob
    Participant

    Sorry for the vague explanation, It does not recognize the new operation when called from the model. I did not edit the function signature in the /c gen/folder. I will give that a try. Thanks.

    #6124
    cort
    Keymaster

    There is a Property on the External Entity called ‘Realized’. If you want to interpret your OAL in bridges (operations on the EE), then set ‘Realized’ to false.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.