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 .ino and C# (Read 2921 times)
Fernanda Rincon
Newbies
*
Offline


Posts: 1
Joined: Jun 20th, 2016
.ino and C#
Jun 20th, 2016 at 7:44pm
Print Post  
Hi!
i'm new in visualmicro, I have created a .ino project but I wanna use its variables in a c# project. I know that the .ino project is like a c++ project. So, I can connect c# with another c#, but not a C# with a .ino (C++)
Can you help me? Please
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: .ino and C#
Reply #1 - Jun 20th, 2016 at 10:22pm
Print Post  
Hi,

Two C# apps run on the same computer can speak with each other easily.

The problem is that Arduino is not running on the computer it is probably connected by usb cable so can send/receive serial messages.

You C# app can connect to a System.IO.Ports new SerialPort("COM4") etc. or if using windows 10 you can use the Microsoft C# IoT system.

On the Arduino you can use 

Serial.geing(115200);
Serial.println(myVar);

You will find many examples on the internet. Sorry can't give more help
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint