Hi,
I want to use Circula Buffer.
Question 1
I want to find some value (LookForValue) and put the pointer in a certain position and take the next 3 bytes.
Question 2
Sometimes FlushBuffer doesn't seem to be running.
Question 3
Is there a way to loop the contents of a FlushBuffer into a different buffer without looping?
Thank you for your help in asking questions.
Circula Buffer Question
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Circula Buffer Question
Hello,
In answer to your questions.
1) If you call Look for value with the parameters Remove Content = 1 and Reset Find = 0 then if the return value is true then the value has been found and the next value you read from the buffer will contain the data you want.
2) I'm not aware of any issues with the flush buffer function. It doesn't scrub the buffer contents but it resets the read/write pointers which effectively does the same job.
3) Not sure what you're after here. Yes you can copy one buffer to another a value at a time the easiest way is to use a loop to do it.
In answer to your questions.
1) If you call Look for value with the parameters Remove Content = 1 and Reset Find = 0 then if the return value is true then the value has been found and the next value you read from the buffer will contain the data you want.
2) I'm not aware of any issues with the flush buffer function. It doesn't scrub the buffer contents but it resets the read/write pointers which effectively does the same job.
3) Not sure what you're after here. Yes you can copy one buffer to another a value at a time the easiest way is to use a loop to do it.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel