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 Question about visual micro, visual C# and visual C++ (Read 3111 times)
solar
Newbies
*
Offline


Posts: 2
Joined: Feb 4th, 2016
Question about visual micro, visual C# and visual C++
Feb 4th, 2016 at 9:24am
Print Post  
Hi guys!
I am a beginner in Arduino and visual studio. I meet some problems.

I installed the visual micro plugins on my Visual studio 2013. I would like to create GUI using visual C# to control the arduino. So the are there any other way to do so other than using the serial communication? 

Initially I think after I instiall this plugin I can add some arduino codes to the Visual C# project directly but it turn out to be a mistake.For example When  I type " digitalWrite" but visual C# could not figure out. Is it impossible to do so? Actually similar problem happened when I try to do so on the CPP file. 

So are there any other easier way to use the arduino code directly on the visual studio project and what is the most proper way to form a GUI to control a arduino? Thank you ery much! Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Question about visual micro, visual C# and visual C++
Reply #1 - Feb 4th, 2016 at 7:49pm
Print Post  
Hi,

The most common solution to give you direct access to pins etc. via C# is to load the Firmata library into the Arduino.

Firmata provides simple access via Serial in a more friendly way.

Open the Firmata example and upload to the Arduino. Then you can use C# to send serial requests to the Arduino.

Might also be useful to take a look at Windows IoT for Arduino C# examples which uses the same system.
« Last Edit: Feb 4th, 2016 at 7:50pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
solar
Newbies
*
Offline


Posts: 2
Joined: Feb 4th, 2016
Re: Question about visual micro, visual C# and visual C++
Reply #2 - Feb 12th, 2016 at 5:48am
Print Post  
Wow! thanks for helping!I will try that! Thank you very much! Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint