Hello everyone,
I am trying to build a code for controlling external devices with the click of a Pedal "Joystick". Basically, this is a simple USB Pedal, which has one button, and can be pressed sequentially, and used as a control. It's a standard device, even don't know the brand.
My goal: I want to configure this Pedal in such a way that, by pressing it, and holding for 1 second, it will trigger a photo capture from a camera. Same Pedal, though, also will trigger another device control, this time by holding it 3 seconds. I would like to make the code in such a way, that it will be able to distinguish between the button pressed duration. After release of the Pedal, I would want it to return to initial state, and if I press for 1 sec. again, to trigger the Camera process again.
I am using the Acquire Input Data VI to configure the Pedal, and am trying to figure out in my mind, how can I implement properly the Delay functions with Logical elements.
Does anyone have experience with such a system? Will be forever grateful for some tips and help!
Bests!