Connecting 12V Solenoid valve using arduino uno and SEEED studio relay shield

I am trying to use and arduino uno and seeed studio relay shield to control a 12 vDC solenoid valve. It seems simple enough but I cannot find any instructions on the relay shield. I also need a simple loop code to actuate the relay.

My first attempt was as follows:

Relay shield stacked on arduino uno

DC power supply connected to positive terminal of valve

Negative terminal of valve connected to NO3 (Normally Open) on the relay shield.

COM3 on the relay shield connected to DC power supply.

The code I ran is as follows:

int ValveControl = 5; // Arduino Pin to control the valve

// the setup routine runs once when you press reset:
void setup() {
// declare pin 5 to be an output:
pinMode(ValveControl, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(ValveControl,HIGH);// NO3 and COM3 Connected;
delay(1000);
digitalWrite(ValveControl,LOW);// NO3 and COM3 Disconnected;
delay(1000);

}

http://forum.arduino.cc/index.php?PHPSESSID=amrt26k6dd0aprgpqju3p5p9v4&topic=165923.msg1239161#msg1239161

Thank you so much! I suppose INV in the picture you presented in the link would just be my valve? Also is the code i presented earlier correct? I just want it to loop with the pause determining the time between when the relay is turned on and off.
Your the man!

David3:
I suppose INV in the picture you presented in the link would just be my valve?

Yes.

David3:
Also is the code i presented earlier correct?

As explained in the link, Digital pin 5 works Relay 3.
But your demo sketch is valid.
Just note that.

The diagram's emphasis is Relay 1 (Digital pin 7).

If you just plug the shield in, the relay should click/clack.
It won't work from VUSB, just pluggied into the PC - you have to use Vin (via the barrel jack.)