Forum
Please or Register to create posts and topics.

Read serial port with Script block

Hi Sir

do you have any simple example for read serial port in Script block?

we found the  serial library  in the installation path, but it need a sample example for run it !

Peng has reacted to this post.
Peng

Here is a simple example mission for reading data from a serial port. You may have to adjust the connection parameters to your needs. The read() method returns a binary Arraybuffer which you have to convert to the proper data type you need.

Uploaded files:
David3542 has reacted to this post.
David3542

Thank you so much for your useful example