09-02-2015 02:15 AM
Ciao a tutti,
ho bisogno di sapere se la dimensione di un array è incrementata o decrementata.
Ho provato a passare il valore della dimensione dell'array in uno shift register e fare il paragone tra il primo e il secondo elemento ma non sembra funzionare.
Il problema sembra semplice ma mi sono bloccato.
possibili soluzioni?
Grazie in anticipo
09-02-2015 02:47 AM - edited 09-02-2015 02:47 AM
Please attach our VI. It is not clear what you are comparing.
Typically you want to compare the current to the previous array size output. Easiest is a feedback node, sing function and a case structure with cases for -1, 0, 1. Or just add 1 and use index array. (picture).
09-02-2015 03:15 AM
hi,
im doing exactly how you show in your pic and its not working, what im i doing wrong?
09-02-2015 03:22 AM
probably its not working because the feedback node is supposed to work on loop iterations.
the size of my array is not being modified by the subsequent loop iteration but is being changed by user input ( selecting or deselecting items in the list box)
09-02-2015 03:31 AM
yes that was the problem, so now i need to sort out that and it will work.
Thank you very much for you time.