06-04-2009 09:22 AM
I'm using LV 8.2 and TS 4.0.1f. No other versions of these programs are installed on my computer. I created my TS based program and I want to deploy it on others machines. However, I came accros an unexpected behavoiur during building an instaler. Could you help me with interpretation of that behaviour please?
This is what I did:
1. I mass compiled folder with my TS program. Every VI was linked properly. No errors.
2. The source analysis in deployment was successful as well - no errors or warnings.
3. So why during building (Processing VIs...) the "Save Modified VIs?" info message pops out with the information: "An eror occured while trying to read the dependencies of your VIs; a possible cause for this problem is VIs not saved in the current version of LabVIEW. Would you like to save any modified VIs now?"
Despite the fact that I understand the message I can't link that message to my situation. What has ben changed since the last successful step what was "Analysis Source Files"?
When I clicked "Yes" to confirm the message from point 3, as a result I received a list of VIs which have been changed (almost all my VIs and subVI). Then I clicked "Save" to save them, next I received two (one after one) messages saying:
"The VI Clear Errors.vi has changed on disk since last saved or loaded by LabVIEW. If you load its front panel, it will probably be inconsistent with the parts of the VI already in memory, resulting in a corrupt VI."
I clicked "Cancel" and received an error message window:
"An error occurred. Please refer to the status log for more information." and log says:
"Error: Unable to find all subVIs from saved VIs, either a subVI is missing or the VI is not saved under the current LabVIEW version.
The missing file path is:C:\Program Files\National Instruments\LabVIEW 8.2\user.lib\ERRBUILD.VI
while Processing VIs..."
Could some one explain to me what's going on behind the TS Deployment Utility scene? Why the the Clear Errors.vi had to be changed whilst during mass compiling and the source analysis everything was OK? How can I spot and solve that error?
06-08-2009 06:02 AM
Hi,
Some VIs / Ctls come from the TestStand support folders so you also have to mass compile the TestStand folders to ensure there are at the same version of LabVIEW.
Can remember what version of LabVIEW VI's and Ctl are at for TestStand 4.0 but there are lower than LabVIEW 8.2.
Regards
Ray Farmer
06-08-2009 07:14 AM - edited 06-08-2009 07:15 AM
Hi,
Thank you for replying.
I did mass compiling, however it still becomes with an error.
Regarding to using of mass compiler: I've been advised not to use it a lot. Have a look here.
06-08-2009 08:05 AM
Hi,
It's not a cases of dont but you have to especially in the TestStand installed folders. It's the only why to ensure your TestStand installation is updated with your LabVIEW.
If you had installed LabVIEW first and then installed TestStand then I think you get the option to mass compile the TestStand VI's installed during the installation.
Can you post a simple build that hightlights your problem.
Regards
Ray Farmer
06-08-2009 08:17 AM
Hi,
Just checked the TestStand manuals and TestStand 4.0 installed VI's are at LabVIEW version 8.0.
I think you said were using LabVIEW 8.2 therefore you will need to mass compile the TestStand installed folders that contain any llbs/VIs used by your test sequence either directly or indirectly. Dont forget the National Instrument/Shared folders as well.
Regards
Ray Farmer
06-08-2009 08:17 AM
06-08-2009 08:52 AM
Hi,
You need to make sure whitespace.ctl, Trim Whitespace.vi are only located in one place
either in
_SupportVIs
or
vi.lib\Utility\error.llb
Either add them in your workspace this will stop them being included in the SupportVIs folder or disable the vi.llb option.
Regards
Ray Farmer
06-08-2009 09:08 AM
I did it. I renamed three files from _Support VIs folder, successfully mass compiled to re-link them with new location an then I received an error:
Error: Unable to find all subVIs from saved VIs, either a subVI is missing or the VI is not saved under the current LabVIEW version.
The missing file path is:C:\Program Files\_SupportVIs\whitespace.ctl
while Processing VIs..
It looks like something hasn't been compiled and in spite of mass compiling something still directly reffers to that file in C:\Program Files\_SupportVIs\whitespace.ctl folder.
How to solve it? I have more than 100 VIs to check. How can I get know which of them is reffering to that specified location?
06-08-2009 09:28 AM
Hi,
You can't just rename it in SupportVIs and expect mass compile to work because in the VI it will still be linked to the original ctrl or VI.
You actually have to be in labview with the VI open thats using that whitespace.ctl then you can save it out as a different named ctrl.
Regards
Ray Farmer
06-08-2009 10:12 AM
I renamed these three files in _SupportVIs directory to not be recognised by LV. I did it particurally instead of deleting. Doing so, I gave LV a chance to not connect to these duplicated VIs.
I mass compiled LV folder and succesfully build an installer!
However I'm still not sure what was happened.