|
|
|
|
Re: Publish/Subscribe and Client/Server FBs with more SDs and RDs inputs and outputs [message #1790213 is a reply to message #1790210] |
Thu, 07 June 2018 06:39 |
|
Hi,
Martin meant that all comm fbs (CLIENT, SERVER, PUBLISH, SUBSCRIBE) are implemented in a generic way in FORTE. As Martin said during deployment FORTE takes the given specific type name of a com FB (e.g., PUBLISH_20) and dynamically creates a publisher with 20 inputs.
To utilize this from 4diac-ide you need to create an according type specification. The easiest way is to copy an existing com FB (e.g., PUBLISH_6), rename it to the type you need (e.g., PUBLISH_15) and create adjust the interface to meet the type (e..g, create the missing SD_7 to SD_15, and the with). You do not need to create an C++ code for this new type. You can just use it in your application and the rest will happen automagically.
We have some ideas that generic types like the comFBs can be created dynamically in the application, ie.., you drag a PUBLISH block into your application and then expand it to how many inputs you need. However we are missing here some definitions in the XML file and haven't found time for it.
Cheers,
Alois
|
|
|
Powered by
FUDForum. Page generated in 0.22938 seconds