Hello Everyone,
I am trying to open and read a USB port on my laptop to receive data from
my FPGA. I looked at the TCL manual. Here lies the problem
I am getting the error:
COULDN'T OPEN "COM2" NO SUCH FILE OR DIRECTORY
I don't understand why I am getting the "File or Directory" error!!
Can you please guide me?
Here is the code:
*****************************
proc open_com {} {
global com
global baudrate
global parity
global databits
global stopbits
set com [open COM2 r]
#set com [open com4: r+]
fconfigure $com -mode $baudrate,$parity,$databits,$stopbits\
-blocking 0 -translation auto -buffering none -buffersize 12
fileevent $com readable [list rd_chid $com]
}
open_com
Thanks,
Imagination > Knowledge
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help