Ce contenu n’est pas disponible dans votre langue préférée.

Le contenu est disponible dans une autre langue. Votre navigateur peut inclure des fonctionnalités qui vous aideront à traduire le texte.

Error Code 7 at the Call Library Function Node

Updated May 15, 2023

Reported In

Software

  • LabVIEW

Issue Details

  • When running the executable on the target computer, there is an error code 7 at the  Call Library Function Node. Why does this happen and how can I fix it? 
  • I moved a DLL to my RT PXI and have tried calling it but keep getting an error code 7.
  • When I try to run an application, I receive the following error message: "Error 7 occurred at Call Call Library function Node in ...". 

Solution

This could be occurring because the target computer may be:
  1. A different OS than the Server computer - DLL's can change location or not even be available between different OS's
  2. The function cannot call a DLL that was not sent over through the Application (.exe)
You could fix this issue by:
  1. Using the same OS on your Server and Target if using DLL's from the OS system
  2. If the DLL's are from a 3rd party: Install the DLL's from the 3rd part onto the target computer
  3. Add the DLL to the executable so that it is carried over to any target computer:
    1. Go to the Project Explorer
    2. Right click Build Specifications
    3. New --> Shared Library (DLL)
    4. In Information choose the Destination directory of the DLL's that you want to include
    5. In Source Files chose what you want to "Always Include"
    6. Click Build
    7. Make sure that the file will be part of the EXE by following this article How Do I Add A DLL To A LabVIEW EXE?.  
  4. Open the the VI being referenced in the error message, and make sure that the DLL(s) being called from this VI exists in the path defined in the Call Library Function Node. 
  5. If the DLL was moved to a RT PXI and built with Visual Studio, make sure that you have Microsoft Visual Studio Runtime Support installed under LabVIEW Real-Time in the installation wizard in NI-MAX (the Visual Studio Runtime Support and  LabVIEW Real-Time versions depend on the ones installed on your computer):

Additional Information