01-21-2009 05:47 PM
I have "invisible code" which I don't want and can't delete cuz I can't see it.
When I execute a VI, I am prompted for a filename to write to. Surprises me since there's no code in the VI (that I know of) that would ask that. So I turn on highlight execution and single stepping and re-run. At a certain point, a "blank square" on my VI is highlighted, and it's an "invisible" write_to_spreadsheet function, which, of course, asks me what file to write to, since the file name input is unwired. It's in a larger while loop. When I abort execution and try to delete the code, I can't click on it to delete it. Using the tool to drag out a dotted rectangle surrounding the area where the code was highlighted doesn't "catch" anything. Moving the while loop to the side or to the back doesn't help. I think this code "got there" due some copying and pasting operations when I clicked in the wrong window. The boolean true which was wired to the "transpose" input is also invisible, but the data value "T" appears next to it when the program runs with execution highlighting and single stepping is active. Suggestions? Thank you.
01-21-2009 06:02 PM
Without seeing the code I'm guessing you have something placed over the top of this subvi. From its location locate the first inner border of a structure you come to. Drag that structure far enough out of the way so that the subvi appears. Or you might have a dialog box over the top of it whose border is invisable and whose background color is the same as the normal background.
Just guessing.
01-22-2009 01:54 AM
WCR wrote:I have "invisible code" which I don't want and can't delete cuz I can't see it.
When I execute a VI, I am prompted for a filename to write to. Surprises me since there's no code in the VI (that I know of) that would ask that. So I turn on highlight execution and single stepping and re-run. At a certain point, a "blank square" on my VI is highlighted, and it's an "invisible" write_to_spreadsheet function, which, of course, asks me what file to write to, since the file name input is unwired. It's in a larger while loop. When I abort execution and try to delete the code, I can't click on it to delete it. Using the tool to drag out a dotted rectangle surrounding the area where the code was highlighted doesn't "catch" anything. Moving the while loop to the side or to the back doesn't help. I think this code "got there" due some copying and pasting operations when I clicked in the wrong window. The boolean true which was wired to the "transpose" input is also invisible, but the data value "T" appears next to it when the program runs with execution highlighting and single stepping is active. Suggestions? Thank you.
Go to View->Error List. In there check the check box Show Warnings. Now go to the VI where you have this hidden object and press on the yellow triangle to the left of the run button. The Error List should show you some warnings and one of them should be about a hidden object. Click on that warning and now the object is selected and you can use the cursor keys to move it left, right, up, down until it moves from under whatever is obscuring it to investigate what it does. It might be connected to something and actually do something important besides openeing the dialog despite you claiming it not being necessary.
Rolf Kalbermatter