EmbeddedRelated.com
Forums
The 2026 Embedded Online Conference

Gui application for embedded system

Started by Lanarcam June 26, 2014

On Thu, 26 Jun 2014, Lanarcam wrote:

> Date: Thu, 26 Jun 2014 22:18:38 +0200 > From: Lanarcam <lanarcam1@yahoo.fr> > Newsgroups: comp.arch.embedded > Subject: Gui application for embedded system > > I am asking this here since you have probably met the > problem. I have developped an embedded system that has > a serial link (RS232) as user interface. So far we used > a terminal to communicate but I now need to develop > a gui application for windows 7. > > I have tried doing that with Excel with a commercial > active X but I get an "acces denied" error when I open > the port. > > I have also tried python with serial python but there are > installation issues. > > What would you suggest as a solution? >
I would suggest tcl/tk for a very rapid solution, with GUI and a flexible serial interface. While not the latest and greatest scripting language, (sic Python/Kivy), the learning curve is simple, the widgets are built in, and it runs on Windows, Linux, Unix and various. HTH, Cheers, Rob.
Op 27-Jun-14 2:55, Reinhardt Behm schreef:
> Lanarcam wrote: > >> I am asking this here since you have probably met the >> problem. I have developped an embedded system that has >> a serial link (RS232) as user interface. So far we used >> a terminal to communicate but I now need to develop >> a gui application for windows 7. >> >> I have tried doing that with Excel with a commercial >> active X but I get an "acces denied" error when I open >> the port. >> >> I have also tried python with serial python but there are >> installation issues. >> >> What would you suggest as a solution? > > Have a look at Qt <https://qt-project.org/>. > > You can write your program and compile it for Windows or Linux without any > changes. It comes with an IDE (QtCreator). For Windows you can use MingGW as > a compiler. > It is (L)GPL. That means you can keep your source secret and deploy the > relevant libs. > Installation on customers Windows PC consists of copying the relevant EXE > and DLLs into one directory. > > Beware, it's huge and the learning curve is steep. The documentation is > excellent. But it's worth the effort if you will use it for more projects.
And it comes with support for serial ports (QSerialPort class) out of the box, so you won't have to deal with the native API calls. A potential downside is that you have to program in C++, which has its own rather steep learning curve.
On Sun, 29 Jun 2014 16:35:07 +0200, Dombo wrote:

> Op 27-Jun-14 2:55, Reinhardt Behm schreef: >> Lanarcam wrote: >> >>> I am asking this here since you have probably met the problem. I have >>> developped an embedded system that has a serial link (RS232) as user >>> interface. So far we used a terminal to communicate but I now need to >>> develop a gui application for windows 7. >>> >>> I have tried doing that with Excel with a commercial active X but I >>> get an "acces denied" error when I open the port. >>> >>> I have also tried python with serial python but there are installation >>> issues. >>> >>> What would you suggest as a solution? >> >> Have a look at Qt <https://qt-project.org/>. >> >> You can write your program and compile it for Windows or Linux without >> any changes. It comes with an IDE (QtCreator). For Windows you can use >> MingGW as a compiler. >> It is (L)GPL. That means you can keep your source secret and deploy the >> relevant libs. >> Installation on customers Windows PC consists of copying the relevant >> EXE and DLLs into one directory. >> >> Beware, it's huge and the learning curve is steep. The documentation is >> excellent. But it's worth the effort if you will use it for more >> projects. > > And it comes with support for serial ports (QSerialPort class) out of > the box, so you won't have to deal with the native API calls. A > potential downside is that you have to program in C++, which has its own > rather steep learning curve.
OTOH, if you already know C++ it's a nice environment. I didn't know it had the serial port class -- I'll be able to use that within the next month, if it has the features I need. -- Tim Wescott Control system and signal processing consulting www.wescottdesign.com
Tim Wescott <tim@seemywebsite.please> wrote:

 >I didn't know it had the serial port class -- I'll be able to use that 
 >within the next month, if it has the features I need.

It did not have the feature to ask how many bytes in the
send-buffer. Only in case you like to switch the direction of
RS485. .-) 

Olaf

Reinhardt Behm <rbehm@hushmail.com> writes:

> Lanarcam wrote: > >> I am asking this here since you have probably met the >> problem. I have developped an embedded system that has >> a serial link (RS232) as user interface. So far we used >> a terminal to communicate but I now need to develop >> a gui application for windows 7. >> >> I have tried doing that with Excel with a commercial >> active X but I get an "acces denied" error when I open >> the port. >> >> I have also tried python with serial python but there are >> installation issues. >> >> What would you suggest as a solution? > > Have a look at Qt <https://qt-project.org/>.
I also second this recommendation. Been using it for a couple of months and I just love it! VERY powerful! If you know C++, I wouldn't say it's difficult to learn how to use - just perhaps a little time-consuming. And the documentation IS excellent. -- Randy Yates Digital Signal Labs http://www.digitalsignallabs.com
Le 29/06/2014 22:31, Randy Yates a &#4294967295;crit :
> Reinhardt Behm <rbehm@hushmail.com> writes: > >> Lanarcam wrote: >> >>> I am asking this here since you have probably met the >>> problem. I have developped an embedded system that has >>> a serial link (RS232) as user interface. So far we used >>> a terminal to communicate but I now need to develop >>> a gui application for windows 7. >>> >>> I have tried doing that with Excel with a commercial >>> active X but I get an "acces denied" error when I open >>> the port. >>> >>> I have also tried python with serial python but there are >>> installation issues. >>> >>> What would you suggest as a solution? >> >> Have a look at Qt <https://qt-project.org/>. > > I also second this recommendation. Been using it for a couple of months > and I just love it! VERY powerful! > > If you know C++, I wouldn't say it's difficult to learn how to use - > just perhaps a little time-consuming. And the documentation IS > excellent. >
I would like to thank all of those who have answered and provided good advice. I am still undecided, but I think I will try the C# way since it appears rather easy and since I don't need a multi platform solution and I won't spend too much time on it, hopefully. Qt seems interessant also, I know C++ and I will look into that, as a second choice.
Dombo <dombo@disposable.invalid> writes:

> And it comes with support for serial ports (QSerialPort class) out of > the box, so you won't have to deal with the native API calls.
Thanks! It's good to know there's serial port support built in now. I remember we had to find a separate serial qclass for a small Qt project back in 2011.
Lanarcam <lanarcam1@yahoo.fr> writes:
> [...] > I will try the C# way ...
<facepalms> -- Randy Yates Digital Signal Labs http://www.digitalsignallabs.com
On Fri, 27 Jun 2014 14:38:04 -0400
Spam@ControlQ.com wrote:

> > I would suggest tcl/tk for a very rapid solution, with GUI and a flexible > serial interface. While not the latest and greatest scripting language, > (sic Python/Kivy), the learning curve is simple, the widgets are built in, > and it runs on Windows, Linux, Unix and various. > > HTH, > Cheers, > Rob.
Tk's not a terrible graphics toolkit, but what manner of sadist are you that you would suggest Tcl as the language of choice for anyone without a gun to their head? I've written assembly for a half dozen processors, C, C++, C#, Python, Perl, VHDL, Verilog, three flavors of BASIC, Java, Javascript, and Awk, and in all that have NEVER encountered a language so unlikely to give you the results you want without extensive debugging as when my EDA tools force me to write Tcl. -- Rob Gaddi, Highland Technology -- www.highlandtechnology.com Email address domain is currently out of order. See above to fix.
On 2014-06-30, Rob Gaddi <rgaddi@technologyhighland.invalid> wrote:
> On Fri, 27 Jun 2014 14:38:04 -0400 > Spam@ControlQ.com wrote: > >> >> I would suggest tcl/tk for a very rapid solution, with GUI and a flexible >> serial interface. While not the latest and greatest scripting language, >> (sic Python/Kivy), the learning curve is simple, the widgets are built in, >> and it runs on Windows, Linux, Unix and various. >> >> HTH, >> Cheers, >> Rob. > > Tk's not a terrible graphics toolkit, but what manner of sadist are you > that you would suggest Tcl as the language of choice for anyone without > a gun to their head? I've written assembly for a half dozen > processors, C, C++, C#, Python, Perl, VHDL, Verilog, three flavors of > BASIC, Java, Javascript, and Awk, and in all that have NEVER > encountered a language so unlikely to give you the results you want > without extensive debugging as when my EDA tools force me to write Tcl.
Seconded. If you want to use Tk, use Python, or Scheme, or sticks and rocks. _Anything_ but TCL. -- Grant Edwards grant.b.edwards Yow! ... I have read the at INSTRUCTIONS ... gmail.com
The 2026 Embedded Online Conference