Author Topic: Which Programming Language for Creating PC UIs for Embedded Systems?  (Read 7675 times)

0 Members and 1 Guest are viewing this topic.

Offline blueskull

  • Supporter
  • ****
  • !
  • Posts: 12885
  • Country: cn
  • Power Electronics Guy
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #25 on: October 29, 2016, 09:05:09 am »
(someone told me recently that c# is possible to target Linux, but not using visual studio?? some third party thing??but I honestly have no personal experience with this one and haven't taken any time to even check this... just mentioning it as a maybe)

You can run VS compiled C# programs under Linux using Mono, or you can compile C# programs under Linux using Mono compiler, then execute it under Mono. Mono compiled programs can also run on Windows.
.NET programs are managed, which means an executable is just a package of byte code, not real machine code. When Windows kernel loads one, it will call .NET runtime to compile the byte code into machine code on the fly, then execute in a JIT fashion. The same for Linux, when Linux kernel detects a .NET program, it calls Mono to load it.
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 1806
  • Country: fr
    • kripton2035 schematics repository
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #26 on: October 29, 2016, 09:39:19 am »
take a look at Xojo. works natively for windows, linux, mac, and even raspberry pi. (and iOS and android sooner or later)

Offline ChunkyPastaSauce

  • Supporter
  • ****
  • Posts: 530
  • Country: 00
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #27 on: October 29, 2016, 09:54:29 am »
LabView will also do it but ...

... it's terrible.

And it requires a very heavy run-time environment, worse than dotnet or Java.

Oh, that was supposed to say "LabView will also do it but expensive" (for smaller work anyway).

IMO Labview is pretty good for what it's meant for...... but it is terrible for stuff it's not meant for though. Creating a standardized PC UI interface for an embedded device, is one thing it's meant for.

The default run-time is heavy/large because it contains all libraries and interfaces (a ton)... you can of course setup a build specification to remove what you don't use, bringing it to a typical run-time size (or segment manually if one wants to reduce it further).

« Last Edit: October 29, 2016, 09:58:31 am by ChunkyPastaSauce »
 

Online Kjelt

  • Super Contributor
  • ***
  • Posts: 5760
  • Country: nl
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #28 on: October 29, 2016, 10:04:23 am »
Reading the other suggestions I am probably outdated.
Still I see for win only a lot of C# with .net development, is that going to end soon?
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 7439
  • Country: nz
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #29 on: October 29, 2016, 10:58:46 am »
If you're brave, you could consider Delphi. (yes, that still exists) They promise a lot. But you have to buy it first.

You can get full version Delphi Starter edition totally free at the moment, they have a sale on.
It doesn't have any database components and you don't get the cross platform or mobile ios/android support though. Just get win32 development.
However you do get firemonkey, so can create some pretty fancy 3D UI's if you wish.

For com port stuff the easiest way would be to install one of the 3rd party com port component libraries.
That way its just, drag component onto form, and use one of the events to grab the serial data from the serial buffer. Saves having to deal with the windows API yourself.

I've not tried 3rd party component libraries with delphi Starter Edition though. But afaik you can still do that.
« Last Edit: October 29, 2016, 11:04:53 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 1997
  • Country: 00
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #30 on: October 29, 2016, 02:43:24 pm »
I'm doing with Delphi for more than 20 years, and many version, and still didn't find anything better for that task Delphi is easy, simple and powertfull
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 6902
  • Country: us
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #31 on: October 29, 2016, 03:00:52 pm »
How about MATLAB?  I haven't tried it on Linux but apparently it works.
There is example code for COM ports by way of Google.
I'm currently working with the connector between MATLAB and a Raspberry PI.  The PI will do IO over SPI and communicate with MATLAB on a PC via Ethernet.  Pretty cool!

I really like MATLAB.  It has some fun building blocks in Simulink.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 18546
  • Country: nl
    • NCT Developments
Re: Which Programming Language for Creating PC UIs for Embedded Systems?
« Reply #32 on: October 29, 2016, 03:20:39 pm »
Reading the other suggestions I am probably outdated.
Still I see for win only a lot of C# with .net development, is that going to end soon?
Probably not but using C# effectively rules out releasing software which works on Linux or Mac. That could be a problem down the road which is why I really like me code to be platform independant without checking every component I want to use for portability. I actually develop Windows applications on Linux because it is easier/quicker. The last stage is compiling on Windows and doing final testing.
« Last Edit: October 29, 2016, 03:22:34 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: Kjelt


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf