Accessing com ports greater than 9 in TCL on Windows XP RRS feed

  • Question

  • I'm using a TCL script (on Windows XP) to access com ports which selects a port from a serial server. When I access try to access COM10, it doesn't work.

    set serialDevice [open COMx r+] 

    will open the com ports through 9 but will not work for 2 digit com ports. According to the all documentation I have read,

    set serialDevice [open "//./COM10" r+] 

    should work as an alternate method and for 2 digit com ports. This does not work for any com ports. Any help?

    Monday, May 18, 2009 7:44 PM