From: Rolf K. <rol...@ci...> - 2005-04-05 21:33:05
|
When trying to test my newly created packages I did use the File->Install Single Package menu option in the OpenG Commander. I got consistently an error 5008 so I went looking and found a problem within the function called to do this operation. In OGPM Add Package to Cache.vi the function OGPM Add Package File to Cache.vi is called. This function MOVES the package from the original location into the cache directory. Right after that the function OGPM Get Package Name.vi function is called with the original package file path to retrieve the package name, BUT the package has been already moved into the the cache and is therefore not available anymore. Possible solutions might be: 1) Use a COPY in the OGPM Add Package File to Cache.vi instead of MOVE. Is it really desirable to remove the original package from the disk? I would think this a little bit strange (I was rather surprised that the original package disappeared after I had selected it!) 2) Retrieve the package name from the now moved package in the cache instead of the original one And last but not least 3) The whole package name was just read in OGPM Add Package File to Cache.vi to determine the name of the target file in the cache to only be retrieved again as the next step after this function. Adding an output cluster to OGPM Add Package File to Cache.vi containing the package name parameters would be much more logical, more efficient and also add no complexity to the diagram of this VI at all. Rolf Kalbermatter CIT Engineering Nederland BV Treubstraat 7H 2288 EG Rijswijk Tel: +31 (0)70 415 9190 The Netherlands Fax: +31 (0)70 415 9191 |