Re: how can I send AT commands by the serial port when the VISA VI's don't work?
- From: rolfk <x@xxxxxxxx>
- Date: Wed, 12 Apr 2006 15:40:08 -0500 (CDT)
Jose Pablo wrote:
I am using an adapter of RS-232 to
Bluetooth, this adapter is setup using AT commands by the
serial port, if I use the hyperterminal of Windows I do not have
problems to do it, but when trying to do it with the VÍs of visa in
LABVIEW I do not have answer.Ok lets
start from beginning. YOu have verified that VISA is properly installed
by checking in the Measurement & Automation Explorer that your
serial port is properly recognized? In there you can also do some
communication similar to what you can do in Hyperterminal.
Now about serial communication in general. Every serial device needs to
know if a command it receives is finished or if it should wait for more
parameters/characters etc. This is done with a termination character
that has to be appended to every command. Most often this termination
character is a carriage return, a line feed or a combination of these
two.
Hyperterminal happens to send the carriage return and/or line feed
character that results from hitting the return key to finish your
command entry. LabVIEW sends out EXACTLY the characters you tell it to
send. So in LabVIEW to get a carriage return or line feed or both send
to the device you have to append them explicitedly to the string you
send out. And NO having LabVIEW append those characters automatically
is no good option since quite a lot of devices in test and measurement
do not work all the same and having LabVIEW do this would make
communication with those devices impossible.
You can either use the string constants from the string palette and
append them to the string with the Build String node or you can enter
those characters directly in a LabVIEW string control or constant by
first selecting the control or constant pop-up menu and in there
selecting '\' Codes Display. Then you can enter \r for carriage return
and \n for line feed.
Rolf KalbermatterMessage Edited by rolfk on 04-12-2006 10:15 PM
.
- Prev by Date: Re: LV7.0 to LV8.0
- Next by Date: Re: File drag and drop with Labview 7 and Mac OS X Tiger?
- Previous by thread: Re: LV7.0 to LV8.0
- Next by thread: Re: Linux labview -- I want to open emacs for one of my VIs
- Index(es):
Relevant Pages
|