![]() |
help converting decimal result into dBm - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: help converting decimal result into dBm (/showthread.php?tid=71486) |
help converting decimal result into dBm - PortalNET - 08-19-2018 Hi guys i am having some troubles in trying to setup the following in PHP i have a xml file that reads out the direct results of my card. i want to parse it to php in code igniter but i am having some troubles i need to convert a decimal result into dBm, which i found the code below and want to print it on the php page with a menu bar signal kind of thing similar to wifi basically it reads a DVB signal from the xml file and outputs it in php page but the current result is output in decimal which is weird cause i need to convert it to dBM i have the following code to convert it to dBm PHP Code: function calcDb() { atm i am reading those with this. PHP Code: <td align="center">Signal:</td> Quote:<frontend_system><![CDATA[DVB-S2]]></frontend_system> and the actual result is descbribed on the picture below pic1 i would like to display the results in dbm example SNR 50% OR 70% dB and display it in a graphic similar to this one on pic2 fe has lock. status:SCVYL signal:60% snr:80% ber:0 unc:0 pic2 |