Skip to content
Snippets Groups Projects
test_io.py 799 B
Newer Older
ipa-fxm's avatar
ipa-fxm committed
#!/usr/bin/env python
import time
from ur_driver.io_interface import *

if __name__ == "__main__":
    print "toggling things"
    get_states()
    print "listener has been activated"
    while(True):
        set_tool_voltage(12)
        set_digital_out(0, True)
        set_analog_out(0, 0.75)
        print "Flags are currently not supported"
        #set_flag(0, True)
        #print(Flag_States[0])
ipa-fxm's avatar
ipa-fxm committed
        print(Analog_Out_States[0])
        print(Digital_Out_States[0])
        time.sleep(1)
        set_tool_voltage(24)
        set_digital_out(0, False)
        set_analog_out(0, 0.25)
        print "Flags are currently not supported"
        #set_flag(0, False)
        #print(Flag_States[0])
ipa-fxm's avatar
ipa-fxm committed
        print(Analog_Out_States[0])
        print(Digital_Out_States[0])
        time.sleep(1)