Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing shared library

Hello,

 

Iwas trying to upload .vi made by Vision Assistant (Create LabView vi). Everything went well, but after adding Smart Camera NI 1774 as target and opening the Vi I had problems with uploading. Attached screen popped up.

 

I don`t know what library or part of soft I have to install or where to copy such a library. In another attch there is a screen of already installed soft.

 

Help me please 🙂

 

 

Download All
0 Kudos
Message 1 of 5
(4,450 Views)

Hi mcholewi!

 

I was able to reproduce the error. 

So I created a LabVIEW code from Vision Assistant as you, inserted it to a project.

My target is an NI1772 (mostly the same as 1774) with the softwares attached in a picture.

 

I got the following error message:

 

Deploying IMAQUnregisterSession.vi (5,98 K)
Deploying SessionLookUp.viSessionLookUp.vi loaded with errors on the target and was closed.
LabVIEW:  Failed to load shared library imaq.dll:imgInterfaceFromSession:C. Ensure that the library is present on the RT target. Use MAX to install NI software or FTP to transfer custom libraries to the RT target.
Deployment completed with errors
So totally the same as yours.
I'm working on the problem, trying to find the reason why this SessionLookUp.vi causes problems. 
As I see on your attached picture the softwares on your device are up to date, but you could try to reformat the controller and reinstall all of the software on the device. (I you haven't tried already of course.)
This only takes a few minutes and ensures you have a clean start with all the necessary drivers and files. 
As I will have further information, I will post!
Best regards,
CLA, CLED
0 Kudos
Message 2 of 5
(4,406 Views)

Thank you very much for the response. Unfortunately, I am on vacation and it is not possible for me to try out Your solution. I will do it in the end of August.

 

Best regards

Mateusz

0 Kudos
Message 3 of 5
(4,396 Views)

Hi!

 

After research I foun out that the solution is included into the error message:

 

Ensure that the library is present on the RT target. Use MAX to install NI software or FTP to transfer custom libraries to the RT target.
First I think you should check if the mentioned shared library or the others that are listed under the dependencies tab in the project tree are deployed to the target. For this you have to connect to the target remotely:

  1. Open the Window Explorer.
  2. Type ftp://[IP address] in the address field, where [IP address] is the IP address of the Smart Camera that you are trying to communicate with via FTP. (Can see it under MAX)
  3. In the Explorer window look inside the folders: /ni-rt/system/
In this folder you sholud find the shared libraries if everything is OK, if not please response.
An other option to solve the problem (if the shared libraries are deployed to the target):
You have to edit the ni-rt.ini file. This is used to call the mentioned libraries.
1. Connect to the SMthrough its FTP server, like before.
2. Copy the ni-rt.ini file to your computer. 
3. Delete the original one from the SM.
4. Open the copied file and edit it: Find the line beginning with "StartupDLLs=", and insert the location of the DLLs to this line.
//Before editing create a safety copy!!
5. Save the file.
6. Copy the edited .ini file back to the SM.
7. Reboot the SM
8. Try to deploy your VI again.
For me this helped, please let me know how was it going.
If there would be some problems with the device, just reinstall the SW in MAX.
Best regards,
CLA, CLED
Message 4 of 5
(4,386 Views)

Hi!

 

I also had similar problem. I'm using NI PXIe-1435 Image Acquisition divice on NI PXIe-1082. When I tried to open a "HL Snap (Express)" vi, it said nisysapirpc.dll was not in the library. I went to the ftp /ni-rt/system/ and found it was really not there. I copied and pasted the .dll file from my computer to the folder and the problem seemed to be solved.

 

Thank you guys!

0 Kudos
Message 5 of 5
(4,160 Views)