Research Article
A Low-Cost Online Data Acquisition and Processing System for Industrial Pollutants’ Monitoring
| \documentclass[11pt]{article} | | \usepackage{CJK} | | \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry} | | \usepackage{algorithm} | | \usepackage{algorithmicx} | | \usepackage{algpseudocode} | | \usepackage{amsmath} | | \usepackage{indentfirst} | | \floatname{algorithm}{Algorithm} | | \renewcommand{\algorithmicrequire}{\textbf{Input:}} | | \renewcommand{\algorithmicensure}{\textbf{Output:}} | | \begin{document} | | \begin{CJK∗}{UTF8}{gkai} | | \renewcommand{\thealgorithm}{4} | | \begin{algorithm} | | \caption{Recieve Data from RMC} | | \begin{algorithmic}[1] %每行显示行号 | | \Require $data: $recieved data | | \State $packet \gets$ parse data | | \If {$packet∼error$} | | \State $return$ | | \EndIf | | \State $cn \gets$ get command no. | | \State $cata \gets$ get command catagory throught cn | | \If{$cata = 0$} | | \State reset saphore | | \EndIf | | \If{$cata = 1$} | | \State process request | | \EndIf | | \end{algorithmic} | | \end{algorithm} | | \end{CJK∗} | | \end{document} |
|