05-16-2024 02:10 AM
@fabrice34259 wrote:
Hello
I try to delete rows where there is NaN in an array.
But the result is wrong.
Can you help me ?
Thanks
It is probably better to start new topic rather to append to very old one (and solved) discussion.
Anyway, when you wrote "the result is wrong", then you should explain three things: what you already done, what you expected to see, and what you saw instead.
In your VI its hard coded for column with index 3:
So, it will obviously not work if you have NaN in other column.
If you need more generic solution, then better to do something like this:
05-16-2024 02:30 AM
thanks for your answer, but
when input condition is thrue then the result is wrong , there is rows with "NaN" value
when input condition is false , result is correct, all raws wich contain 'NaN' disapere
best regards
05-16-2024 03:03 AM - edited 05-16-2024 03:25 AM
Hi Fabrice,
Have you even tried the solution sent by Andrey ?
To give you a hint : your VI doesn't work well when the Array contain two (or more) consecutives lines with NaN at column 3. 😉
It comes from "Delete From Array" and "Index Array" by Iteration terminal.
05-16-2024 03:22 AM
@fabrice34259 wrote:
thanks for your answer, but
when input condition is thrue then the result is wrong , there is rows with "NaN" value
when input condition is false , result is correct, all raws wich contain 'NaN' disapere
best regards
Snippet above attached as VI and downgraded to LV2018, please try it.
05-17-2024 02:42 AM
Hello
I have tried solution sent by Andrey, its works very well.
Thanks