Subject: [Mac]Bug in serial reading binary data
In-Reply-To: <0160AA0E-D5D3-4361-BCF3-E7351E9106AB@xs4all.nl>
References: <0160AA0E-D5D3-4361-BCF3-E7351E9106AB@xs4all.nl>
Message-ID: <1D4B1405-0E61-4A52-82FB-574E14735FA9@magnet.fsu.edu>
Wow. That is weird.
What USB-Serial adaptor are you using? What driver version. That could be the problem before it even gets to VISA. I think I can whip up a C program that will show # of bytes at serial port direct from the driver.
-Scott
On Oct 31, 2012, at 8:36 AM, PaulRijk <lv_paulrijk at xs4all.nl> wrote:
> When reading binary data the property node "Serial Settings:Number of Bytes at Serial Port" shows a wrong number of bytes when one or more bytes has the value of xFF. For each byte on the bus containing xFF the #bytes is incremented by one.
> So when the bytes 10,20,30,255,112 are sent to the computer, LabVIEW's #bytes shows 6 bytes. So reading 6 bytes will time-out after which 5 bytes are received with the values as sent. When the bytes 10,20,30,254,112 were sent, everything is OK.
> It should be nice if there is somebody able to try this using a different language than LabVIEW.
> This was done on MacBookPro MacOsX10.7.5 and VISA5.2.0 LabVIEW2009SP1/2012
> If this is reproducible it is a bug in my opinion.
> Regards,
> Paul
> _______________________________________________
> Info-labview mailing list
> Info-labview at lists.infolabview.org
> http://lists.infolabview.org/listinfo.cgi/info-labview-infolabview.org
>