lulu
Hello, I'm planning to use OpenPLC on a Jetson Nano development board. However, as I began to write the hardware layer, I realized that, unlike Raspberry Pi, there is no official C language implementation of the GPIO library for Jetson Nano. There's only the official Python library and an unofficial C++ library. It's somewhat challenging for me to use C to call these libraries, so I'm seeking help from the community. I hope to get some assistance on whether there are more convenient methods to implement the hardware layer of OpenPLC.
Thank you.
Reply 0 0
thiagoralves
One way to implement this would be using PSM. PSM is a hardware layer for OpenPLC that bridges Python with C. You can write your driver in plain Python and it will run with the C core
Reply 0 0
lulu
If I use the GPIO library in Python, it will affect real-time performance, won't it?
Reply 0 0
thiagoralves
Yes. Python is not as fast as C, and also PSM works in a asynchronous cycle, meaning it has its own pace, and doesn’t follow the PLC scan cycle
Reply 0 0
lulu
OK,I got it.Thank you.
Reply 0 0
Reply