Connection error WinError 10061
Posted: Mon Feb 19, 2024 7:38 am
Hi everyone,
I am getting following error while trying to run the led blink program (to access the RedPitaya board using Python)
SCPI >> connect(rp-f019d3.local:5000) failed: [WinError 10061] No connection could be made because the target machine actively refused it
Blinking LED[0]
Traceback (most recent call last):
File "C:\Users\Iahmad\Desktop\IshtiaqData\RedPitaya\PythonRedPitaya\blink.py", line 21, in <module>
rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(1))
File "C:\Users\Iahmad\Desktop\IshtiaqData\RedPitaya\PythonRedPitaya\redpitaya_scpi.py", line 88, in tx_txt
return self._socket.sendall((msg + self.delimiter).encode('utf-8')) # was send(().encode('utf-8'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
Could someone please guide what the issue could be? Thanks.
I am getting following error while trying to run the led blink program (to access the RedPitaya board using Python)
SCPI >> connect(rp-f019d3.local:5000) failed: [WinError 10061] No connection could be made because the target machine actively refused it
Blinking LED[0]
Traceback (most recent call last):
File "C:\Users\Iahmad\Desktop\IshtiaqData\RedPitaya\PythonRedPitaya\blink.py", line 21, in <module>
rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(1))
File "C:\Users\Iahmad\Desktop\IshtiaqData\RedPitaya\PythonRedPitaya\redpitaya_scpi.py", line 88, in tx_txt
return self._socket.sendall((msg + self.delimiter).encode('utf-8')) # was send(().encode('utf-8'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
Could someone please guide what the issue could be? Thanks.