I\'m trying to get accelerometer data from TI Chronos. I get the following error message when I run the code:
Traceback (most recent call last):
File \"C:\
The most common source of such errors is the port being already opened by some other application, or frequently by a previous (executed, but forgotten to kill) instance of your code.
To test this hypothesis, the easiest way is to run some other program that opens the same port (for example, HyperTerminal) when you're getting the error. If it fails also, try to find who's holding the port.
Also, Portmon is a useful tool in debugging similar problems with the serial port.