Try something like this example in the Basic Framework:
http://www.chiefdelphi.com/forums/at...d=123319909 8
The "Off", "Forward", "Reverse" are constants created from the input to the relay "Set" VI.
The Up/Down arrows on the while loop are "Shift Registers" created using the menu on the while loop border. These are used to contain the current setting of the relay.
The T/F selectors are on the Programming Comparison Palette. These allow you to select the old value or the new one based off the buttons.
The buttons are obtained using the cluster "unbundle by name" function.
There is no button to turn the relay off ... you'll have to extend the example.
Don't forget the other cases in the main loop. The example is not complete.