Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
auke.klazema
HPIB
Commits
73ce0a2a
Commit
73ce0a2a
authored
Feb 16, 2018
by
auke.klazema
Browse files
Removed extra white spaces
parent
dc5178ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
hpib.py
View file @
73ce0a2a
...
...
@@ -52,12 +52,12 @@ class PrologixGpibUsb(PortDevice):
self
.
_rematch
=
re
.
search
(
"(/dev/tty.*[^0-9])([0-9]+$)"
,
port
)
if
self
.
_serialPort
==
None
:
raise
serial
.
SerialException
(
"Cannot find port"
)
self
.
_serialPort
.
write
(
"++savecfg 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++auto 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eoi 1"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eos 2"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eot_enable 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eot_char 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++savecfg 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++auto 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eoi 1"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eos 2"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eot_enable 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++eot_char 0"
+
chr
(
10
))
self
.
_serialPort
.
write
(
"++read_tmo_ms 500"
+
chr
(
10
))
if
findDevices
:
self
.
_devices
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment