In VB.NET, I need to write an array of bits to the serial port, in such a fashion that I can directly control the output signal. For example, I write 00110110 in VB and I need to get exactly that on output.

I have tried SerialPort.Writeline but it's not what I need.

Any help appreciated.


Have you tried SerialPort.Write method? You want to send that as a string or as a numeric value? Also, please post your code if possible so we can understand the problem better.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.