LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Command Sent with XP machine different than sent with WIN2000 machine

I need to communicate with a device by sending a Hexadecimal command (AA00 0000).  I am using Portnom to watch what is being sent to the serial port.  When I run my VI on a Windows 2000 computer my command is being wrote to the port and the instrument sends back the requested information.  However when I run the same VI on a WindowsXP machine the lenght is the same (4 bytes) but four dots are being displayed as what is being sent and there is no response from the instrument.  I am running LabView 7.1 on both machines.  Any help would be great.
0 Kudos
Message 1 of 9
(2,700 Views)
Have you intialized the port to a particular baud rate in the vi?  I assume you are using Com 1? 

Greycat
0 Kudos
Message 2 of 9
(2,691 Views)
Yes I have. 
0 Kudos
Message 3 of 9
(2,674 Views)
Can you verify the baud rate at which it is actually being sent?  Does Portmon do that?  Sounds like a baud rate issue (that is my first instinct), but if you can verify the actual baud rate then you will know that it is not that problem.  Anyway you could have a look at the actual bits being sent?  Just some ideas ...

Greycat
0 Kudos
Message 4 of 9
(2,673 Views)
Portmon data should show all of the port setting info and the data transfer. Start the portmon capture before you open each comm programs. Save the data for both comm programs. There may be some portmon options that have to be changed.
0 Kudos
Message 5 of 9
(2,661 Views)
Yes,  I have verified with PortMon that the comm settings are the same on both machines.
0 Kudos
Message 6 of 9
(2,650 Views)
Are you using the same physical instrument and cable for both machines? (Instrument settings or cable wiring possibly different?)
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 7 of 9
(2,649 Views)
I am fortunate to have both machines sitting side by side, so I simply move the cable from one machine to the other.  The only difference is the XP machine is a laptop.
0 Kudos
Message 8 of 9
(2,639 Views)
Same versions of NI software, especially VISA drivers and MAX?
Is it a pure serial port on the laptop or a USB to serial converter?
What is MAX showing for the name of the COM ports, sometimes a laptops port is not always COM1
Any errors being flagged within the error piping in your vi?
Have you tried to use Windows Hyperterminal on both PC's, this should eliminate any potential differences in NI software and configurations.
Proper grounding of the instrument ?
 
A lot of questions, I know.happy smiley

Message Edited by AnalogKid2DigitalMan on 02-22-2006 11:46 AM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 9 of 9
(2,635 Views)