04-02-2010 08:10 PM
04-02-2010 08:37 PM
I'm sorry about that. Try this one.
It is one of the things I don't like about the Save for Previous Version. Once you do it once, rather than overwriting the file when you do it again, it starts burying the file further in a subFolder, and you wind up grabbing the older revision rather than the latest.
04-03-2010 12:26 PM
Thank you very much, it seems to work exactly as I need. One other question, I believe I figured out how to complete what I am going for by adding a sequence that asks the user to pick the row number of the item they want to remove, then using index array pick the value from the array that has the row numbers of the current item array. Then remove that row from the current item array.
One problem that I am having is that this is part of a larger VI with more operations, and all of it is encompassed by a while loop. So I tried to modify what you sent me and ran it with the lightbulb on and I see that what it seems to be doing is finding the items then writing the array afterward. So in full speed run it will not output anything.
All I did to modify was to put a stacked sequence stucture around what you sent me that when it is done searching it goes to the next sequence and allows the user to pick the row number and so forth as I explained above.
So what is doing is staying in the while loop of the portion you sent me and just continues to search and overwrite I just need it to search the array one time, display the output then move on to the next sequence. Any assistance from you would be greatly appreciated.
04-03-2010 01:21 PM
The while loop is the one that was there originally and represents the larger overall while loop of your application.
You probably want to set up and event driven architecture where the this portion of the code goes into the search button. You'll have another event case that is fired by way of a "delete" button and will act on you master array based on which row of the "WhichtoRemove" array is selected. You'll also want an event for the stop button. Perhaps an event for a button that adds items to the master array.
Make sure you wire the arrays through every case of the event structure so a shift register doesn't get its data replaced with default data.
04-03-2010 04:21 PM
When the VI you made runs, it runs continuously. So what part makes it not continuously write to the output arrays i.e. items to remove and the indices array.
And with the event driven architecture, does that mean I replace the while loop in yours with the event structure with the shift registers where they were located in on the while loop. Then use the different buttons like remove and delete inside in the different events.
I'm sorry, I am terrible at Labview as I have quickly found out. I have build a VI that allows the user to input items among other things, but this is the last portion that I need to do and I have myself all stressed out because I am having problems wrapping my head around this part.
04-03-2010 05:24 PM
Here is that example modified with an event structure. Right now two events, the remove item button which right now actually just searches for the items that could be removed, and the stop button.