serial communication

All other Source.Python topics and issues.
roxanavremi
Junior Member
Posts: 1
Joined: Tue Aug 02, 2022 2:07 pm

serial communication

Postby roxanavremi » Tue Aug 02, 2022 2:13 pm

Hello,

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
print(data)

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


Warning
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 ?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 35 guests