03-24-2023 07:46 AM
Hi,
I have a 2D array with data from a sensor, the rows for example starts in 1000 but then starts to decrease cause there are no data. How can I have allways the same rows with for example 0 or NaN or something like that?
Here I have a 2D array and a counter in the first.
03-24-2023 08:04 AM
Hi A.,
@A.Daniel01 wrote:
I have a 2D array with data from a sensor, the rows for example starts in 1000 but then starts to decrease cause there are no data. How can I have allways the same rows with for example 0 or NaN or something like that?
Here I have a 2D array and a counter in the first.
Why do "rows start to decrease"?
Why do you want "always the same rows"?
That image doesn't help because of hidden wires…
03-24-2023 11:11 AM
You can use Initialize array with e.g. 1000 elements of NaN, -1 or similar and then use Replace Array to replace part of it.
03-24-2023 11:24 AM - edited 03-24-2023 11:54 AM
Can you attach a simplified version your code that simulates typical data?
03-24-2023 12:25 PM
@altenbach wrote:
- Whatever you are currently doing does not look reasonable.
Here's equivalent code (green) compared to yours(red). Both give the same result, but obviously it's not what you want.
Once we know what you actually want, we can modify accordingly.