Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

send binary numbers from PC via RS232

Hello!
I have to create a program which will send out binary numbers 14 bits long. It is like there are 12 channels and each example from channel is converted to 14 bit binary number. I`m new to LabView, and don`t know much about it. I heve created programs to send and receive character strings (SerialPortWrite.vi, etc.), I understand how to convert strings to numbers and vice versa. I don`t understand is it possible to make LabView send out binary bits, and how is handshaking working...I want to be sure that if I send out 24Kb data then at the other end recieving PC with LabView will recive it correctly !! In SerialInt.vi is cluster of controls (Flow control), but how do they work? I don`t expect full answer from you, but a refer
ence to web link or useful tip would be very nice.

Tõnu Leemet, biomedical engineering
university of Tartu, Estonia
0 Kudos
Message 1 of 2
(3,327 Views)
Serial data is typically 5-9 bits long with most com port interfaces supporting 5-8 data bits. This is in addition to a start bit and stop bit, plus an optional parity bit (for 5-8 data bits).

Since it appears that you are sending data between two PC's, it is most likely that you are looking to encode the 14 bit data into a data stream that you can decode on the other side. In this case, I recommend converting the 14 bit data to 2 7-bit words and send the data at 7 data bits. On the receiving PC you would then combine the two words to recreate your 14 bit data.
0 Kudos
Message 2 of 2
(3,327 Views)