07-19-2022 06:25 AM
So i have a sub VI inside a main VI. I have doing programming like this for a long time. But recently I have this new problem that whenever the subVI window is open while running the main VI, then this message comes up and program stops. So every time I make a change in the subVI program, its like I have to do this the first time I run. Second time onwards it works normally. Why is this happening and how can I correct it. Thank you
Govind
07-19-2022 06:29 AM
Hi govindsankar,
@govindsankar wrote:
So i have a sub VI inside a main VI. I have doing programming like this for a long time. But recently I have this new problem that whenever the subVI window is open while running the main VI, then this message comes up and program stops. So every time I make a change in the subVI program, its like I have to do this the first time I run. Second time onwards it works normally.
Why do you change the VI "on disk" when you already opened it?
Why do you already open the VI before you want to place it in a subpanel?
And why don't you provide some examle code to demonstrate this behaviour?
07-19-2022 06:31 AM
Stop moving things on disk without using the files view in the project explorer. Your lvproj has a conflict.
07-19-2022 06:52 AM
Why do you change the VI "on disk" when you already opened it?
i dont understand this question. What i do is I have already placed the subVI in the mainVI. Now I make some changes to subVI, then save it, close the subVI and then run the mainVI and when the part where subVI is opened comes up then the message pops us.
Why do you already open the VI before you want to place it in a subpanel?
I dont understand this question also.
07-19-2022 06:53 AM
Stop moving things on disk without using the files view in the project explorer. Your lvproj has a conflict.
Can you clarify
07-19-2022 08:07 AM - edited 07-19-2022 08:12 AM
@govindsankar wrote:
Stop moving things on disk without using the files view in the project explorer. Your lvproj has a conflict.
Can you clarify
Yes. Your lvproj file keeps track of where all your files are. If you move them around without telling your project, you're in for a lot of heartache. To move a file and have your project keep track of the move: In the project explorer, select the file you want to move, then select the "Files" tab, right click on the highlighted file and select "Move on disk..." and use the file dialog to move it. LabVIEW will move the file for you and update the the lvproj file for you as well.
I've seen your particular error when someone changes a VI somewhere else and the VI is already open. A classic example is reverting a file in your version control software while the VI is in memory.