LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-232 transmission

Hi, I would like to know more on how the RS-232 functions..
for eg,
if i want to send a digit '2',will the program interpret the '2' and convert it into binary according to the ASCII chart(which is HEX 32) and send it through the COM port? Which means in this case the computer will send out a binary of 00110010(HEX 32) out of COM port.
-------------------------OR----------------------------
I need to manually configure in the program that '2' is 00110010
. And ask the program to send '00110010' instead of '2' . (something like a Look-up table..)
0 Kudos
Message 1 of 3
(3,123 Views)
when you use the rs232 driver you send ASCII mean you send a string
think on it like you talk with somebody with words ( strings ) you don't care if it do over the air or over telephone cable or over the internet(VoIP)
hope its help you
0 Kudos
Message 2 of 3
(3,123 Views)
hi,

The first option is the correct one. You don't have to worry about
how it is done--just write to the port he string that you want to
send.

Rafi


untitled wrote in message news:<506500000008000000BCB50000-1068850981000@exchange.ni.com>...
> Hi, I would like to know more on how the RS-232 functions..
> for eg,
> if i want to send a digit '2',will the program interpret the '2' and
> convert it into binary according to the ASCII chart(which is HEX 32)
> and send it through the COM port? Which means in this case the
> computer will send out a binary of 00110010(HEX 32) out of COM port.
> -------------------------OR----------------------------
> I need to manually configure in the program that '2' is 00110010
> And ask the program to send '00110010' ins
tead of '2' . (something
> like a Look-up table..)
0 Kudos
Message 3 of 3
(3,123 Views)