⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 visualize2.tex

📁 软件无线电的平台
💻 TEX
📖 第 1 页 / 共 2 页
字号:
is an instance of the \texttt{Config} class) in the module from the \texttt{config}file in the corresponding  directory of the module.\\ When the user right-clicks on a module and chooses \emph{{}``changeconfig''}, the corresponding \texttt{CanvasView} creates a \texttt{ConfWind}(that inherits from \texttt{QMainWindow}). The \texttt{ConfWind} readsthe \texttt{config} list in the module and opens a dialog window. Whena value changes, the \texttt{ConfWind} sends the value to the \texttt{Config}and this one writes the modification in a file (known to the SR). TheSR browses regularly the file system and reads the modifications.\\ The figures \ref{graphicalchange} and \ref{controlchange} give ageneral overview on the state, with the modifications.%\begin{figure}[htbp]\begin{center}\includegraphics[%  width=13cm]{newGraphical2.eps}\caption{Simplified UML class diagram showing the classesrelated to the graphical part after the implementation of the option\emph{change config}}\label{graphicalchange}\end{center}\end{figure}%\begin{figure}[htbp]\begin{center}\includegraphics[%  width=13cm]{newControl2.eps}EPFL\caption{Simplified UML class diagram showing the classesrelated to the SR data after the implementation of the option \emph{changeconfig}}\label{controlchange}\end{center}\end{figure}\section{Export Graphics}this job is more simple : play with Qt and Qwt (an extensionlibrary that provide features for graphics). \\\subsection{The Idea}The GUI can show signals as graphics. We want to export these graphics as data for other applications. Two formats are possible: \begin{description}\item [Postscript~(.ps)~:]The image of the graphic. \item [Matlab~(.m)~:]provides a text file that contains the points (oneby line, the two values are separated by a space) \end{description}\subsection{Classes and Control Flow}I inserted the class \texttt{MsrPlot} between \texttt{QwtPlot}and \texttt{Show}. \texttt{QwtPlot} is a class of Qwt that providesa space to show a graphic with axes, title, ..., and keeps the curves.\texttt{Show} is a class of the GUI that is instantiated when we want to show a graphic. \texttt{MsrPlot} provides the exportations. When the\texttt{MsrPlot} wants to export some data, it asks the userto spcify a file, take the data from \texttt{QwtPlot} and saves it to the file.\\ The figure \ref{export} shows the inheritence and dependence for the classes used.%\begin{figure}[htbp]\begin{center} \includegraphics [scale=1.75]{export_inheritance.eps}\caption{Simplified and partial UML class diagram showingthe classes inheritance and dependence for the export functions}\label{export}\end{center}\end{figure}\section{The New Plot}At the end, take all the knowledge aquired during the project and mix it!\\\subsection{Idea and Choose}In the introduction, this part is split in two (Draw a new plot withtwo selected statistics in one or two modules and  a timed plot with one selectedstatistics) for more clearness, but for the implementationit's nearly the same. What changes is that for the second case, the first statistic is the time.\\I choose to use the class \texttt{Show} to draw the graphic on the screen. Like this the export function is inherited from \texttt{MsrPlot}. To open up a new plot window the user has to go to the \texttt{file} menu. I created the class \texttt{Plot}that inherits from \texttt{Block} and rewrote the function that givethe data to \texttt{Show}. It's \texttt{Plot} that is responsibleto keep the data (the curve's points).\\\subsection{The Working Classes}The most part of the work is done by the new class \texttt{PlotWin}(plotting window): \begin{enumerate}\item \texttt{Interface} creates and calls a \texttt{plotWin} when the userchooses a plot in the file menu. \item \texttt{PlotWin} creates an instance of \texttt{Plot} and one of \texttt{Show}with the \texttt{plot} and then the different elements of the window(in particular the time step which is used to take the values from the stats file). \item it waits that the module is returned by the \texttt{canvasView} (whenthe user clicks on the module) \item it reads in the file system the available statistic and asks the the user to choose one. \item go es to 3 if a second module is needed. \item At each time step, it reads the stats files, creates the point and gives them to the \texttt{plot}\end{enumerate}%\begin{figure}[htbp]\begin{center}\includegraphics[%  width=13cm]{colabo.eps}\caption{UML collaboration diagram for the graphic creation}\label{colabo}\end{center}\end{figure}The user can change the time step during the creationof the graphic. He can also freeze the plot by clickingon the graph surface (the creation continue in the background)and export the freezed state. He can choose between a graph drawn withlines or points.\section{Conclusion}First, I want to thank my supervisor : \textbf{Linus Gasser}, for hishelp, disponibility and for all I learned through his contact. I want to thankmy wife for her support.\\ I started with a complete GUI with some basics functions. I addedsome special function needed by the LCM. This Project was build stepby step as in real life, where the goal of a project often changes during it's creation.\\ I learned a lot of things on C++ and in particular Qt and Qwt and about radiocommunication.\pagebreak\section{Screen Shot}The most intressting, isn't it.%\begin{figure}[htbp]\begin{center}\includegraphics[%  width=13cmheight = 20cm]{tabAndGeneral.eps}\caption{A general view}\end{center}\end{figure}%\begin{figure}[htbp]\begin{center}\includegraphics{tab.eps}\caption{The tab with the path of the correspondingconfiguration}\end{center}\end{figure}%\begin{figure}[htbp]\begin{center}\includegraphics{config.eps}\caption{The window to change the configuration of a module}\end{center}\end{figure}%\begin{figure}[htbp]\begin{center}\includegraphics [scale=0.8]{exportps1.eps}\caption{A graphic to export}\end{center}\end{figure}%\begin{figure}[htbp]\begin{center}\includegraphics[ width=13cm]{test.ps}\caption{The postscript result}\end{center}\end{figure}%\begin{figure}[htbp]\begin{center}\includegraphics{point.eps}\caption{The new plot with point option}\end{center}\end{figure}%\begin{figure}[htbp]\begin{center}\includegraphics{line.eps}\caption{The new plot with line option}\end{center}\end{figure}\pagebreak\begin{thebibliography}{1}\bibitem{rep}J.~Ferreiro and J.~Braure : \emph{A Graphical User Interface forLCM Software Radio}, EPFL (03). \end{thebibliography}\end{document}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -