Pre-build updating time constant doesn't get to packed library
#1
Posted 15 June 2012 - 05:34 PM
One, why does the changes the scripting makes not get into the built code?
Two, how do I get this as part of the build?
I have an idea forming that should let me do what I want (create a VI that updates the constant, then runs the build script), but I really need to understand what isn't happening the way I think it should be first.
Tim
"If this was easy our kids would be doing it." - Coworker
#2
Posted 15 June 2012 - 07:05 PM
After you make the scripting changes, do you call the Save Instrument method on the VI? If you do, then I've got no idea. If you don't, then I believe I know the answer: LabVIEW loads a fresh copy of your VIs into a new application instance to do the build. I do not know if this happens before or after the PreBuild VI runs. If it happens after, then I would expect your in memory changes to be loaded into the new app instance, but it could be that we load from disk... I'm honestly not sure. If it happens before, I do know that we will not update from your developer app instance after that copy is made unless the changes are saved to disk (actually, the saving-to-disk rule is the usual rule for forcing an update of the other app instances, but the AppBuilder app instance is special and it might not update even on save, but I *think* that it does).
#3
Posted 15 June 2012 - 07:29 PM
It was super annoying because then a popup would occur during the build saying that the vi had been modified (obviously) which occurred like a half hour into the build.
I cant upload files right now, but all I did was modify a string constant with a new date and save it (using Save.Instrument invoke node.) I was pretty careful about closing all the references, but I doubt that is what your problem is.
#4
Posted 15 June 2012 - 08:51 PM
Yes, I've got the Save Instrument method in there.After you make the scripting changes, do you call the Save Instrument method on the VI?
References are all closed, so, yes, that's not a problem. I started thinking about a VI that modifies the constant then starts the build. I'm not getting a modified message, but it may resolve the issue I'm having.I did this exact thing in Labview 2010.
It was super annoying because then a popup would occur during the build saying that the vi had been modified (obviously) which occurred like a half hour into the build.
I cant upload files right now, but all I did was modify a string constant with a new date and save it (using Save.Instrument invoke node.) I was pretty careful about closing all the references, but I doubt that is what your problem is.
Tim
"If this was easy our kids would be doing it." - Coworker












