LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to compare array size initial value and the changed value

Solved!
Go to solution

i jus took an array, and then took the array size function so that it shows me the no of elements present in it. so it ll be the initial array size value. if the elements of same array changes to other value, then i want to compare the initial array size value and the changed array size value. how to compare them............... plz help me out. looking for possible solution. thanks 🙂 🙂

Stara
0 Kudos
Message 1 of 6
(3,035 Views)

Hi stara,

store your array size value in a shiftregister and compare the stored value with the new array size. If the values are not equal, then you can react on it. Maybe you can also show your vi, to clarify what you try to do.

 

Mike

0 Kudos
Message 2 of 6
(3,028 Views)

hmmm i have added my vi here , actually i was trying to detect the pendrive whenever it is connected, so i hav used a function list folder, if we keep the path empty , v ll be getting no of drives is in our sys, so when we connect a pendrive the folder names array size ll increase and then we can compare both values, but here i took the initial drives value as constant 5 and then i have compared, bt i wanna check it without taking sum constant value

Stara
0 Kudos
Message 3 of 6
(3,025 Views)
Solution
Accepted by topic author stara

Hi stara,

the attached image shows ony solution.

Hope it helps.

 

Mike

0 Kudos
Message 4 of 6
(3,011 Views)

hey thanx mike 🙂 bt can u send me the actual labview vi. m nt able to see the image 😞

Stara
0 Kudos
Message 5 of 6
(3,003 Views)
Hey mike, thanx! Finally i've checkd out the image which u hav sent n really it worked out... Thanx a lottttt... 🙂 🙂
Stara
0 Kudos
Message 6 of 6
(2,986 Views)