Arduino SoftwareSerial library basic example not work?

I come to you again because I have a problem with the Arduino library SoftwareSerial. With a basic example I fail to see results in the serial monitor.

The basic code example:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11);
void setup() {
  mySerial.begin(4800);
}
void loop() {
    mySerial.println("HELLO");
    delay(100);
}

I guess it should show the string "HELLO" serial port, but nothing appears. I have found that the baud setting is correct. The hardware is simple. Only the Arduino UNO v3 without any connected component. Thank you for your help

regards

I think you have a basic misunderstanding of what SoftwareSerial is for.

HardwareSerial is what sends data to your PC over the USB connection. Pins 0 and 1 on the Uno are Rx and Tx for HardwareSerial.

SoftwareSerial is used when you want a second serial connection to another device. In your example code you are using pins 10 and 11 for Rx and Tx for SoftwareSerial. Your "Hello" will only be detected by something connected to pin 11.

...R

Thanks for your answer. The fact is that I need to connect a device to these two pins (10 and 11), because in the serial hardware and I have a connected device is busy. I try to make a mySerial.print to test the serial communication with the "virtual serial" but does not show anything printed on the serial monitor.
So it is normal not to see anything printed on the serial monitor when I make

mySerial.print ("something");

?

thank you very much!

So it is normal not to see anything printed on the serial monitor when I make

mySerial.print ("something");

That is perfectly normal as you are not sending the output to the Serial monitor but to pin 11 instead.

ok, I think I'm understanding the problem.
Then, when I connect my device to pins 10 and 11 (RX and TX), should be able to communicate with the device?
This is a connected gprs module, and send the result of some packets received by the arduino hardware serial (which is connected xbee).
Thank you very much to everyone, you are a great help!

EDIT:
I use http://www.cooking-hacks.com/gprs-quadband-module-sim900-for-arduino