var spectral_efficiency,pilot_overhead function Show_Credit() { var credit credit="Script programmed by Jens T.Saetre 25042001"; credit+="\n04052012 Bugfix for some browsers not recalculating on changing DVB parameters"; credit+="\n24112001 Added different PSK & QAM modulation"; credit+="\n08122002 Changed layout"; credit+="\n31082003 Added allocated bandwidths for QAM"; credit+="\n18122005 Changed calculator to work with DVB-S2"; credit+="\n21122005 DVB-S2 calculations based on normal frame (64800bits) and no pilot" credit+="\n23082006 DVB-S2 calculations now supports pilot, short frame(16200bits) and normal frame (64800bits) " credit+="\n12012011 Added DSNG modes " credit+="\n19112014 Added DVB-S2X and added FECFRAME size to the selection field" credit+="\nUpdated 19112014"; window.alert(credit); } function on_select(){ //alert(12345); var InputArray=new Array(); var Val Val=document.dvb.FEC_BROEK.value; if (Val!== "") // If cookie has value then set users defaults { InputArray=Val.split(";"); //' Reads 6 cookie values in to the array document.dvb.Rolloff.value=InputArray[4]; document.dvb.SpectralEfficiency.value=InputArray[1]; document.dvb.bitprsymbol.value=InputArray[2]; } if ((document.dvb.PILOT.value==1)&&(InputArray[3]=="S2")) document.dvb.SpectralEfficiency.value=InputArray[5]; //if ((document.dvb.PILOT.value==0)&&(InputArray[3]=="S2")) document.dvb.SpectralEfficiency.value=InputArray[6]; //if ((document.dvb.PILOT.value==1)&&(InputArray[3]=="S2")&&(document.dvb.FRAME.value==1)) document.dvb.SpectralEfficiency.value=InputArray[7]; } function formatvalue(input, rsize) // Desimal avrunding { var invalid = "**************************"; var nines = "999999999999999999999999"; var strin = "" + input; var fltin = parseFloat(strin); if (strin.length <= rsize) return strin; if (strin.indexOf("e") != -1 || fltin > parseFloat(nines.substring(0,rsize)+".4")) return invalid.substring(0, rsize); var rounded = "" + (fltin + (fltin - parseFloat(strin.substring(0, rsize)))); return rounded.substring(0, rsize); } function occupied_bw() { var SymbolRate= parseFloat(document.dvb.Bandwidth.value) var AllocatedBandwidth = (1 + parseFloat(document.dvb.Rolloff.value)) *SymbolRate document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.Mbaud.value = formatvalue(SymbolRate,11); document.dvb.TS.value= formatvalue(NettoBitRate,11); document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_occbw() // Beregner rater når BW er input { var OccupiedBandwidth; OccupiedBandwidth=1*document.dvb.Bw.value; var SymbolRate= OccupiedBandwidth/1.28; document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var AllocatedBandwidth=SymbolRate*(1 +parseFloat(document.dvb.Rolloff.value)); document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6); var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.Bandwidth.value=formatvalue((SymbolRate),11) document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_bw () // Beregner rater når BW er input { var AllocatedBandwidth = parseFloat(document.dvb.MHz.value) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var SymbolRate= (AllocatedBandwidth/(1 +parseFloat(document.dvb.Rolloff.value)) ) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.Bandwidth.value=formatvalue((SymbolRate),11) document.dvb.Mbaud.value = formatvalue(SymbolRate,11) document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_symbolrate () // Beregner rater og BW når symbolraten er input { var SymbolRate = parseFloat(document.dvb.Mbaud.value) // leser inn symbolraten var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_8PSK_symbolrate () // Beregner rater og BW når symbolraten er input { // må gjøre om denne... gjør om 16-qam sr til DVB SR //SymbolRate = parseFloat(document.dvb.QAM16.value)*4/(parseFloat(document.dvb.FEC_BROEK.value)*2) ; // leser inn symbolraten SymbolRate=parseFloat(document.dvb.PSK8.value)*3*(188/204)*(1/document.dvb.SpectralEfficiency.value); document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM16_allocbw() // Beregner rater og BW når symbolraten er input { document.dvb.QAM16.value =formatvalue(document.dvb.QAM16_OCCBW.value/(1 +parseFloat(0.15)),6) ; SymbolRate=formatvalue((parseFloat(document.dvb.QAM16.value)*4*(188/204)*(1/document.dvb.SpectralEfficiency.value)),6); document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); //document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM16_symbolrate () // Beregner rater og BW når symbolraten er input { // må gjøre om denne... gjør om 16-qam sr til DVB SR //SymbolRate = parseFloat(document.dvb.QAM16.value)*4/(parseFloat(document.dvb.FEC_BROEK.value)*2) ; // leser inn symbolraten SymbolRate=parseFloat(document.dvb.QAM16.value)*4*(188/204)*(1/document.dvb.SpectralEfficiency.value); document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM32_allocbw() // Beregner rater og BW når symbolraten er input { var qam32sr qam32sr=document.dvb.QAM32_OCCBW.value/(1 +parseFloat(0.15)); // New QAM32 SR SymbolRate=formatvalue((parseFloat(qam32sr)*5*(188/204)*(1/document.dvb.SpectralEfficiency.value)),6); document.dvb.Mbaud.value=SymbolRate; document.dvb.QAM32.value=formatvalue(qam32sr,6); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); //document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM32_symbolrate () // Beregner rater og BW når symbolraten er input { //SymbolRate = parseFloat(document.dvb.QAM32.value)*5/(parseFloat(document.dvb.FEC_BROEK.value)*2) ; // leser inn symbolraten SymbolRate=parseFloat(document.dvb.QAM32.value)*5*(188/204)*(1/document.dvb.SpectralEfficiency.value); document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM64_allocbw() // Beregner rater og BW når symbolraten er input { var qam64sr qam64sr =document.dvb.QAM64_OCCBW.value/(1 +parseFloat(0.15)); // New QAM32 SR SymbolRate=formatvalue((parseFloat(qam64sr)*6*(188/204)*(1/document.dvb.SpectralEfficiency.value)),6); document.dvb.Mbaud.value=SymbolRate; document.dvb.QAM64.value=formatvalue(qam64sr,6); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); //document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); //document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM64_symbolrate () // Beregner rater og BW når symbolraten er input { //SymbolRate = parseFloat(document.dvb.QAM64.value)*6/(parseFloat(document.dvb.FEC_BROEK.value)*2) ; // leser inn symbolraten SymbolRate=parseFloat(document.dvb.QAM64.value)*6*(188/204)*(1/document.dvb.SpectralEfficiency.value); document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM128_allocbw() // Beregner rater og BW når symbolraten er input { var qam128sr qam128sr =document.dvb.QAM128_OCCBW.value/(1 +parseFloat(0.15)); // New QAM128 SR SymbolRate=formatvalue((parseFloat(qam128sr)*7*(188/204)*(1/document.dvb.SpectralEfficiency.value)),6); document.dvb.Mbaud.value=SymbolRate; document.dvb.QAM128.value=formatvalue(qam128sr,6); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); //document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); //document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM256_allocbw() // Beregner rater og BW når symbolraten er input { var qam256sr qam256sr =document.dvb.QAM256_OCCBW.value/(1 +parseFloat(0.15)); // New QAM256 SR SymbolRate=formatvalue((parseFloat(qam256sr)*8*(188/204)*(1/document.dvb.SpectralEfficiency.value)),6); document.dvb.Mbaud.value=SymbolRate; document.dvb.QAM256.value=formatvalue(qam256sr,6); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); //document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); //document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM128_symbolrate () // Beregner rater og BW når symbolraten er input { //SymbolRate = parseFloat(document.dvb.QAM128.value)*7/(parseFloat(document.dvb.FEC_BROEK.value)*2) ; // leser inn symbolraten SymbolRate=parseFloat(document.dvb.QAM128.value)*7*(188/204)*(1/document.dvb.SpectralEfficiency.value); document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_QAM256_symbolrate () // Beregner rater og BW når symbolraten er input { //SymbolRate = parseFloat(document.dvb.QAM256.value)*8/(parseFloat(document.dvb.FEC_BROEK.value)*2) ; // leser inn symbolraten SymbolRate=parseFloat(document.dvb.QAM256.value)*8*(188/204)*(1/document.dvb.SpectralEfficiency.value); document.dvb.Mbaud.value = formatvalue(SymbolRate,11); var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var NettoBitRate=SymbolRate*document.dvb.SpectralEfficiency.value; document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var BruttoBitRate = SymbolRate*document.dvb.bitprsymbol.value; document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_nettorate ()// Beregner rater og bw når nettorate er input { var NettoBitRate=parseFloat(document.dvb.TS.value) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) var BruttoBitRate= ((NettoBitRate/document.dvb.SpectralEfficiency.value)) *document.dvb.bitprsymbol.value // 109.10/4.4530270= SR OK - blir ødelagt et annet sted... document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) var SymbolRate = BruttoBitRate / document.dvb.bitprsymbol.value; document.dvb.Mbaud.value = formatvalue(SymbolRate,11) var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_reedsolomonbitrate ()// Beregner rater og bw når nettorate er input { var ReedSolomonBitrate=parseFloat(document.dvb.TS204.value) var NettoBitRate=ReedSolomonBitrate*188/204 document.dvb.TS.value=formatvalue(NettoBitRate,11) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) //var BruttoBitRate= (NettoBitRate/ForwardErrorCorrection)*(204/188) var BruttoBitRate= ((NettoBitRate/document.dvb.SpectralEfficiency.value)) *document.dvb.bitprsymbol.value // 109.10/4.4530270= SR OK - blir ødelagt et annet sted... document.dvb.QPSK.value = formatvalue(BruttoBitRate,6) var SymbolRate = BruttoBitRate / document.dvb.bitprsymbol.value document.dvb.Mbaud.value = formatvalue(SymbolRate,11) var AllocatedBandwidth=SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) document.dvb.MHz.value=formatvalue(AllocatedBandwidth,6) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); } function input_bruttorate () // Beregner rater og bw når bruttorate er input { var BruttoBitRate = parseFloat(document.dvb.QPSK.value ) var ForwardErrorCorrection = parseFloat(document.dvb.FEC_BROEK.value) //var NettoBitRate = (BruttoBitRate * ForwardErrorCorrection * 188 ) / 204 var NettoBitRate= ((BruttoBitRate/document.dvb.bitprsymbol.value) * document.dvb.SpectralEfficiency.value) ; // ok SR*spc effiency document.dvb.TS.value= formatvalue(NettoBitRate,11) document.dvb.TS204.value= formatvalue(NettoBitRate*(204/188),11) var SymbolRate = BruttoBitRate / document.dvb.bitprsymbol.value; document.dvb.Mbaud.value = formatvalue(SymbolRate,11) var AllocatedBandwidth = SymbolRate * (1 +parseFloat(document.dvb.Rolloff.value)) document.dvb.MHz.value = formatvalue(AllocatedBandwidth,6) document.dvb.Bandwidth.value=formatvalue((SymbolRate*1.0),11) var occ_bw= SymbolRate*1.28 document.dvb.Bw.value = formatvalue(occ_bw,6) document.dvb.QPSK.value = formatvalue(BruttoBitRate,6); document.dvb.PSK8.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/3,6); document.dvb.PSK8_OCCBW.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*(1+parseFloat(document.dvb.Rolloff.value))/3,6); document.dvb.QAM16.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/4,6); // SR for QAM16 document.dvb.QAM16_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/4),6); document.dvb.QAM32.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/5,6); document.dvb.QAM32_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/5),6); document.dvb.QAM64.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/6,6); document.dvb.QAM64_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/6),6); document.dvb.QAM128.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/7,6); document.dvb.QAM128_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/7),6); document.dvb.QAM256.value=formatvalue((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))/8,6); document.dvb.QAM256_OCCBW.value=formatvalue(((SymbolRate*document.dvb.SpectralEfficiency.value*(204/188))*1.15/8),6); }