NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
mcholewi
Posts: 4
0 Kudos

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 :smileyhappy:

 

 

Member
BalazsNagy
Posts: 96
0 Kudos

Re: Missing shared library

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,
Balazs Nagy
Applications Engineer
National Instruments Hungary
Member
mcholewi
Posts: 4
0 Kudos

Re: Missing shared library

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

Member
BalazsNagy
Posts: 96
0 Kudos

Re: Missing shared library

[ Edited ]

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,
Balazs Nagy
Applications Engineer
National Instruments Hungary
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page