Page 1 of 1

Python and C Saples codes.

Posted: 13 Oct 2018, 07:06
by kodyaz
Greetings to everyone. I need a simple code for the DIO product. Can you share a simple code that will read an inout and set an output.
Both c and python.

I want also the python and c library guides for a rev rev.

Thanks.

Re: Python and C Saples codes.

Posted: 15 Oct 2018, 09:38
by dirk
Hello, good news we have video tutorials for C and Python access to digital IOs and the sample codes that are used in the download area. I recommend you to have a look at the video tutorials:
  • Tutorial 12 – Digital IO Modules application example
  • Tutorial 13 – PiTest source code
  • Tutorial 16 – Access to process image using Python
There is also a nice Python library available called RevPiModIO. Here is a short code impression how it works.

Re: Python and C Saples codes.

Posted: 16 Oct 2018, 18:20
by kodyaz
After update for revpimod the following error was received.
http://kodyaz.net/hata.png
What is the problem?

Re: Python and C Saples codes.

Posted: 17 Oct 2018, 10:38
by dirk
Can you tell us what commands did you type to install the library? Maybe you typed the commands that are shown on the background of your picture, right? That commands update the system. You have to run this commands by "log in to the console or via ssh". The picture shows a VNC Viewer window. So you are connected via VNC to your graphical desktop and not via a SSH connection or HDMI monitor. Use a direct HDMI connection and a keyboard to login to the console then start the graphical desktop with "startx" and see if the problem still exists.