Subject: [Mac]Bug in serial reading binary data
In-Reply-To: <1D4B1405-0E61-4A52-82FB-574E14735FA9@magnet.fsu.edu>
References: <0160AA0E-D5D3-4361-BCF3-E7351E9106AB@xs4all.nl>
<1D4B1405-0E61-4A52-82FB-574E14735FA9@magnet.fsu.edu>
Message-ID: <AC72D9FC-1881-4AF0-ABF8-AE422335C84E@xs4all.nl>
I'm using an USB-COMi-M usb-serial adapter with the driver FTDIUSBSerialDriver_v2_2_18.
BUT, when this is UNinstalled the problem remains.
Regards,
Paul
________________________
On 31 okt. 2012, at 13:57, Scott Hannahs wrote:
> 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
>>
>
> _______________________________________________
> Info-labview mailing list
> Info-labview at lists.infolabview.org
> http://lists.infolabview.org/listinfo.cgi/info-labview-infolabview.org