LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying two real time DLLs on same NI RT target that run simultaneously

Hi,

 

I used to create DLL of my code and deploy on NI RT as given by the procedure https://www.ni.com/pdf/manuals/374686e.pdf .

 

I now want to deploy two different DLLs with different names, and utilizing different DAQ cards on same NI RT target.

I have placed the DLLs on the  location "/ni-rt/cvi/" and added their names with path in the "NI-RT.INI" file.

Both the DLLs starts on the startup (different prints appeared), but a few seconds later the FTP connection to NI RT breaks. Further the NI device is not available on MAX. The device does not connects on "consoleView". The web configuration of NI RT are gone. But the ping is still working fine. The NI hangs then for long time.

 

Please guide me if it is feasible to run real time operations on same real time target simultaneously?

 

Or I have to merge both the DLLs functionalities in a single one and deploy singe DLL on RT target?

 

I am using NI-PXIe8840. 

 

Thanks.

0 Kudos
Message 1 of 2
(939 Views)

It's all pretty fuzzy. But the RT system only has one main process. This main process initializes the system and then calls your RTMain() function in the DLL to startup your application. You can not have two separate RTMain() functions to be called.

So what you will have to do is create normal DLLs/shared libraries that implement your specific subsystem and export according library functions. Then deploy them to your RT system as shared libraries. Now you can create ONE RT application that contains an RTMain() function and calls your functions in the two or more other shared libraries in the desired way. Basically you need to create function libraries that you can deploy to the RT target just as all the other libraries that NI installs and that you can call from your application such as NI-VISA, DAQmx, etc. Then create one single RT application that calls all these library functions appropriately.

Rolf Kalbermatter
My Blog
Message 2 of 2
(892 Views)