LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hi, I'm having a problem adding arrays.

I am using the double-click property, and after each double click I want to add up each new array which has just been opened from each file. How can I add each new array to the previous one after every double-click??
0 Kudos
Message 1 of 4
(2,723 Views)
Well, the doubleclick property of listbox returns either -1 (of there was no doubleclick) or the index of the item clicked. You can use this value to select either a case in a case structure that does nothing, or one that processes the file (from which I assume you are getting the data for the array).

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,723 Views)
Hi Mike
thanks for your reply. I have the doubleclick property working but I want to know how to add each file I double click on into an array and add all these files up as I go along. I will attach my program so far if it can be of any use.....I'm really stuck on this one!!!
0 Kudos
Message 3 of 4
(2,723 Views)
Your confusing how and when to use shift registers and locals...The logic should be as follows;

If new file has been double-clicked read the array from it and add it with the results from the previous addition. Wire the result to a shift register and use the left terminal of the shift register to get the previous result used in the addition...

Attached is a picture showing this.

You may also want to put the save case outside the double-clicked case so that you can save whenever you want and not just the next time you double-click(?)..
0 Kudos
Message 4 of 4
(2,723 Views)