03-21-2005 06:42 AM
03-21-2005 06:43 AM
03-21-2005 07:20 AM
03-21-2005 07:44 AM
03-21-2005 12:16 PM
Try to read in a loop (by chunks of 6 bytes) all the bytes coming out of the serial link, and search for the FFFFFFFFFFFF pattern. Then concatenate the possible bytes left after the pattern with the following bytes, to get your 240 x 3 x 2 string.
Fonsi wrote:...The idea is vi, wait until bytes sinc. and start with the correct position of readigns.
The pic send the same bytes each 240 readings of 3 sensors.
03-21-2005 04:59 PM
03-21-2005 06:01 PM
@Fonsi wrote:
The idea is only wait to the first FFFF,FFFF,FFFF. And later get all the readings since will be save well, the rest of bytes sinc. i will delete with easy for loop...
I did some changes, and it runs but sometimes fail, since the sync sometimes is with value in the final byte, which is very strange, since pic send this value fixed, maybe is noise, the i.e FFFF,FFFF,FF56.
Other thing is i need the data directly to draw in the any graph, i must to read 6bytes and draw it, and this vi read values until you close the loop...
03-22-2005 06:32 AM
03-22-2005 06:33 AM
03-23-2005 11:09 AM