Click here to Skip to main content
15,894,720 members

Comments by SandiegoSSD (Top 36 by date)

SandiegoSSD 17-Jan-13 12:30pm View    
It's all in one single thread. After sending the "Go" command to the motor and letting it keep running until told otherwise, a timer starts ticking and every tick event checks whether the motor has turned desired number of revolutions(this is done by sending a query command to the motor encoder unit). So when the motor is manually shut down, the query command ( seriPort1.Write("W" & vbCr)
strRead1 += seriPort1.ReadLine() ) can never finish and freezes the form
SandiegoSSD 16-Jan-13 22:03pm View    
yes...run time. part of my brain slipped again
SandiegoSSD 7-Jan-13 17:15pm View    
I used int (which it seems like I should for ADCW)
and itoa()

works now.
Receive 128 for 0.65V on the serial port
SandiegoSSD 27-Dec-12 17:38pm View    
Thank you for the answer. Stopwatch is working for me. My timescale's pretty big. I just tested with four relays and it takes about 2 seconds to cycle through them with my code. Run it 10 times, each time is around several tens of milliseconds different from each other(I'm interfacing with mechanical arms and relays so it's not digital precise)
SandiegoSSD 27-Dec-12 16:04pm View    
well.. a question not very well thought of I guess.
Now that I typed it out I think I should just use another timer