 J.Michael
		
			J.Michael
		
		
		
		
		
		
		
		
	
			04-15-2014 03:44 AM
My Question is how can I use a shared Library (Windows .dll) on the myRio?
The library is imported into LabView and the created .vi is also able to be added to the Project, but when I try to run the project I get the following error:
LabVIEW: Failed to load shared library dllTest.*:addOne: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.
I am quite new to LabView and RealTime systems, so I do not know how and especially where to transfer the dll to.
It is not possible, that the compilation process includes and copies the needed files to the myRio?
Thank you very much for your help
Johannes
			
    
	
		
		
		04-15-2014
	
		
		11:04 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		10-08-2025
	
		
		03:26 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
Hello J.Michael,
The NI MyRIO runs NI LinuxRT, not Windows, and so won't be able to run a DLL compiled for Windows. Rather, you'll need to compile a shared object (.so) library compatible with LinuxRT.
This tutorial provides more information on compiling for the LinuxRT OS:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHR7CAO&l=en-US
Note that you will need to have access to the source for the library you're using and recompile for LinuxRT. If you obtained the DLL from a third party, they will need to provide you with a compatible .so or their source so you can recompile it yourself.
Also, for further information on LinuxRT and other NI Real-Time OSs I'd suggest doing some general searching, but here are a few links to get you started:
KnowledgeBase 4LRA4IQ0: What Operating System is my Real-Time Controller Running and Why?
NI Community: NI Linux Real-Time FAQ
https://forums.ni.com/t5/NI-Linux-Real-Time-Documents/NI-Linux-Real-Time-FAQ/ta-p/3495630
Hope that helps!
04-16-2014 05:45 AM
Thank you very much Tom for the quick response.
The dll is selfwritten, so I will have a look at the Tutorials you sent me and try to convert it to the desired type.
Including the shared library itself should hopefully work then.
Greeting
J.Michael
			
    
	
		
		
		12-08-2015
	
		
		03:02 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		10-08-2025
	
		
		03:27 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
Hi RDFer,
We don't currently support NI USRP with myRIO. We have a list of hardware that is supported with NI USRP located here:
NI-USRP 14.0 Read Me - http://www.ni.com/pdf/manuals/374760a.html.
G-IV
 rolfk
		
			rolfk
		
		
		 
		
		
		
		
		
	
			12-09-2015 02:21 AM
Please note that you need to copy the shared library yourself in some ways to the right location on the myRIO and to run ldconfig on the directory where you added the library into. LabVIEW doesn't automatically deploy the shared library to the target when it deploys the compiled VIs.
 sanju254
		
			sanju254
		
		
		
		
		
		
		
		
	
			07-15-2019 07:21 AM
if anyone knows how to deploy .dll file into myrio or how to convert these files which support in myrio any tutorial or examples is there means it helpful. (right location on the myRIO and to run ldconfig on the directory) please provide any help file for this content.
 rolfk
		
			rolfk
		
		
		 
		
		
		
		
		
	
			07-15-2019 07:31 AM - edited 07-15-2019 07:32 AM
As explained before in this thread you don’t deploy DLL files to the myRIO (or any othe NI Linux RT based target). You need the C sources for the DLL and likely adapt them to run under Linux and then compile them into a shared library (*.so) to use on the myRIO. Once you got that done report back.
 sanju254
		
			sanju254
		
		
		
		
		
		
		
		
	
			07-16-2019 12:15 AM
I got it what ever u r explained but i have one doubt. Right now i have C source code for the DLL and similarly if i have to generte shared library (*.so) means i have to use linux platform or any other way is there to generate from windows platform please any source is there for conversion is more helpful.
 rolfk
		
			rolfk
		
		
		 
		
		
		
		
		
	
			
			
    
	
		
		
		07-16-2019
	
		
		03:03 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		10-08-2025
	
		
		03:27 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
When you post questions you should investigate the previous posts and any links that are posted in there. Tom L. in his answer to the initial question did list several links that are all relevant. One of them was https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHR7CAO&l=en-US which explains about obtaining and installing the Eclipse based C/C++ Development environment with the necessary GCC toolchain to develop code for the NI Linux Realtime targets.
The Eclipse based IDE runs perfectly fine on your Windows system and I use it regularly. You can however also install the C development support on your RIO system itself from the NI package repository and directly compile your sources on the target too if you want, but that is an even more different user experience to your standard Visual something IDE than with Eclipse.
 sanju254
		
			sanju254
		
		
		
		
		
		
		
		
	
			07-17-2019 01:23 AM
thanks for your response.