Main Page
Namespaces
Classes
Files
File List
test_io.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
from
__future__
import
print_function
3
import
time
4
from
ur_driver.io_interface
import
*
5
6
if
__name__ ==
"__main__"
:
7
print(
"testing io-interface"
)
8
get_states
()
9
print(
"listener has been activated"
)
10
set_states
()
11
print(
"service-server has been started"
)
12
while(
True
):
13
set_tool_voltage
(12)
14
set_digital_out
(0,
True
)
15
set_analog_out
(0, 0.75)
16
#print "Flags are currently not supported"
17
##set_flag(0, True)
18
##print(Flag_States[0])
19
print(Analog_Out_States[0])
20
print(Digital_Out_States[0])
21
time.sleep(1)
22
set_tool_voltage
(24)
23
set_digital_out
(0,
False
)
24
set_analog_out
(0, 0.25)
25
#print "Flags are currently not supported"
26
##set_flag(0, False)
27
##print(Flag_States[0])
28
print(Analog_Out_States[0])
29
print(Digital_Out_States[0])
30
time.sleep(1)
31
32
ur_driver.io_interface.set_digital_out
def set_digital_out(pin, val)
Definition:
io_interface.py:33
ur_driver.io_interface.set_tool_voltage
def set_tool_voltage(volts)
Definition:
io_interface.py:27
ur_driver.io_interface
Definition:
io_interface.py:1
ur_driver.io_interface.set_states
def set_states()
Definition:
io_interface.py:75
ur_driver.io_interface.set_analog_out
def set_analog_out(pin, val)
Definition:
io_interface.py:39
ur_driver.io_interface.get_states
def get_states()
Definition:
io_interface.py:71
ur_driver
Author(s): Stuart Glaser, Shaun Edwards, Felix Messmer
autogenerated on Sun Nov 24 2019 03:36:29