From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating with Serial Device

Greetings all,
I have a problem with a serial device that I am trying to comunicate with. I have been using hyperterminal to communicate with a serial connected On-Board Diagnostics circuit. The circuit is responding normally using Hyperterminal.
I have tried to implement the "advanced serial read and write" sample code to talk to the device in labview but I recieve the command that I originally sent back as a response. This should not be the case, and I dont know how to rectify it.
Can anybody shed any light on this?
Thanks in advance
0 Kudos
Message 1 of 3
(3,120 Views)

First: If it can be done in hyperterminal it can be done in LV using VISA...

common pittfalls:

termination charater: hyperterminal sends a CR/LF when you hit the return key. In LV this needs to be appended (a lot of posts handle this in this forum)

you send the characters to fast to you board: not only a question of baudrate (I assume the settings are equal on both sides). µC sometimes don't have a (big) input buffer. in hyperterm every charater is send when you type it (with your finger delay)

  

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 3
(3,104 Views)

Hi,

The knowledge base article you would be looking for can be found here:

http://digital.ni.com/public.nsf/websearch/6C6322FF8F9B790486256D6B0069D281?OpenDocument

I hope this helps!

Kurt
NIUK Applications Engineer

0 Kudos
Message 3 of 3
(3,090 Views)