Page 1 of 1

Configure inputs from python

Posted: 24 Jan 2019, 17:46
by marcel.robitaille
Hello.

First, thanks for making RevPiModIO. It's a great library.

I am wondering if there is a way to configure inputs from within RevPiModIO. For my project, this is something I am going to have to do programmatically one way or another. I have added an AIO device and want to set it up with a pretty standard configuration. It's not yet accessible through

Code: Select all

RevPiModIO.device
and

Code: Select all

piTest -d
warns me that "Module is present, but NOT CONFIGURED!!!". Is there any way to initialize it from RevPiModIO? I'd rather not have to reverse engineer PiCtory.

Thanks!

Re: Configure inputs from python

Posted: 05 Feb 2019, 10:30
by RevPiModIO
Hi marcel.robitaille!

I'm sorry, but there is no way to modify the config.rsc (piCtory configuration) with our library. We "read only" the file to setup all IOs.

Sven

Re: Configure inputs from python

Posted: 06 Feb 2019, 16:47
by marcel.robitaille
Hi miprotek.

Thanks for the reply. In that case, could you point me to where config.rsc is documented?

Thanks!