Page 1 of 1

serial communication

Posted: Tue Aug 02, 2022 2:13 pm
by roxanavremi

PLC engineer here, so my programming skills are not great.
So, I need to make a communication with an equipment which comunicates on usb.
This is the code I wrote

import serial
port = "COM4"
baudrate = 9600
ser = serial.Serial(port,baudrate,timeout=0.001)
while True:
data = ser.readline

I recived this Warning : ModuleNotFoundError: No module named 'serial'

It seems you're trying to use a module that doesn't come with our installer. Check this FAQ in our docs to learn how to do this.

I checked the FAQ and installed a thing called Miniconda, and followed the steps. After this, I recive the following error: ModuleNotFoundError: No module named 'serial'

Any sugestions ?