04-19-2010 09:46 AM
Vista does not have HyperTerm? I wonder if MS goofed that one with windoze 7... Yikes!! That's a basic application for any OS.
As Dennis mentionned, you should use a Terminal Emulator application to debug the com port setting and cable. Also to "try out" the commands. I would do that before using MAX, although MAX should give you the same thing once you know the cable and settings are okay.
What is connected at the other end of the serial cable?
04-19-2010 12:22 PM
The computer is connected by USB to a "hub" that consists of 4 rs232 ports labeled 1-4. The rs232 go to 3 separate hardwares.
When I open HyperTerminal and select COM 5. I use the command *idn? it returns ORLABS SC10 Version 1.0. I have also been able to send commands to it. Great! I want to write functions to press a button instead of a string of commands. The thought was to have an event structure when a button is pressed it outputs the command to the com port. Will this work?
04-19-2010 12:32 PM
It should work.
You will have to set the com port to the same ones as you are using in HyperTerm. I think there is a way to redefine the COM port numbering. It is in the properties of the device driver... I think... I'll have to loo it up. Did this a couple of years ago.
04-19-2010 12:35 PM

04-19-2010 12:47 PM - edited 04-19-2010 12:49 PM
04-19-2010 03:16 PM - edited 04-19-2010 03:17 PM
Basically, don't plug it in to another usb port. I'm not trying to be funny, but unless the port has some serialization in it's USB chip set Windows will assign it a different com number when it is plugged into a different usb. I ran into this last fall with a different brand USB - Serial adapter, Windows was even giving it new port numbers when the usb bus "glitched". I ended up replacing my USB - RS485 adapters with National Instruments ones, which get recorded in the registry with a specific port assignment allocated to their specific serial number.
I have a current thread that is about a related issue, where the devices we are testing have a built in usb to serial adapter, and what we see with them, because they have serial numbers for identification purposes, is that as a new unit is plugged into be tested Windows issues it a unique port number. Unfortunately there are only 255 allowable port numbers, and we shall pretty quickly hit that number as we manufacture new units. Not sure what happens then.

04-19-2010 03:45 PM
ADrexelDragon wrote:
com ports changed form 5,6,7 to 13,14,15 then again to 17,18,19. Why? How do I prevent this?
- sigh - Happens to all of us.
I'm happy to stay away from windoze... But that's not always the case...
The USB-> Serial Adapter is nor connected to this PC, so I'm kinda picking my brains..
Let's see...
(XP) Control Panel > System > Hardware > Device Manager > USB Controllers OR Ports...
Look for the driver for the hub you are using. Right-click and select properties.
You should be able to find a Tab that lets you select the COM port number that matches the physical port number on the hub.
At least that what I recall on the unit I have..
04-19-2010 05:52 PM
04-20-2010 07:46 AM

04-20-2010 11:36 AM
What I was saying is that I was successful at renumbering (bad word, I know) COM 6, 7, 8 & 9 to COM 3, 4, 5 & 6. I had to do the renaming of the ports for each of the port, where the trick was to rename port 6 to some higher available number first. I also made sure there wer no other ports using the name COM3. And when the driver complained about using the new name, I ignored the warning. It worked.
I have a student using it at the moment and I should be getting the unit back at the end of the month. I'm sure I will have tochange the names / number again.
I'll fix the above steps if I missed something along the way.