Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,

is it possible to start stopwatch after recieving signal arduino hardware?

now im starting stopwatch with button (visual basic 2010). i would like to start stopwatch automatically after recieving signal from arduino hardware.

i want to start stopwatch after recieving numbers 01 and 10

Thank you
Posted
Updated 27-Feb-15 7:18am
v2

1 solution

Yes.

In windows, the serial port is buffered so there will be a delay before the data is passed to your application.

It is also possible to designate an event character on the port. When the serial port receives a byte matching the event character - it stops waiting and returns any buffered data to the application.

A typical event character is line feed eg. '\n'.

If the Arduino is programmed to send messages terminated with a line feed - the data will appear promptly in your application.

https://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900