LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

choose file to write

I have a large program that always prompts me to "choose file to write" when I have already chosen the file before the program began executing. I have attached a watered down version of the program. However this program does not prompt me to "choose file to write" . Why does the much bigger program prompts me? I see basically they are the same. I cannot attach the bigger program because of it's size.
0 Kudos
Message 1 of 7
(4,189 Views)
Have you watched the execution of your program or even better probed the path inputs to your write sub vis. My first impression is that something "unexpected" is happening to the path input. Most often these dialogs occur because the path input is not valid.

--Russ
Message 2 of 7
(4,181 Views)
I suspect that choose file to write command is hidden somewhere in the program. Highlight does not show it. Is it possible to see some hidden code in labVIEW? If so, how?
0 Kudos
Message 3 of 7
(4,153 Views)
Try wiring a true constant to the "append to file" input on the Write to Spreadsheet file vi.
Message 4 of 7
(4,148 Views)

If you could highlight execution in the program where it works and find the part of the program that is causing the pop-up that would be extreamly helpful. That way you can see any potential differences in constants etc, that might be causing the issue. If you do find the difference and it is still not working, try deleting everything away from the larger program except what is causing pop up and see if it still works. If it does just save that VI under a different name and post the working and non-working VIs for us to look at. Thanks

Tyler H.

National Instruments

Message 5 of 7
(4,138 Views)
You will tend to get this pop up if the path you wired into path input for the Write.vi is not valid. I still say you must confirm this first.

First I would verify that in both versions of your program that write to spreadsheet.vi are wired identically. Like say in one you have the path wired into the "path" input and in the other you used "start path" that could explain things.

Second, I would place a path indicator on the input of the of the write.vi. Do this for both versions (the pop up and non pop up) of your program and then compare them. If something isn't obvious as an added measure create a new vi and take both indicators and place them on the front panel of the new vi. Change them to controls and wire them into "Equal?" for comparison.

hope this helps

--Russ




Message 6 of 7
(4,133 Views)
I have found the source of the problem. There is a hidden write to spreadsheet vi. It is hidden behind some frames. I found it by accident and deleted it. The "pop up" problem has been solved. Is there a way to find and delete those hidden unused code?
0 Kudos
Message 7 of 7
(4,109 Views)