RTE de LV cannot open the project files that include references .lvlib in dependencies

I am writing a DLL LabVIEW to inspect the LabVIEW project files, and I noticed that if a project has a .lvlib reference in its dependencies, then the Run-Time Engine is contradictory on whether or not he can find the project file:

  • Project.Open returns error 7 (file not found)

  • Project.GetFileLVVersion is a success

Here are some excerpts from my code of G and C engaged in this behavior:

   int openStatus = StatusSuccess;
char * projectVersion = createStringWithLength (VersionStringLength);

printf ("Analysis %s\n", pathchaine);
OpenProject (pathchaine & openStatus, projectVersion, VersionStringLength);
printf (" project written in LabVIEW %s\n", projectVersion);

If (openStatus is StatusSuccess)
{
printf (" Open the project file.") \n") ;
}
on the other
{
printf("Error: could not find Project file, or file was not a Project file (Error code %i).\n», openStatus);")
}

However, when running in the development environment, the two methods are successful.

Is this a bug, and if so, is it fixed in 2014 of LabVIEW?

Here's how you can reproduce:

Prerequisites:

    1. LabVIEW 2013 SP1 32-bit

    2. ConEmu for a good console- https://code.google.com/p/conemu-maximus5/wiki/Downloads

    3. minGW for compilation of a program to use the LabVIEW - http://sourceforge.net/projects/mingw/files DLL

reference .lvlib to break dependencies Project.Open in LV RTE

    1. Open the attachment in a temporary directory (e.g. c:\xtra\temp)

    2. Open "OpenProject.lvproj" in LabVIEW.

    3. Build 'Open library project'.

    4. ConEmu with a bash command prompt, navigate to the temporary directory.

    5. Type make

$ make
patch the file "builds/platdefines.h.
GCC - std = c99 g OpenProject.c o OpenProject.exe - lOpenProject - Lbuilds

6. type "c:\xtra\temp\OpenProject.lvproj" OpenProject

OpenProject $ 'c:\xtra\temp\OpenProject.lvproj '.
Analysis c:\xtra\temp\OpenProject.lvproj
Project written in LabVIEW 13.0
Open the project file.

7. the opinion that both call nodes execute correctly.

8. type "c:\xtra\temp\OpenProjectWithLvlibDep.lvproj" OpenProject

OpenProject $ 'c:\xtra\temp\OpenProjectWithLvlibDep.lvproj '.
Analysis c:\xtra\temp\OpenProjectWithLvlibDep.lvproj
Project written in LabVIEW 13.0
Error: Could not find the project file or file was not a project file (error code 7).

9. notice that the node version managed while the open failure.

10 type diff OpenProject.lvproj OpenProjectWithLvlibDep.lvproj

$ diff-u OpenProject.lvproj OpenProjectWithLvlibDep.lvproj
-OpenProject.lvproj kills Nov 4 11:28:28 2014
+++ OpenProjectWithLvlibDep.lvproj kills Nov 4 11:32:37 2014
@@-13,7 + 13.11 @.
true
fake

-
+
+
+
+

+



true

Here's another way to trigger this behavior, which shows that LabVIEW occasionally Range the element dependencies:

    1. Open "OpenProject.lvproj" in LabVIEW.

  • Add to the project a new VI and place the constant path of file "Application Directory" his block diagram.

  • Select ""leader "Save All (this project)" and use the default name for the new VI.

  • Type 'c:\xtra\temp\OpenProject.lvproj' OpenProject

  • Notice that there is a mistake once again, as is expected.

  • Remove the "Application Directory" path of file constant

  • Select ""leader "Save All (this project)"

  • Type 'c:\xtra\temp\OpenProject.lvproj' OpenProject

  • Note that the problem has disappeared, as is expected.

  • Add the "Application Directory" path of file constant in the block diagram.

  • Select ""leader "Save All (this project)"

  • Type 'c:\xtra\temp\OpenProject.lvproj' OpenProject

  • Notice there is no problem, which is surprising, because that there should be a mistake because the dependencies item was not tidy.

  • Close the new VI and pull out of the project.

  • Select ""leader "Save All (this project)"

  • Open "OpenProject.lvproj" in a text editor.

  • Note that the dependencies item was put away.

  • Add VI back to the project.

  • Select ""leader "Save All (this project)"

  • Type 'c:\xtra\temp\OpenProject.lvproj' OpenProject

  • Notice that there is a mistake once again, as is expected.
  • NInjaneer_wow wrote:

    The same behavior occurs in LabVIEW RTE: a new project with a constant of the Application in an empty vi directory will return an error 7 - file not found, but still return the correct version of LabVIEW in which the project was created.

    I did experiment with workarounds for this problem, and I found a.

    When I used to get the path of LabVIEW libdir in the ini of the executable file, execution is able to load and inspect the project file.

    LIBDIR = 'C:\Program NIUninstaller Instruments\LabVIEW 2013'

    While it is expected that a stand-alone executable can be placed on a system that does not have the LabVIEW IDE, it is still surprising to me that the execution engine cannot find standard library of LabVIEW without some explicit guidance. What other factors contribute to this behavior?

    References:

    Tags: NI Software

    Similar Questions

    • Cannot open the project file with write access.

      I saw that this problem has been reported before, but have yet to find a solution.

      I have my project file in an external hard drive.  When I plug the hard drive to another computer and want to save it, I get this message:

      "Cannot open the project file with write access.  The file may be locked, or you don't have permission to write to this location.  Select Save as... »

      I don't want to register as because other projects refer to this file and also my file is still going to be ruined.

      FYI two computers use Windows 7.

      All solutions?

      Right-click on the folder in Question and select Properties. Select tab security make sure you that you then add everyone to the list of users. Do you this by selecting edit and then add. Type in all members of the section of the object, and click ok. Then select all the user and check full control. Press Apply and we'll adjust the permissions for the folder and subfolders and files.

      Eric

      ADK

    • First Elements 11. Cannot open the project (file PREL) in point 8.1 of Windows.

      I created the project (file PREL) in the first 11 elements in the Windows 7 Professional environment. I was able to open it without problem.

      Now I have Windows 8.1. When I try to open this project, I have a saying "this file type is not supported, or the required codec is not installed."

      Help!

      Levalt

      Thanks for the reply.

      When you import media source in a first Elements (any version), you are not importing real media. What you have in the media of the project are copies of the originals which are stored in the designated place hard drive. But the project needs to trace these originals to the save location as they were when they were imported in the project. If you move the source media, delete rename them or even that they are in the folder, you will encounter some bad media reconnect issues. At this point, the message "Where is the file...?" that you get when you try to reopen the saved closed project will be a major asset by her reconnects. Alternatively, you can use the function replace images for her reconnects.

      The following links go to the above factors...

      http://help.Adobe.com/en_US/premiereelements/using/WS09e4b3c48f3a79fc19b622510385d4355c-7d cb.html

      http://www.atr935.blogspot.com/2013/04/pe11-replace-footage.html

      Troubleshoot damaged projects | Adobe Premiere Elements

      Do not hesitate to ask if you have additional questions on this or need for clarification on what written.

      Best wishes.

      RTA

    • "Sorry, Move Maker cannot open this project file. The file is not compatible with Windows Live Movie Maker or damaged. Please select a different project file. »

      Hello!
      I installed Win Live Movie Maker, but when I tried to open my .mswmm file I only got this message: "sorry, Move Maker cannot open this project file. The file is not compatible with Windows Live Movie Maker or damaged. Please select a different project file. "The file will open correctly in Windows Live Movie Maker 7, so everything should be OK. What I am doing wrong?

      Hello

      This is supported in Windows Live movie maker file type.

      http://help.live.com/help.aspx?project=wl_movie_makerv1&market=en-IE&querytype=topic&query=wl_movie_maker_ref_supportedfiles.htm

      For any request or problems related to Windows Live Movie maker, please post to the Windows Live Help forum.

      Here is the link: http://www.windowslivehelp.com/product.aspx?productid=5

      Diana

      Microsoft Answers Support Engineer

      Visit our Microsoft answers feedback Forum and let us know what you think.

      If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

    • Cannot open the project elements

      Hello!

      I use a MacBook Pro, El Captain, 2.4 GHz Intel Core i5, 16 GHz RAM

      Adobe Premiere Elements 12

      After you have created and saved a project I restarted my Mac. Then, after a restart I could not open the projector-elements:

      The following message if poster (in German) appeared: 'ist Das Projekt offenbar beschadigt. ES kann nicht open werden' (the project seems to be defective. It cannot be opened).

      I rebooted again and also tried to open project saved automatically - the same result files. Cannot open the project.

      Does anyone know how to save the movie...?

      Thank you in advance!

      Good news! Please mark this question as answered.

    • Get the Error Message When you try to reinstall Vista: Windows cannot open the required file: E:\Sources\install.wim

      I'm trying to reinstall windows vista for the following reasons:

      1. I have SQL Server 2008 installed on my computer.  I deleted some files a long time ago and it screwed something and I couldn't reinstall.
      2. I had partitioned my hard drive for vista half and half SuSE and I deleted who and when I did, I think I deleted another partition - my recovery partition (E:\?).
      3. I need to clean my laptop.

      When I try to start the installation of a disk and I put in my product key, I get the following error:

      Windows cannot open the required file E:\Sources\install.wim.  The file does not exist.  Make suure all files required for installation are available, and restart the installation.  Error code: 0 x 80070002.

      Let me know if you have any ideas how I can fix it.  My next step was to recreate this E directory and download the install.wim file and re start the installation.  I could not find the file install.wim well.

      Rob

      Hi Rob,

      I checked the link you provided.  What you downloaded was just the Vista recovery environment.  You cannot actually re - install Vista with that and if you blew your recovery partition unfortunately you may be out of luck.  You blew your partition containing Vista runs so the SFC will be of no help either.  I wish I had better news for you, but I don't see any way o get on without a Vista DVD.  I have good news for you if.  When you get your HP drive if you have problems with the installation, we will be able to help you with that.

      Take care and let us know if you need assistance when the disc arrives. Locutys of Borg

      Resistance is futile

      If you don't succeed the first time skydiving probably isn't for you!

    • Try to install the new copy off error vista WINDOWS CANNOT OPEN THE REQUIRED FILE 0x8007000D

      OT: Hey tried down laptop restore none tried to install the new copy off vista prem with no joy only error 0x8007000D WINDOWS can NOT OPEN THE REQUIRED of joy

      Portable Hi down tried restore none tried to install the new copy off vista prem with no joy only error 0x8007000D comes WINDOWS CANNOT OPEN THE REQUIRED FILE of joy

      Hi jamesgillwn,

      1. when exactly you get this error message?
      2. what disc do you use to reinstall?
      3. What is the exact error that appears when you try to start?
      4. at what point of the installation you get the error message?

      After researching the error 0x8007000D code is essentially due to file corruption and a problem with the drive itself.

      First check if you have scratches or dust on the disc and clean the surface and try again.

      To check if the disk is wrong, you will need to copy the contents of the DVD to the hard drive and try to install using that.

      Try the steps from the following link:

      Error message when you try to install Windows Vista by using the DVD drive on the computer: "Windows cannot install required files".

      http://support.Microsoft.com/kb/930984

      Note: When you perform the installation, you will lose the data, make sure that you need to backup your data before you perform the installation.

    • Cannot open my project files since I've updated

      Hey guys,.

      I tried to change some contents of a Web site I did last year. Now I can't open the project files more.

      Error message:

      "Could not open the file.

      "Die file is already opened in another Version of MUSE"


      (translated from German)

      This happens to all my files from muse.

      What can I do?

      Hello

      Please copy your file to the desktop and then try to open the file copied with Muse.

      Let me know if it works.

      Concerning

      Sonam

    • Cannot open the raw files of Nikon d800 in PS CS5 and can not be updated Camera Raw plug-in

      Cannot open the raw files of Nikon d800 in PS CS5 (Win7 64 bit). It is said, the model not supported by Camera Raw. Tried to update Camera Raw plug-in for d800 but keep error message: failed to update, Adobe Application Manager may be damaged. Re-install the latest application manager, but still the same error message. How to fix?

      Thanks to them both.

      Nothing worked until I managed to speak directly to Adobe support. They recommended to install the latest version of Camera Raw Installer 8.6. It has not helped to open NEF files immediately but he fixed an error of 6.7 'update failed' updated Camera Raw! After updating to 6.7 all goes well, see my d800 naves. Cheers, Sergey

    • Cannot open the NEF files in Photoshop Elements

      I recently bought a Nikon 6100 and I cannot open the RAW files saved in the NAVE to Photoshop elements 11 despite all the updates of Adobe running.  Can someone tell how can I do this please. Thank you

      Saturday, January 25, 2014 09:22:12-0800, 99jon [email protected]

    • ORA-07391: sftopn: fopen error, cannot open the text file.

      Hello

      The last 3 days, we get the error in the alert below log.

      [ORA-00600: internal error code, arguments: [kmgs_parameter_update_timeout_1], [27091] [] [] [], [], []]
      ORA-27091: unable to queue I/O
      ORA-27072: IO file error

      I check as the same partners to it in metalink I found permission to check the directory solution. (DOC ID367619.1)
      I got permission from ORACLE_HOME\dbs $ to 777, but still m making the same mistake.

      also I try to recreate spfile so that I try to create pfile first

      create pfile from spfile

      I get the error below.

      ORA-07391: sftopn: fopen error, cannot open the text file.

      ls - lrt sp * in the below output shows $ORACLE_HOME

      -rwxrwxrwx 1 ora10g 3584 20 September dba10 05:42 < SID > spfile .ora

      Help, please.

      Thanks in advance

      user8757749 wrote:
      The output of ls - lrt is in the path $ORACLE_HOME\dbs only

      We also have the database version 10.2.0.4 that the spfile even uses everyday cold backup of the database.

      also, I put the 777 permission to the file.

      OK, I guess there will be corruption of the SPFILE as if edited manually or in any other cases too.

      You have a backup of SPFILE? backup of the file PFILE or?

      then starting using this SPFILE, if any backup then start with PFILE and then create SPFILE from PFILE.

      Otherwise, you can copy the contnets of the parameters of the alert log file initialization and paste in the editor and the instance of starutp.

      These are the options.

    • Error generating content. Cannot open the InDesign file.

      Hey all -

      In the import of an article on a folio, I just got this error:

      "Content generation error.

      Cannot open the InDesign file. Please confirm that the file can be opened in InDesign.

      The file is opened now in InDesign. I can close and reopen without error.

      I tried to save again article in a new file. No help.

      I tried to create a new folio and bring the article there. No help.

      All links are good. It is a simple file with images, a pane scroll and buttons that link to other articles.

      Anyone experience this problem? All solutions?

      Thank you!

      as suggested above, Amy if you download items from a network drive, move your files to local computer HD and download from there. Download the data to a network drive is known to cause unpredictable errors

    • update my Photoshop cc through my creative cloud and now takes more time to open the psb files that yesterday were beautiful, moving same layers autour, I now get the beachball! any suggestions?

      update my Photoshop cc through my creative cloud and now takes more time to open the psb files that yesterday were beautiful, moving same layers autour, I now get the beachball! any suggestions?

      Perhaps a preferences Reset could fix.  Cmd k will lead you to the Photoshop preferences where you will see this screen.

    • Cannot open the project

      I am trying to open a project on another computer, but I'm having some trouble. I followed the steps of the tutorial: http://agile.csc.ncsu.edu/SEMaterials/tutorials/import_export/ but I have a red exclamation point icon when I open the project. The classes are riddled with red error and it cannot be run in the Simulator (Run As - > Simulator does nothing). I noticed that the file on the first computer has a net_rim_api jar file and the other is not. I don't know if this is the problem and if it is I don't know how to import it. The error given by the section of the problem of the eclipse is:

      "Project cannot be built until the path of errors are resolved" and "container Unbound classpath: ' JRE System Library [BlackBerry JRE 6.0.0] project"MyProject"


      The appropriate BlackBerry Java SDK has been installed in Eclipse on machine problems?

    • Cannot open the project on final cut pro :(

      Hey guys, I have a big problem.
      I edited a video which is about 1h30m and using the function "Multicam clip", and successfully made and made a DVD. but unfortunately I need the second edition. Then I opened the library file, click the project, Final Cut Pro X continuous loading and close unexpectedly, and another project to another event works normally. anyone with the same problem? I need to send it to my tmr customer

      p.s. I deleted the file, preferably according to most of the Q & A.

      What version of FCP are you running? If it's the 10.1 or later, projects are in the events that are contained in libraries.

      If 10.1 or later, is the DVD project that does not open in the same library as the project is open? Or they in different libraries

      Russ

    Maybe you are looking for