opencv and arduino

hi i am new to arduino! i am doing a project whenever a sensor detect something the arduino will open the opencv program in visual studio ( win32 console application ) and take a picture .the problem is how to let the arduino open the the opencv program in visual studio and take a picture! i thought of serial communication but it cannot seem to work! your help is much appreciated!

http://arduino.cc/playground/Interfacing/GoBetwino http://mikmo.dk/gobetwino.html

i need the serial communication code that can send data from arduino to visual studio thx you !

i need the serial communication code that can send data from arduino to visual studio thx you !

How about some code to send serial data to Paint or Notepad? It makes as much sense to send serial data to Paint or Notepad as it does to send serial data to Visual Studio.

Visual Studio is an application development application. It does not read anything from the serial port.

It allows you to write application in a number of languages (C, C++, C#, etc.) that can read (some more easily than others) from the serial port.

All you need on the Arduino is Serial.print().

i try using gobetwino SPWEX Serial.println("#S|GAME|#"); but no response and it does not open visual studio[quote author=Coding Badly link=topic=102170.msg766536#msg766536 date=1334897105]

http://arduino.cc/playground/Interfacing/GoBetwino

[/quote]

but no response and it does not open visual studio

What are you trying to do with Visual Studio? Whatever it is, it is probably wrong.

johnxena: i try using gobetwino SPWEX Serial.println("#S|GAME|[]#"); but no response and it does not open visual studio

How is your GAME command defined in gobetwino?