Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic I have no idea how to actually design GUI !?!? (Read 4590 times)
bizilux1
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2016
I have no idea how to actually design GUI !?!?
Oct 13th, 2016 at 7:06pm
Print Post  
hello everyone.

so the one reason that i even chosen to program in visual studio instead of just in arduino program is that obviously in VS you can drag buttons out etc etc...

AND let me tell you something. I have spent couple of hours searching for how to add bloody designer to my arduino project, but i just couldnt find a way.

I can design program just fine if i go to new project>Visual c#>WPF application, but can someone please for the love of god tell me how to design program if your project is arduino project Sad


thanks for help
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I have no idea how to actually design GUI !?!?
Reply #1 - Oct 14th, 2016 at 6:26pm
Print Post  
Hi, the arduino programs run on the arduino and not on your pc. So what you are trying to do is to create an arduino program that listens and sends information to a windows program which also uses serial communications.

So you need to add a Serial Communications control to your C# Wpf app which opens a COM port for the port the Arduino is connected to.

Then use the various Serial.begin, Serial.available, Serial.read and Serial.print methods in Arduino code to exchange information and commands with the wpf app waiting on the other end.
  
Back to top
IP Logged
 
bizilux1
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2016
Re: I have no idea how to actually design GUI !?!?
Reply #2 - Oct 14th, 2016 at 8:10pm
Print Post  
thank you for the reply... i watched tutorials like this yes, where you use serial communications. Ok then i was on the right track... but where does visual micro come into play with all this?

is it possible to start a new C# Wpf app project, and then have arduino files in there along side all WPF files where i would design GUI? If yes, how would i go about doing this correctly?
« Last Edit: Oct 14th, 2016 at 8:11pm by bizilux1 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I have no idea how to actually design GUI !?!?
Reply #3 - Oct 14th, 2016 at 8:17pm
Print Post  
visual micro allows you to create arduino programs and upload them to miro-controllers. also provides a serial monitor and debug.

You can read how to use visual micro in the First Steps section of the Documentation at the top of visualmicro.com

In Visual studio you will see you have a solution with one or more projects in it. So you can have a solution with a wtf project and an arduino project 

If you want to debug both wpf and arduino at the same time it will be easier to open visual studio twice and have one project open in each

  
Back to top
IP Logged
 
bizilux1
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2016
Re: I have no idea how to actually design GUI !?!?
Reply #4 - Oct 14th, 2016 at 8:47pm
Print Post  
yes i understand basic concept of visual micro, i did watch documentation and tutorial videos.

lets say that i want for example to do this simple thing to see temperature from arduino sensor.


I would need to have solution, and then two projects? one with WPF, essentially GUI and serial communication code, and another project would be arduino project, with arduino code?

i'll give it a go and try to do that
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I have no idea how to actually design GUI !?!?
Reply #5 - Oct 14th, 2016 at 9:05pm
Print Post  
Yes that sounds exactly right. It will be good for you to get an understanding of a serial protocol to remote control a micro-controller from a windows program.

After that you might want to read about the arduino firmata library which will save you arduino coding when working with simple requirements.
« Last Edit: Oct 14th, 2016 at 9:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint