So you already did most of the job !
I suppose that you built some kind of a VI, where you can switch the relay upon switching a boolean control. Let's call it "Relay.vi".
One very simple solution :
Build a new VI, with a sequence structure with 4 frames :
in the first frame, put a waiting loop, which will wait until a switch button is pressed;
in the second frame, wire a True boolean constant to your Relay.vi
in the third, place a wait node, and wire a 1000 ms constant to the input
in the forth, place another instance of your Relay.vi, this time connected to a False constant.
It's bot very elegant, but that's the simplest thing that you can achieve.
May that could do to start with ?
More help ?
Chilly Charly (aka CC)