Has anyone any experience with the .NET function "serialPort.Read (buffer, offset, count);" Under VEE 9.3? The function runs error-free.
The function returns me only the "count". The function "serialPort.ReadByte ()" can read data and works well!
Apparently "buffer" is not filled!
Can someone help me?
Under C # the functions work very well!
I haven't played with this before - as I recall doing a little research brings up a whole load of issues with the .NET control, so I've always stuck with the VEE built-in version - but I thought I'd have a quick look anyway.
I've had the same results as you. ReadLine() works okay but for the Read() method you used I get nothing in the buffer either. However I tried passing in System.Char[]: that appears to only set the first element on the first call to Read ( and the read count returned is 1 ) but subsequent calls do appear to retrieve understandable data with read count of 10.
I was going to add my example but this forum, the support for which seems to be going from disinterested to defunct, won't allow me to add it.
Mike Watts