diff --git a/examples/xml/CTAHeaderGEN.header b/examples/xml/CTAHeaderGEN.header
new file mode 100644
index 0000000000000000000000000000000000000000..55887ebbdb9d6c80cd9a3e754e6d3b0e22d5cf0d
--- /dev/null
+++ b/examples/xml/CTAHeaderGEN.header
@@ -0,0 +1,59 @@
+-- name of header
+Header CTA
+-- number of field with dimension of packet (or first field if dim of packet is stored in a 32 bit field)
+6
+-- 16 or 32 bit size dimension of the packet lenght
+32
+[Field]
+-- field 0
+Version number
+3
+4
+-- field 1
+Type
+1
+0
+-- field 2
+DHFH
+1
+1
+-- field 3
+APID
+11
+none
+-- field 4
+SF
+2
+3
+-- field 5
+Source Sequence Counter
+14
+none
+-- field 6
+Packet Length
+16
+none
+-- field 7
+Packet Length__2
+16
+none
+-- field 8
+CRC flag
+2
+3
+-- field 9
+Packet Type
+6
+none
+-- field 10
+Packet Subtype
+8
+none
+-- field 11
+CompressionAlgorithm
+8
+none
+-- field 12
+CompressionLevel
+8
+none
diff --git a/examples/xml/packetlib_example.cpp b/examples/xml/packetlib_example.cpp
index 4859bbe2edb69b0950a4df7c91ef312f8b5b4467..2894d19151b975a9416cb459a76a9189b187ec08 100644
--- a/examples/xml/packetlib_example.cpp
+++ b/examples/xml/packetlib_example.cpp
@@ -38,12 +38,13 @@ int main(int argc, char* argv[])
 
 		PacketLib::Field* apid = packetType->getPacketHeader()->getField("APID");
 		std::cout << apid->getType() << std::endl;
-		assert(apid->getType() == PacketLib::LogicalFieldDataType::UINT11);
-		assert(apid->getName().compare("APID") == 0);
+		//assert(apid->getType() == PacketLib::LogicalFieldDataType::UINT11);
+		//assert(apid->getName().compare("APID") == 0);
 	
 		PacketLib::Field* arrayID = packetType->getPacketDataFieldHeader()->getField("ArrayID");
-		assert(arrayID->getType() == PacketLib::LogicalFieldDataType::UINT16);
-		assert(arrayID->getName().compare("ArrayID") == 0);
+		//assert(arrayID->getType() == PacketLib::LogicalFieldDataType::UINT16);
+		//assert(arrayID->getName().compare("ArrayID") == 0);
+		
 	}
 	catch(PacketLib::PacketException* e) {
 		std::cerr << "Bad config file: " << e->geterror() << std::endl;
@@ -57,6 +58,10 @@ int main(int argc, char* argv[])
 	for(unsigned int i=0; i<10; i++) {
 		PacketLib::ByteStreamPtr rawPacket = rawPackets.getNext();
 		PacketLib::Packet* packet = ps.getPacket(rawPacket);
+		
+		//PacketLib::Field* blockfield = packet->getPacketSourceDataField()->getBlock(0)->getField("FADC00");
+		//assert(blockfield->getType() == PacketLib::LogicalFieldDataType::UINT16);
+
 
 		// use reflection interface to read content
 		uint16_t apid = packet->getPacketHeader()->getFieldValue("APID");
@@ -68,10 +73,16 @@ int main(int argc, char* argv[])
 		
 
 		//get each single pixel as a 1-dimensional array
-		//for(unsigned int j=0; j<npixels; j++) {
-		//	PacketLib::byte* buff = packet->getPacketSourceDataField()->getBlock(j)->getByteStream()->getStream();
-		//}
+		for(unsigned int j=0; j<npixels; j++) {
+			
+			uint16_t* pix = (uint16_t*) packet->getPacketSourceDataField()->getBlock(j)->getByteStream()->getStream();
+			for(uint16_t sample=0; sample<nsamples; sample++)
+				cout << pix[sample] << " ";
+			cout << endl;
+			
+		}
 		
+		//access to each single sample
 		for(uint16_t pixel=0; pixel<npixels; pixel++) {
 			for(uint16_t sample=0; sample<nsamples; sample++) {
 				cout << packet->getPacketSourceDataField()->getBlock(pixel)->getFieldValue(sample) << " ";
diff --git a/examples/xml/rta_fadc_all.xml b/examples/xml/rta_fadc_all.xml
new file mode 100644
index 0000000000000000000000000000000000000000..58986244162c3de6810ce51b16efc39d4b435fbb
--- /dev/null
+++ b/examples/xml/rta_fadc_all.xml
@@ -0,0 +1,220 @@
+<stream name="rta_fadc_all" xmlns="http://iasfbo.inaf.it/telemetry" bigendian="false" >
+  <header name="CTAHeaderGEN" description="Header CTA" idref="packetlength">
+    <field name="Version number" type="uint3" constvalue="4" />
+    <field name="Type" type="uint1" constvalue="0" />
+    <field name="DHFH" type="uint1" constvalue="1" />
+    <field name="APID" type="uint11" />
+    <field name="SF" type="uint2" constvalue="3" />
+    <field name="Source Sequence Counter" type="uint14" />
+    <field name="Packet Length" type="uint32" id="packetlength" />
+    <field name="CRC flag" type="uint2" constvalue="3" />
+    <field name="Packet Type" type="uint6" id="id1" />
+    <field name="Packet Subtype" type="uint8" id="id2" />
+    <field name="CompressionAlgorithm" type="uint8" id="packetlib:compression_algorithm" />
+    <field name="CompressionLevel" type="uint8" id="packetlib:compression_level" />
+  </header>
+  <packet name="triggered_telescope1_30GEN" description="CTA Triggered Sim Telescope 30 samples">
+    <datafieldheader>
+      <field name="LTtime" type="uint64" />
+      <field name="ArrayID" type="uint16" />
+      <field name="runNumber" type="uint16" />
+	  <field name="eventNumber" type="uint32" />
+	  <field name="TelescopeID" type="uint16" />
+	  <field name="numberOfTriggeredTelescopes" type="uint8" />
+	  <field name="telescopeCounter" type="uint8" />
+    </datafieldheader>
+    <sourcedatafield>
+	  <field name="Number of pixels" type="uint16" id="ntt" />
+	  <field name="Number of samples" type="uint16" />
+      <field name="Number of pixels ID zero-suppressed" type="uint16" id="npixels" />
+      <rblock name="triggered_telescope_pixel1_30GEN" maxnumberofblocks="1900" idref="ntt">
+        <field name="FADC00" type="uint16" />
+        <field name="FADC01" type="uint16" />
+        <field name="FADC02" type="uint16" />
+        <field name="FADC03" type="uint16" />
+        <field name="FADC04" type="uint16" />
+        <field name="FADC05" type="uint16" />
+        <field name="FADC06" type="uint16" />
+        <field name="FADC07" type="uint16" />
+        <field name="FADC08" type="uint16" />
+        <field name="FADC09" type="uint16" />
+        <field name="FADC10" type="uint16" />
+        <field name="FADC11" type="uint16" />
+        <field name="FADC12" type="uint16" />
+        <field name="FADC13" type="uint16" />
+        <field name="FADC14" type="uint16" />
+        <field name="FADC15" type="uint16" />
+        <field name="FADC16" type="uint16" />
+        <field name="FADC17" type="uint16" />
+        <field name="FADC18" type="uint16" />
+        <field name="FADC19" type="uint16" />
+        <field name="FADC20" type="uint16" />
+        <field name="FADC21" type="uint16" />
+        <field name="FADC22" type="uint16" />
+        <field name="FADC23" type="uint16" />
+        <field name="FADC24" type="uint16" />
+        <field name="FADC25" type="uint16" />
+        <field name="FADC26" type="uint16" />
+        <field name="FADC27" type="uint16" />
+        <field name="FADC28" type="uint16" />
+        <field name="FADC29" type="uint16" />
+      </rblock>
+      <rblock name="triggered_telescope_pixelIDGEN" maxnumberofblocks="1900" idref="npixels">
+        <field name="pixelID" type="uint16" />
+      </rblock>
+    </sourcedatafield>
+    <tail>
+      <field name="CRC" type="uint16" />
+    </tail>
+    <identifiers>
+      <identifier idref="id1" value="1" />
+      <identifier idref="id2" value="30" />
+    </identifiers>
+  </packet>
+  <packet name="triggered_telescope1_40GEN" description="CTA Triggered Sim Telescope 40 samples">
+    <datafieldheader>
+      <field name="LTtime" type="uint64" />
+      <field name="ArrayID" type="uint16" />
+      <field name="runNumber" type="uint16" />
+	  <field name="eventNumber" type="uint32" />
+	  <field name="TelescopeID" type="uint16" />
+	  <field name="numberOfTriggeredTelescopes" type="uint8" />
+	  <field name="telescopeCounter" type="uint8" />
+    </datafieldheader>
+    <sourcedatafield>
+      <field name="Number of pixels" type="uint16" id="ntt_2" />
+      <field name="Number of samples" type="uint16" />
+      <field name="Number of pixels ID zero-suppressed" type="uint16" id="npixels_2" />
+      <rblock name="triggered_telescope_pixel1_40GEN" maxnumberofblocks="1900" idref="ntt_2">
+        <field name="FADC00" type="uint16" />
+        <field name="FADC01" type="uint16" />
+        <field name="FADC02" type="uint16" />
+        <field name="FADC03" type="uint16" />
+        <field name="FADC04" type="uint16" />
+        <field name="FADC05" type="uint16" />
+        <field name="FADC06" type="uint16" />
+        <field name="FADC07" type="uint16" />
+        <field name="FADC08" type="uint16" />
+        <field name="FADC09" type="uint16" />
+        <field name="FADC10" type="uint16" />
+        <field name="FADC11" type="uint16" />
+        <field name="FADC12" type="uint16" />
+        <field name="FADC13" type="uint16" />
+        <field name="FADC14" type="uint16" />
+        <field name="FADC15" type="uint16" />
+        <field name="FADC16" type="uint16" />
+        <field name="FADC17" type="uint16" />
+        <field name="FADC18" type="uint16" />
+        <field name="FADC19" type="uint16" />
+        <field name="FADC20" type="uint16" />
+        <field name="FADC21" type="uint16" />
+        <field name="FADC22" type="uint16" />
+        <field name="FADC23" type="uint16" />
+        <field name="FADC24" type="uint16" />
+        <field name="FADC25" type="uint16" />
+        <field name="FADC26" type="uint16" />
+        <field name="FADC27" type="uint16" />
+        <field name="FADC28" type="uint16" />
+        <field name="FADC29" type="uint16" />
+        <field name="FADC30" type="uint16" />
+        <field name="FADC31" type="uint16" />
+        <field name="FADC32" type="uint16" />
+        <field name="FADC33" type="uint16" />
+        <field name="FADC34" type="uint16" />
+        <field name="FADC35" type="uint16" />
+        <field name="FADC36" type="uint16" />
+        <field name="FADC37" type="uint16" />
+        <field name="FADC38" type="uint16" />
+        <field name="FADC39" type="uint16" />
+      </rblock>
+      <rblock name="triggered_telescope_pixelIDGEN" maxnumberofblocks="1900" idref="npixels_2">
+        <field name="pixelID" type="uint16" />
+      </rblock>
+    </sourcedatafield>
+    <tail>
+      <field name="CRC" type="uint16" />
+    </tail>
+    <identifiers>
+      <identifier idref="id1" value="1" />
+      <identifier idref="id2" value="40" />
+    </identifiers>
+  </packet>
+  <packet name="triggered_telescope1_50GEN" description="CTA Triggered Sim Telescope 50 samples">
+    <datafieldheader>
+      <field name="LTtime" type="uint64" />
+      <field name="ArrayID" type="uint16" />
+      <field name="runNumber" type="uint16" />
+	  <field name="eventNumber" type="uint32" />
+	  <field name="TelescopeID" type="uint16" />
+	  <field name="numberOfTriggeredTelescopes" type="uint8" />
+	  <field name="telescopeCounter" type="uint8" />
+    </datafieldheader>
+    <sourcedatafield>
+      <field name="Number of pixels" type="uint16" id="ntt_3" />
+      <field name="Number of samples" type="uint16" />
+      <field name="Number of pixels ID zero-suppressed" type="uint16" id="npixels_3" />
+      <rblock name="triggered_telescope_pixel1_50GEN" maxnumberofblocks="1900" idref="ntt_3">
+        <field name="FADC00" type="uint16" />
+        <field name="FADC01" type="uint16" />
+        <field name="FADC02" type="uint16" />
+        <field name="FADC03" type="uint16" />
+        <field name="FADC04" type="uint16" />
+        <field name="FADC05" type="uint16" />
+        <field name="FADC06" type="uint16" />
+        <field name="FADC07" type="uint16" />
+        <field name="FADC08" type="uint16" />
+        <field name="FADC09" type="uint16" />
+        <field name="FADC10" type="uint16" />
+        <field name="FADC11" type="uint16" />
+        <field name="FADC12" type="uint16" />
+        <field name="FADC13" type="uint16" />
+        <field name="FADC14" type="uint16" />
+        <field name="FADC15" type="uint16" />
+        <field name="FADC16" type="uint16" />
+        <field name="FADC17" type="uint16" />
+        <field name="FADC18" type="uint16" />
+        <field name="FADC19" type="uint16" />
+        <field name="FADC20" type="uint16" />
+        <field name="FADC21" type="uint16" />
+        <field name="FADC22" type="uint16" />
+        <field name="FADC23" type="uint16" />
+        <field name="FADC24" type="uint16" />
+        <field name="FADC25" type="uint16" />
+        <field name="FADC26" type="uint16" />
+        <field name="FADC27" type="uint16" />
+        <field name="FADC28" type="uint16" />
+        <field name="FADC29" type="uint16" />
+        <field name="FADC30" type="uint16" />
+        <field name="FADC31" type="uint16" />
+        <field name="FADC32" type="uint16" />
+        <field name="FADC33" type="uint16" />
+        <field name="FADC34" type="uint16" />
+        <field name="FADC35" type="uint16" />
+        <field name="FADC36" type="uint16" />
+        <field name="FADC37" type="uint16" />
+        <field name="FADC38" type="uint16" />
+        <field name="FADC39" type="uint16" />
+        <field name="FADC40" type="uint16" />
+        <field name="FADC41" type="uint16" />
+        <field name="FADC42" type="uint16" />
+        <field name="FADC43" type="uint16" />
+        <field name="FADC44" type="uint16" />
+        <field name="FADC45" type="uint16" />
+        <field name="FADC46" type="uint16" />
+        <field name="FADC47" type="uint16" />
+        <field name="FADC48" type="uint16" />
+        <field name="FADC49" type="uint16" />
+      </rblock>
+      <rblock name="triggered_telescope_pixelIDGEN" maxnumberofblocks="1900" idref="npixels_3">
+        <field name="pixelID" type="uint16" />
+      </rblock>
+    </sourcedatafield>
+    <tail>
+      <field name="CRC" type="uint16" />
+    </tail>
+    <identifiers>
+      <identifier idref="id1" value="1" />
+      <identifier idref="id2" value="50" />
+    </identifiers>
+  </packet>
+</stream>
diff --git a/examples/xml/rta_fadc_all_BIGFALSE.stream b/examples/xml/rta_fadc_all_BIGFALSE.stream
new file mode 100644
index 0000000000000000000000000000000000000000..9709ca36092fb6bb7e4e23c6655335f91eeb821b
--- /dev/null
+++ b/examples/xml/rta_fadc_all_BIGFALSE.stream
@@ -0,0 +1,13 @@
+[Configuration]
+--prefix
+false
+--stream format bigendian
+false
+--dimension of prefix
+0
+[Header Format]
+CTAHeaderGEN.header
+[Packet Format]
+triggered_telescope1_30GEN.packet
+triggered_telescope1_40GEN.packet
+triggered_telescope1_50GEN.packet
diff --git a/examples/xml/rta_fadc_all_BIGTRUE.stream b/examples/xml/rta_fadc_all_BIGTRUE.stream
new file mode 100644
index 0000000000000000000000000000000000000000..afaeeb35d3aa40d73ecd0650637533c0310ec2a4
--- /dev/null
+++ b/examples/xml/rta_fadc_all_BIGTRUE.stream
@@ -0,0 +1,13 @@
+[Configuration]
+--prefix
+false
+--stream format bigendian
+true
+--dimension of prefix
+0
+[Header Format]
+CTAHeaderGEN.header
+[Packet Format]
+triggered_telescope1_30GEN.packet
+triggered_telescope1_40GEN.packet
+triggered_telescope1_50GEN.packet
diff --git a/examples/xml/triggered_telescope1_30GEN.packet b/examples/xml/triggered_telescope1_30GEN.packet
new file mode 100644
index 0000000000000000000000000000000000000000..669e1c1215c999200cd162ac2b0bf1f316d47799
--- /dev/null
+++ b/examples/xml/triggered_telescope1_30GEN.packet
@@ -0,0 +1,122 @@
+-- name of packet - CTA Triggered Sim Telescope 30 samples
+triggered_telescope1_30GEN
+[PacketHeader]
+-- file that contains the description of the header
+CTAHeaderGEN.header
+[DataFieldHeader]
+-- field 0
+LTtime
+16
+none
+-- field 0
+LTtime__2
+16
+none
+-- field 1
+LTtime__3
+16
+none
+-- field 2
+LTtime__4
+16
+none
+-- field 3
+ArrayID
+16
+none
+-- field 4
+runNumber
+16
+none
+[SourceDataField]
+-- type of packet: noblock, block, rblock (with recoursive block)
+rblock
+[RBlock Configuration]
+-- fixed part present (yes | no)
+yes
+-- variable part present (yes | no). If yes, add [RBlockX] sections.
+yes
+--number of rblock (if variable part is present)
+2
+[Fixed Part]
+-- field 0
+eventNumber
+16
+none
+-- field 1
+eventNumber__2
+16
+none
+-- field 2
+TelescopeID
+16
+none
+-- field 3
+numberOfTriggeredTelescopes
+8
+none
+-- field 4
+telescopeCounter
+8
+none
+-- field 5
+Number of pixels
+16
+none
+-- field 6
+Number of samples
+16
+none
+-- field 7
+Number of pixels ID zero-suppressed
+16
+none
+[RBlock1]
+--type of number of blocks of this variable part: fixed = number of block fixed equals to max number of block (fixed | variable)
+variable
+--number of blocks for fixed value into variable part, max number of blocks for variable value into variable part
+1900
+-- for variable block, number of level of headers in which is present the field with the number of blocks of the variable part (0: fixed part)
+0
+-- for variable block, index of field of the header which rappresent the number of events (the number of blocks) of the packet
+5
+-- for variable block, value to sum to get the real number of events (blocks)
+0
+triggered_telescope_pixel1_30GEN.rblock
+[RBlock2]
+--type of number of blocks of this variable part: fixed = number of block fixed equals to max number of block (fixed | variable)
+variable
+--number of blocks for fixed value into variable part, max number of blocks for variable value into variable part
+1900
+-- for variable block, number of level of headers in which is present the field with the number of blocks of the variable part (0: fixed part)
+0
+-- for variable block, index of field of the header which rappresent the number of events (the number of blocks) of the packet
+7
+-- for variable block, value to sum to get the real number of events (blocks)
+0
+triggered_telescope_pixelIDGEN.rblock
+[Identifiers]
+-- ID0
+-- field number
+9
+-- type (0 header, 1 data field, 2 source data field)
+0
+-- value
+1
+-- ID1
+-- field number
+10
+-- type (0 header, 1 data field, 2 source data field)
+0
+-- value
+30
+[Tail]
+-- field 0
+CRC
+16
+none
+[Compression]
+11
+0
+12
+0
diff --git a/examples/xml/triggered_telescope1_40GEN.packet b/examples/xml/triggered_telescope1_40GEN.packet
new file mode 100644
index 0000000000000000000000000000000000000000..6d7924e28e9a5fbdd5f5d4994dc0df8a06575986
--- /dev/null
+++ b/examples/xml/triggered_telescope1_40GEN.packet
@@ -0,0 +1,122 @@
+-- name of packet - CTA Triggered Sim Telescope 40 samples
+triggered_telescope1_40GEN
+[PacketHeader]
+-- file that contains the description of the header
+CTAHeaderGEN.header
+[DataFieldHeader]
+-- field 0
+LTtime
+16
+none
+-- field 0
+LTtime__2
+16
+none
+-- field 1
+LTtime__3
+16
+none
+-- field 2
+LTtime__4
+16
+none
+-- field 3
+ArrayID
+16
+none
+-- field 4
+runNumber
+16
+none
+[SourceDataField]
+-- type of packet: noblock, block, rblock (with recoursive block)
+rblock
+[RBlock Configuration]
+-- fixed part present (yes | no)
+yes
+-- variable part present (yes | no). If yes, add [RBlockX] sections.
+yes
+--number of rblock (if variable part is present)
+2
+[Fixed Part]
+-- field 0
+eventNumber
+16
+none
+-- field 1
+eventNumber__2
+16
+none
+-- field 2
+TelescopeID
+16
+none
+-- field 3
+numberOfTriggeredTelescopes
+8
+none
+-- field 4
+telescopeCounter
+8
+none
+-- field 5
+Number of pixels
+16
+none
+-- field 6
+Number of samples
+16
+none
+-- field 7
+Number of pixels ID zero-suppressed
+16
+none
+[RBlock1]
+--type of number of blocks of this variable part: fixed = number of block fixed equals to max number of block (fixed | variable)
+variable
+--number of blocks for fixed value into variable part, max number of blocks for variable value into variable part
+1900
+-- for variable block, number of level of headers in which is present the field with the number of blocks of the variable part (0: fixed part)
+0
+-- for variable block, index of field of the header which rappresent the number of events (the number of blocks) of the packet
+5
+-- for variable block, value to sum to get the real number of events (blocks)
+0
+triggered_telescope_pixel1_40GEN.rblock
+[RBlock2]
+--type of number of blocks of this variable part: fixed = number of block fixed equals to max number of block (fixed | variable)
+variable
+--number of blocks for fixed value into variable part, max number of blocks for variable value into variable part
+1900
+-- for variable block, number of level of headers in which is present the field with the number of blocks of the variable part (0: fixed part)
+0
+-- for variable block, index of field of the header which rappresent the number of events (the number of blocks) of the packet
+7
+-- for variable block, value to sum to get the real number of events (blocks)
+0
+triggered_telescope_pixelIDGEN.rblock
+[Identifiers]
+-- ID0
+-- field number
+9
+-- type (0 header, 1 data field, 2 source data field)
+0
+-- value
+1
+-- ID1
+-- field number
+10
+-- type (0 header, 1 data field, 2 source data field)
+0
+-- value
+40
+[Tail]
+-- field 0
+CRC
+16
+none
+[Compression]
+11
+0
+12
+0
diff --git a/examples/xml/triggered_telescope1_50GEN.packet b/examples/xml/triggered_telescope1_50GEN.packet
new file mode 100644
index 0000000000000000000000000000000000000000..b8c5c78bef1574844e9623af2b3fb5724d347801
--- /dev/null
+++ b/examples/xml/triggered_telescope1_50GEN.packet
@@ -0,0 +1,122 @@
+-- name of packet - CTA Triggered Sim Telescope 50 samples
+triggered_telescope1_50GEN
+[PacketHeader]
+-- file that contains the description of the header
+CTAHeaderGEN.header
+[DataFieldHeader]
+-- field 0
+LTtime
+16
+none
+-- field 0
+LTtime__2
+16
+none
+-- field 1
+LTtime__3
+16
+none
+-- field 2
+LTtime__4
+16
+none
+-- field 3
+ArrayID
+16
+none
+-- field 4
+runNumber
+16
+none
+[SourceDataField]
+-- type of packet: noblock, block, rblock (with recoursive block)
+rblock
+[RBlock Configuration]
+-- fixed part present (yes | no)
+yes
+-- variable part present (yes | no). If yes, add [RBlockX] sections.
+yes
+--number of rblock (if variable part is present)
+2
+[Fixed Part]
+-- field 0
+eventNumber
+16
+none
+-- field 1
+eventNumber__2
+16
+none
+-- field 2
+TelescopeID
+16
+none
+-- field 3
+numberOfTriggeredTelescopes
+8
+none
+-- field 4
+telescopeCounter
+8
+none
+-- field 5
+Number of pixels
+16
+none
+-- field 6
+Number of samples
+16
+none
+-- field 7
+Number of pixels ID zero-suppressed
+16
+none
+[RBlock1]
+--type of number of blocks of this variable part: fixed = number of block fixed equals to max number of block (fixed | variable)
+variable
+--number of blocks for fixed value into variable part, max number of blocks for variable value into variable part
+1900
+-- for variable block, number of level of headers in which is present the field with the number of blocks of the variable part (0: fixed part)
+0
+-- for variable block, index of field of the header which rappresent the number of events (the number of blocks) of the packet
+5
+-- for variable block, value to sum to get the real number of events (blocks)
+0
+triggered_telescope_pixel1_50GEN.rblock
+[RBlock2]
+--type of number of blocks of this variable part: fixed = number of block fixed equals to max number of block (fixed | variable)
+variable
+--number of blocks for fixed value into variable part, max number of blocks for variable value into variable part
+1900
+-- for variable block, number of level of headers in which is present the field with the number of blocks of the variable part (0: fixed part)
+0
+-- for variable block, index of field of the header which rappresent the number of events (the number of blocks) of the packet
+7
+-- for variable block, value to sum to get the real number of events (blocks)
+0
+triggered_telescope_pixelIDGEN.rblock
+[Identifiers]
+-- ID0
+-- field number
+9
+-- type (0 header, 1 data field, 2 source data field)
+0
+-- value
+1
+-- ID1
+-- field number
+10
+-- type (0 header, 1 data field, 2 source data field)
+0
+-- value
+50
+[Tail]
+-- field 0
+CRC
+16
+none
+[Compression]
+11
+0
+12
+0
diff --git a/examples/xml/triggered_telescope_pixel1_30GEN.rblock b/examples/xml/triggered_telescope_pixel1_30GEN.rblock
new file mode 100644
index 0000000000000000000000000000000000000000..e9129fdb15e2172540c13b5d6f20a395df891d38
--- /dev/null
+++ b/examples/xml/triggered_telescope_pixel1_30GEN.rblock
@@ -0,0 +1,126 @@
+[RBlock Configuration]
+-- fixed part present (yes | no)
+yes
+-- variable part present (yes | no). If yes, add [RBlockX] sections.
+no
+[Fixed Part]
+-- field 0
+FADC00
+16
+none
+-- field 1
+FADC01
+16
+none
+-- field 2
+FADC02
+16
+none
+-- field 3
+FADC03
+16
+none
+-- field 4
+FADC04
+16
+none
+-- field 5
+FADC05
+16
+none
+-- field 6
+FADC06
+16
+none
+-- field 7
+FADC07
+16
+none
+-- field 8
+FADC08
+16
+none
+-- field 9
+FADC09
+16
+none
+-- field 10
+FADC10
+16
+none
+-- field 11
+FADC11
+16
+none
+-- field 12
+FADC12
+16
+none
+-- field 13
+FADC13
+16
+none
+-- field 14
+FADC14
+16
+none
+-- field 15
+FADC15
+16
+none
+-- field 16
+FADC16
+16
+none
+-- field 17
+FADC17
+16
+none
+-- field 18
+FADC18
+16
+none
+-- field 19
+FADC19
+16
+none
+-- field 20
+FADC20
+16
+none
+-- field 21
+FADC21
+16
+none
+-- field 22
+FADC22
+16
+none
+-- field 23
+FADC23
+16
+none
+-- field 24
+FADC24
+16
+none
+-- field 25
+FADC25
+16
+none
+-- field 26
+FADC26
+16
+none
+-- field 27
+FADC27
+16
+none
+-- field 28
+FADC28
+16
+none
+-- field 29
+FADC29
+16
+none
diff --git a/examples/xml/triggered_telescope_pixel1_40GEN.rblock b/examples/xml/triggered_telescope_pixel1_40GEN.rblock
new file mode 100644
index 0000000000000000000000000000000000000000..af92cc8ad450fca3e1f7c34dc66882c2206b94a6
--- /dev/null
+++ b/examples/xml/triggered_telescope_pixel1_40GEN.rblock
@@ -0,0 +1,166 @@
+[RBlock Configuration]
+-- fixed part present (yes | no)
+yes
+-- variable part present (yes | no). If yes, add [RBlockX] sections.
+no
+[Fixed Part]
+-- field 0
+FADC00
+16
+none
+-- field 1
+FADC01
+16
+none
+-- field 2
+FADC02
+16
+none
+-- field 3
+FADC03
+16
+none
+-- field 4
+FADC04
+16
+none
+-- field 5
+FADC05
+16
+none
+-- field 6
+FADC06
+16
+none
+-- field 7
+FADC07
+16
+none
+-- field 8
+FADC08
+16
+none
+-- field 9
+FADC09
+16
+none
+-- field 10
+FADC10
+16
+none
+-- field 11
+FADC11
+16
+none
+-- field 12
+FADC12
+16
+none
+-- field 13
+FADC13
+16
+none
+-- field 14
+FADC14
+16
+none
+-- field 15
+FADC15
+16
+none
+-- field 16
+FADC16
+16
+none
+-- field 17
+FADC17
+16
+none
+-- field 18
+FADC18
+16
+none
+-- field 19
+FADC19
+16
+none
+-- field 20
+FADC20
+16
+none
+-- field 21
+FADC21
+16
+none
+-- field 22
+FADC22
+16
+none
+-- field 23
+FADC23
+16
+none
+-- field 24
+FADC24
+16
+none
+-- field 25
+FADC25
+16
+none
+-- field 26
+FADC26
+16
+none
+-- field 27
+FADC27
+16
+none
+-- field 28
+FADC28
+16
+none
+-- field 29
+FADC29
+16
+none
+-- field 30
+FADC30
+16
+none
+-- field 31
+FADC31
+16
+none
+-- field 32
+FADC32
+16
+none
+-- field 33
+FADC33
+16
+none
+-- field 34
+FADC34
+16
+none
+-- field 35
+FADC35
+16
+none
+-- field 36
+FADC36
+16
+none
+-- field 37
+FADC37
+16
+none
+-- field 38
+FADC38
+16
+none
+-- field 39
+FADC39
+16
+none
diff --git a/examples/xml/triggered_telescope_pixel1_50GEN.rblock b/examples/xml/triggered_telescope_pixel1_50GEN.rblock
new file mode 100644
index 0000000000000000000000000000000000000000..a06dd6fea2a7903787e58c7b19c47eb9bf47b042
--- /dev/null
+++ b/examples/xml/triggered_telescope_pixel1_50GEN.rblock
@@ -0,0 +1,206 @@
+[RBlock Configuration]
+-- fixed part present (yes | no)
+yes
+-- variable part present (yes | no). If yes, add [RBlockX] sections.
+no
+[Fixed Part]
+-- field 0
+FADC00
+16
+none
+-- field 1
+FADC01
+16
+none
+-- field 2
+FADC02
+16
+none
+-- field 3
+FADC03
+16
+none
+-- field 4
+FADC04
+16
+none
+-- field 5
+FADC05
+16
+none
+-- field 6
+FADC06
+16
+none
+-- field 7
+FADC07
+16
+none
+-- field 8
+FADC08
+16
+none
+-- field 9
+FADC09
+16
+none
+-- field 10
+FADC10
+16
+none
+-- field 11
+FADC11
+16
+none
+-- field 12
+FADC12
+16
+none
+-- field 13
+FADC13
+16
+none
+-- field 14
+FADC14
+16
+none
+-- field 15
+FADC15
+16
+none
+-- field 16
+FADC16
+16
+none
+-- field 17
+FADC17
+16
+none
+-- field 18
+FADC18
+16
+none
+-- field 19
+FADC19
+16
+none
+-- field 20
+FADC20
+16
+none
+-- field 21
+FADC21
+16
+none
+-- field 22
+FADC22
+16
+none
+-- field 23
+FADC23
+16
+none
+-- field 24
+FADC24
+16
+none
+-- field 25
+FADC25
+16
+none
+-- field 26
+FADC26
+16
+none
+-- field 27
+FADC27
+16
+none
+-- field 28
+FADC28
+16
+none
+-- field 29
+FADC29
+16
+none
+-- field 30
+FADC30
+16
+none
+-- field 31
+FADC31
+16
+none
+-- field 32
+FADC32
+16
+none
+-- field 33
+FADC33
+16
+none
+-- field 34
+FADC34
+16
+none
+-- field 35
+FADC35
+16
+none
+-- field 36
+FADC36
+16
+none
+-- field 37
+FADC37
+16
+none
+-- field 38
+FADC38
+16
+none
+-- field 39
+FADC39
+16
+none
+-- field 40
+FADC40
+16
+none
+-- field 41
+FADC41
+16
+none
+-- field 42
+FADC42
+16
+none
+-- field 43
+FADC43
+16
+none
+-- field 44
+FADC44
+16
+none
+-- field 45
+FADC45
+16
+none
+-- field 46
+FADC46
+16
+none
+-- field 47
+FADC47
+16
+none
+-- field 48
+FADC48
+16
+none
+-- field 49
+FADC49
+16
+none
diff --git a/examples/xml/triggered_telescope_pixelIDGEN.rblock b/examples/xml/triggered_telescope_pixelIDGEN.rblock
new file mode 100644
index 0000000000000000000000000000000000000000..63a420b9654810fa819aad89280a9d534528e3e9
--- /dev/null
+++ b/examples/xml/triggered_telescope_pixelIDGEN.rblock
@@ -0,0 +1,10 @@
+[RBlock Configuration]
+-- fixed part present (yes | no)
+yes
+-- variable part present (yes | no). If yes, add [RBlockX] sections.
+no
+[Fixed Part]
+-- field 0
+pixelID
+16
+none