08-22-2015 08:52 AM
If he's already stated he can't understand the QMH, it's probably not best to suggest it again without taking time to actually explain what's happening.
7zip can archive to a zip file. Don't be the guy uploading files that expect someone to download a specific archiving program when you don't have to be.
08-27-2015 06:34 PM
I thank you all for replays but I think my question is not well understood. I attached the VI, which read from text file and exctract a 2D array for each structure. Occasenaliy I need to write to file, which I can do with the IF structure. But It keep asking me where I write unitl I switch the IF structure manually. Is there someway to make it write ine time and switch off automaticlly unitl I ask it again by clicking writ ti file icon
08-27-2015 06:42 PM
Wire the inputs to the Write to Spreadsheet file function so that it goes to a shift register on that loop. After you've picked the file the first time, it will be stored in the shift register and be used in the next loop iteration.
08-27-2015 07:05 PM
O.K but it will ske me where to write the next iteration, which I do not want.
08-27-2015 07:18 PM
This is what Ravens Fan is suggesting. The initialization of the shift register with Empty Path constant will cause the Spreadsheet VI to ask for a file path the first time the OK button is True. On any subsequent iteration it will use the same path from the shift register. The False case has the path wired straight through.
(Ignore the red X. The Spreadsheet VI has changed in LV2015).
Lynn
08-27-2015 07:27 PM
Could you kindly attache the VI please
08-27-2015 07:32 PM
That should be very easy for you to create from the picture.
08-27-2015 07:36 PM
I just added the shift register to your VI. I moved the case structure down a little so the path wire could run straight across. You could modify your VI faster than I could save the modification a for a previous version and post it. Besides, I already disposed of the changes so I would have to do it over again.
You will learn more by doing it yourself.
Lynn
08-28-2015 02:22 AM
Husain,
Did you intend to post in this thread? You mention that your question was not well understood but you hadn't actually posted anything here before that unless i'm missing something and your question seems quite different from my initial post?
Parker
08-28-2015 10:23 AM
Again I think my point is not clear. Your VI will use the same path to writ the results. I wint the program to write the result one time on request and stop writing and asking for file to write to.