Simultaneous Reads and/or Writes are not possible.
You can access libnodave from different threads, but you must limit the access to the functions, which are providing direct access to the PLC (like daveReadBytes, daveReadBits, daveWriteBytes, daveWriteBits, ...), to one thread at the same time.
Axel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can Libnodave work with simultaneous Read and Write request from different thread?
how I can implement it?
Thank you very much
Simultaneous Reads and/or Writes are not possible.
You can access libnodave from different threads, but you must limit the access to the functions, which are providing direct access to the PLC (like daveReadBytes, daveReadBits, daveWriteBytes, daveWriteBits, ...), to one thread at the same time.
Axel