07-18-2019 05:56 AM
@ wiebe
The DUT (device under test) sends data continuously without any termination character till it is stopped.
Also, the bd3 version works fine.
07-18-2019 06:21 AM - edited 07-18-2019 06:22 AM
Hi jpparmar,
The DUT (device under test) sends data continuously without any termination character till it is stopped.
Then you need to DISABLE the TermChar at the VISASerialConfig VI!
Did you read the LabVIEW help until now as suggested here?
07-18-2019 06:24 AM
@jpparmar wrote:
@ wiebe
The DUT (device under test) sends data continuously without any termination character till it is stopped.
Unless one of those binary values accidentally happens to be a termination character. If you have flattened floats in the data (or strings!), \r's or \n's can\will occur in the binary data.
We're just saying it's a bad idea. It might not be related to the problem. Suit yourself, just be warned.
What is the baud rate, and why did you mask it? If the baud rate is very high, I can imagine the serial buffer is full before you read it again. Never been in that situation, but I guess it could happen.
07-18-2019 07:31 AM
@jpparmar wrote:
bd3 works fine. it receives 100 bytes and stops.
while bd1 works but byte locations are shifted.
Does your DUT have a data frame that is uses? For binary data, that typically consists of a start character(s), a message type and/or data length, data, and a checksum/CRC. If you are getting shifted byte locations, it is typically due to you not being synced up to the data frame. If you have the frame definition, we can help a lot more.
And, as has already been said, you need to disable your termination character (Boolean input on the top of the VISA Configure Serial Port). That is only useful for ASCII protocols.
07-19-2019 05:58 AM
@GerdW
Working fine now after forcing the TermChar to False.
Thank you.
07-19-2019 06:04 AM
@jpparmar wrote:
@GerdW
Working fine now after forcing the TermChar to False.
Thank you.
Why could have known...
07-19-2019 06:05 AM
wiebe, GerdW, crossrulz
thanks guys for the help.