May-23-2019, 05:55 PM
completed these:
pip uninstall serial
pip install --upgrade --force-reinstall pyserial
to make sure the port is readable, I also did this:
opened up COM3,9600,8,1,N in putty and was able to issue commands and see responses from the D110.
found another useful command along the way..:
python -m serial.tools.list_ports
Spyder still failing, so moved the whole example code into a Anaconda3 Jupyter notebook:
and added some more code after the import lines:
print("PORT LIST")
ports = list(port_list.comports())
for p in ports: print (p)
print("END PORT LIST")
got this output! PROBLEM SOLVED:
PORT LIST
COM3 - DATAQ DI-1110 (COM3)
END PORT LIST
Found a DATAQ Instruments device on COM3
stop
encode 0
ps 0
slist 0 0
slist 1 1
slist 2 1801
slist 3 8
slist 4 10
srate 60000
Ready to acquire...
Press <g> to go, <s> to stop, <r> to reset counter, and <q> to quit:[/color]
Remaining question:
Why does this not work in the Spyder environment.
Thanks for the help so far...
-Dan :)
pip uninstall serial
pip install --upgrade --force-reinstall pyserial
to make sure the port is readable, I also did this:
opened up COM3,9600,8,1,N in putty and was able to issue commands and see responses from the D110.
found another useful command along the way..:
python -m serial.tools.list_ports
Spyder still failing, so moved the whole example code into a Anaconda3 Jupyter notebook:
and added some more code after the import lines:
print("PORT LIST")
ports = list(port_list.comports())
for p in ports: print (p)
print("END PORT LIST")
got this output! PROBLEM SOLVED:
PORT LIST
COM3 - DATAQ DI-1110 (COM3)
END PORT LIST
Found a DATAQ Instruments device on COM3
stop
encode 0
ps 0
slist 0 0
slist 1 1
slist 2 1801
slist 3 8
slist 4 10
srate 60000
Ready to acquire...
Press <g> to go, <s> to stop, <r> to reset counter, and <q> to quit:[/color]
Remaining question:
Why does this not work in the Spyder environment.
Thanks for the help so far...
-Dan :)