08-27-2021 10:53 PM
Hi guys!
When I open my LVOOP project,then open the main program, it recompile every time.
This question has puzzled me for a long time.
any solution or workaround in sight
Solved! Go to Solution.
08-28-2021 03:41 PM - edited 08-28-2021 03:41 PM
And make sure to "Mark Existing Items". By separating the source code from the compiled stuff, if the source code didn't change, LabVIEW won't make you have to save it.
To make this the default behavior for new projects, do this:
08-28-2021 09:18 PM
Hi billko!
Thanks for your reply.
My project settings and properties are exactly like what you said, and I set every vi in this project to separate compiled code from source vi , but the problem remains.
08-29-2021 12:11 PM
I’ve had cases where a VI would always have an asterisk and I could never figure out how to get rid of it. My best guess is that something in class or xinterface causing a lock somewhere.
08-29-2021 02:42 PM
@paul_cardinale wrote:
I’ve had cases where a VI would always have an asterisk and I could never figure out how to get rid of it. My best guess is that something in class or xinterface causing a lock somewhere.
Unfortunately, I've seen this as well. I was hoping for something simple. I did notice that, in one of the projects like that, a LabVIEW base dependency kept changing, and I have no idea why. If I opened the main VI and closed it, a dependency would change. But if I saved it that way, the next time I opened the project (but not the VI), the dependency would revert.
08-29-2021 09:28 PM
thanks,guys.
I found a solution for my problem.
firstly,Cancel the setup of project property:Separate compiled code from new project items,then click Mark Existing Items button,unmask all items, close dialog and save project.finally, reopen the project, and restore all Settings.
The repeat compile problem will disappear.
it works,but I still don't know the cause of this problem.
08-30-2021 01:28 PM
@007hero wrote:
thanks,guys.
I found a solution for my problem.
firstly,Cancel the setup of project property:Separate compiled code from new project items,then click Mark Existing Items button,unmask all items, close dialog and save project.finally, reopen the project, and restore all Settings.
The repeat compile problem will disappear.
it works,but I still don't know the cause of this problem.
This could be explained by the "Separate compiled..." checkbox somehow got out of sync with that actual state of the VIs. Maybe doing what you did forces an update of all the VIs, making them consistent with the checkbox again. Just a guess.