Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

Flexpendant SDK to change signal on release of button

Is it possible when using the Flexpendant SDK to set a signal when pushing a button and reset on release?
I have been looking at my options but it does not seem to support this for me.

I see option for click, focus or keyup/down but none of these seem to make it work for me.

Comments

  • that is simple enough attach 2 click event in visual studio the keyup and keydown. you do need to have the signal attached to the rapid signal though. so there need to be an declaration: public static Signal aSignal = null; you also need the robot controller object; public static Controller aController = new Controller(); in the load of the screen an attachment: aSignal = aController.IOSystem.GetSignal("Signal Name as in Rapid"); and to avoid memory leaks straight after above line. aController.IOSystem.GetSignal("##").Dispose(); now the signal is ready for use so in the clickdown event: aSignal.Value = 1; and the clickup event: aSignal.Value = 0;