|
Re: How to export custom FB to forte [message #1739910 is a reply to message #1739894] |
Fri, 05 August 2016 15:50 |
|
Hi,
yes for a classical service interface FB like the one you are needing this is the correct development process. However there are a few things regarding code management I would like to bring up for your consideration:
- The core and the stdfblib directory contain code that is completely platform independent therefore I would suggest that you place your raspi specific FB not in this directory. The better place is a own module as described in the FB development tutorials. The advantage of modules is that they can be activated and that you can easier update FORTE code to newer versions.
- Since FORTE 1.8 we started to develop generic IO FBs. These are located in the stdfblib/io directory. In order that these are working correctly a platform needs to implement a class called CProcessInterface. As you know we provide several modules implementing this class for different platforms. For the boolean I/Os of the raspi this is done with the sysfs module. With the new Odriod module I pushed two weeks ago you can see how I expanded the generic Linux boolean sysfs IO support also with analogue inputs to be accessed with a IW (W for word) FB. This could also be an option for you.
I hope this helps.
Alois
[Updated on: Fri, 05 August 2016 15:52] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02458 seconds