Using 4diac in Revolution Pi (RevPi) && IO accessing [message #1843608] |
Tue, 10 August 2021 08:56  |
Eclipse User |
|
|
|
Hello,
I am recently thinking about how to use 4diac for RevPi. Since the RevPi OS is based on Rasbian that is a Linux-like OS, I can compile Forte and run it on RevPi, and also FBs can be deployed successfully.
The problem I have now is how to access IO modules of RevPi, e.g., digital/analog IOs, via FBs. I noticed in the document section of the forte docker container build, it mentions the Forte for RevPi is coming soon but I did not see any more updates about using 4diac in RevPi.
Does anyone have experience using 4diac on RevPi to access IOs?
Thanks for any help.
|
|
|
|
|
|
|
|
Re: Using 4diac in Revolution Pi (RevPi) && IO accessing [message #1843771 is a reply to message #1843706] |
Tue, 17 August 2021 06:22   |
Eclipse User |
|
|
|
Hi Alois,
After some work on the IO configuration FBN, the problem is now that FBs, including IORevPiCore, IORevPiDIO and IORevPiBusAdapter, could not be initialized successfully, even though I included and compiled the RevPi IO module patch.
Steps to reproduce:
1. Pull the RevPi patch
2. Select FORTE_IO and FORTE_IO_RevPiModularIO in CMake (other options are the same as default from the tutorial)

3. Compile Forte successfully
4. Create SIFB, IORevPiCore, IORevPiDIO, and create an adapter, IORevPiBusAdapter.



5. Create a separate resource and map those FBs to this IO config resource and deploy. Those FBs could not be initialized correctly. (NO deployment error)

End of steps
I have two questions:
1. How to use an adapter in SIFB. From the tutorial, I only see how to use the adapter in basic FB and composite FB but not SIFB. How should I configure events links inside SIFB for the adapter? Or, I just need to drag and drop the adapter to its correct places (socket/plug) and that is all.
2. How do fbt files link to source files? Using the same names? I tried to test embrick IO config FBN and those FBs are working well. I noticed the core FB is called EBMaster but its corresponding source files are Master.cpp/.h under embrick module folder. How does the EBMaster FN link to Master.cpp/.h source files or binary files?
I suppose the fbt and its source files should use the same name so that RT knows where to find its binary. But when I check the EBMaster, it is not the case as I thought.
Br,
Tuojian
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04397 seconds