08-07-2011 05:12 AM
Hi,
I have a vi which runs on my compactRIO and controls the balancing of a robot. The robot balances pretty well but it would be nice to move it around. I have two slider control linked to the motor outputs of the control system so i can simply add or subtract a voltage from the motors so they move in a certain direction and hence move it around.
However sliding the vertical slider is not ideal especially when you need to move both motors at the same time to get it to move diagonally for example. Is it possible to use the keys on my laptop (which is hooked up to the compactRIO) to add small values to the controls on the front panels. So for example i could press the up key and it would add 0.01 to the vertical slider and hence add a little voltage to the motor when it ran through the VI. This would make controlling it a lot easier and also good for it's intended use as a demonstrator for uni classes as they could just intuitively use the keyboard to control it rather than having to know all about labview.
Thanks,
Sam
08-07-2011 06:39 AM
The attached uses the left and right cursor keys to change a value. Adapt as required.
Ian