LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

verificare se la dimensione di un array è incrementata o decrementata

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

0 Kudos
Message 1 of 5
(2,889 Views)

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).

 

 

Message 2 of 5
(2,872 Views)

hi,

im doing exactly how you show in your pic and its not working, what im i doing wrong?

 

 

0 Kudos
Message 3 of 5
(2,860 Views)

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)

0 Kudos
Message 4 of 5
(2,856 Views)

yes that was the problem, so now i need to sort out that and it will work.

 

Thank you very much for you time.

 

 

0 Kudos
Message 5 of 5
(2,853 Views)