Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Please do not forget to activate SPI interface on your Raspberry Pi!

Run Python script example

Download pycifx here.

Extract the sources from the zip-file and go in to pycifx.

Code Block
languagebash
themeFadeToGrey
pi@raspberrypi:~ $ cd pycifx/
pi@raspberrypi:~/pycifx $

run main.py

...

Issues during build process

While compiling cifxtcpserver example, this error appears.

Error: multiple definition of 'g_ptMutex'

Image Added


Quick solution: In TCPServer.c located under <driver_version>examples/cifXTCPServer/, line 56 replace pthread_mutex_t* g_ptMutex to e.g static pthread_mutex_t* s_ptMutex and replace g_ptMutex to s_ptMutex.

Run Python script example

Download pycifx here.

Extract the sources from the zip-file and go in to pycifx.

Code Block
languagebash
themeFadeToGrey
pi@raspberrypi:~/pycifx $ sudocd python3 main.py

Issues during build process

While compiling cifxtcpserver example, this error appears.

Error: multiple definition of 'g_ptMutex'

Image Removed

...

pycifx/
pi@raspberrypi:~/pycifx $


run main.py

Code Block
languagebash
themeFadeToGrey
pi@raspberrypi:~/pycifx $ sudo python3 main.py

Connect a netX90 based device to the Raspberry Pi 

...