09-08-2024 11:10 PM
Yes, data will be coming from an instrument. Lets take an example data is coming from USRP and all the frequencies above threshold will be displayed in the Array A indicator and you are right data reservation will be correct terminology. I want that all the elements of Array A remain reserved in Array B. If I use only outer while loop as shown in pic below:
Data starts continuously writing in Array B as shown in pic below:
09-08-2024 11:36 PM
The word "continuously" is very vague. You simply need to ensure that the loop only spins whenever new data arrives.
Currently, it spins millions of times per second creating duplicates and make you run out of memory quickly.
09-08-2024 11:43 PM
Yes, You are right. It is spinning millions of times per second creating duplicates.
09-09-2024 12:55 AM
Hi qureshi,
@qureshi000 wrote:
Yes, You are right. It is spinning millions of times per second creating duplicates.
Until now you only defined which data should be appended to array B.
Now you need to define when (at which time) those data should be appended…