Discussion

Left ArrowBack to discussions page
zoddmanzoddman Posts: 2 Recruit

2 questions.

1) Is there a way to use a hard input to continue on after a programmed popup instead of using the screen?

2) Everything I've seen for wiring is all sourcing. Can you sink inputs and outputs or is it just sourcing?

Thanks, Todd

Best Answer

Comments

  • matthewd92matthewd92 Posts: 756Founding Pro, Tactile Sensor Beta Testers Handy
    1.  Yes there is a way to do this, you would call the popup as script as you can make the popup non blocking then so then the rest of the code can execute, you would then simply use a wait statement to wait on the input.  The tricky part is closing the popup as there is not a built in script for doing that.  Here is one that would work though;

    def closePopup():
      socket_open("127.0.0.1",29999,"popup")  socket_send_string("close popup", "popup")  socket_send_byte(10,"popup")  socket_close("popup")end
    On the robot your code would look something like this
    #Do Something
    popup("Put some message here and wait for input")
    wait(forSomeInput)
    closePopup()

    2.  I do not know of anyway to change the type of inputs or outputs on the robot.  I do know though that the outputs on the arm are different than the cabinet.  You sink the outputs on the arm.


Sign In or Register to comment.
Left ArrowBack to discussions page