...
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 | ||||
---|---|---|---|---|
| ||||
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'
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 | ||||
---|---|---|---|---|
| ||||
pi@raspberrypi:~/pycifx $ sudocd python3 main.py |
Issues during build process
While compiling cifxtcpserver example, this error appears.
Error: multiple definition of 'g_ptMutex'
...
pycifx/
pi@raspberrypi:~/pycifx $ |
run main.py
Code Block | ||||
---|---|---|---|---|
| ||||
pi@raspberrypi:~/pycifx $ sudo python3 main.py |
Connect a netX90 based device to the Raspberry Pi
...