Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
processes
DoubleTankLab.jl
Commits
aa6d0832
Commit
aa6d0832
authored
Mar 15, 2018
by
Jacob Wikmark
Browse files
connection test
parent
f0ade6fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/testconnection.jl
View file @
aa6d0832
#testing connections
using
LabConnections
.
Computer
,
DoubleTankLab
print
(
"testing connections, this should give something other than NaN or 0.0, and the pump should turned on
\n
"
)
measures
=
[
AnalogInput10V
(
0
),
AnalogInput10V
(
1
),
AnalogInput10V
(
4
),
AnalogOutput10V
(
0
)]
st
=
ComediStream
()
init_devices!
(
st
,
measures
...
)
print
(
"
$
(read.(measures[1:3])
\n
)
"
)
print
(
"
$
(read.(measures[1:3])
)
\n
"
)
send
(
measures
[
4
],
10.0
)
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