Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Port Communication in Binary

Hello,

I have a basic question about serial port communication in Labview 7.1. I am trying to write out a 16-bit word in binary to a PCB with a CPLD. All this is low-level communication. We are using sentinels, bit-stuffing, and a bit of basic communications handshaking, but we want to keep this as simple as possible. I have noticed that there is no Serial Read or Write that can accept binary values or simple bits. Since we are using Manchester Encoding and Decoding, I have had lots of trouble (and many days of head banging) using the ASCII structure that the Serial Read and Write VI's use. Can anyone please suggest a Serial Read/Write VI where you input (and output on the read) a binary array of bits instead of a string? If it doesn't exist, can anyone please suggest a way to individually write bits to the serial port, and get rid of the the "string" format.

Thanks,

A bloody tired engineer
0 Kudos
Message 1 of 2
(3,427 Views)
I found this vi in my archives that may or may not be of use to you. You are welcome to take it and use it as a starting point. I cannot recall when I used it, but I think you can input an ASCII string, and get binary out.
Hope this is of some help to you.

Dave
0 Kudos
Message 2 of 2
(3,425 Views)