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 7 Using the GetValueByPointer XNode in a LabVIEW Application

Updated Oct 23, 2023

Reported In

Software

  • LabVIEW

Issue Details

When using the GetValueByPointer XNode in a LabVIEW executable I get the error 7 indicating that the Call Library Function Node could not find the corresponding DLL file.
 
Error 7 occurred at Call Library Function Node
Possible reason(s):
LabVIEW: (Hex 0x7) File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct.



Using the GetValueByPointer XNode in the development environment does not lead to an error and executes as expected.

Solution

The GetValueByPointer XNode makes a call to the lvimptsl.dll which is located in the resource directory of your LabVIEW installation directory (e.g. C:\Program Files (x86)\National Instruments\LabVIEW 2018\resource). When using this XNode in a LabVIEW Application the path to the lvimptsl.dll can not be resolved which causes the error 7. To overcome this issue you can use the following method:
  1. Include the lvimptsl.dll in your LabVIEW project explicitly
  2. When setting up your build specification for the LabVIEW application please specify a support directory also called resource
  3. Make sure the lvimptsl.dll is placed as 'Always Included' inside this support directory when building the application

Alternatively, you can include the following INI token in your LabVI EW.ini file to enable the access to the XNode source code
  • xnodewizardmode = true
After that you can access the source code of the GetValueByPointer XNode by right-clicking it and selecting XNodeWizardMenu>>Generated Code and then specify the complete path to the lvimptsl.dll (e.g. C:\Program Files (x86)\National Instruments\LabVIEW 2018\resource\lvimptsl.dll)

Additional Information

Note: XNodes are not officially supported by National Instruments and that they might lead to crashes of your development environment.