LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy a VI to cRIO memory programmatically?

Solved!
Go to solution

Dear all,

 

I would like to use the Remote panel (of LabVIEW) to control a VI under the cRIO from a client PC without the LabVIEW development system. I am thinking to build an exe file with the code inside can execute the Remote panel  programmatically. But the issue is that the VI is not loaded in the memory of cRIO. I tried 2 following methods:

1. I tried to deploy a VI to cRIO by WebDAV and put the VI to /home/lvuser/natinst/bin/ but it was failed as below.

anhduy92_1-1684294984663.png

2. Then I tried to load/execute the VI under cRIO via VI server but it was failed also.
ref: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIE4CAO&l=en-VN

anhduy92_0-1684296116334.png

 

----------------


3. I don't know if there is any methods to deploy a VI into the memory of cRIO programmaticallly as the Deploy action in the Project explorer.

anhduy92_3-1684295637220.png

 

Please help me to explain why I get the error in 2. and give me some possible methods for 3.

 

Thank you in advance.

0 Kudos
Message 1 of 5
(950 Views)
Solution
Accepted by topic author anhduy92

You need to build and deploy your VI as a startup rtexe. See Configuring Remote Front Panels on a Real-Time Target

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 5
(906 Views)

How about more than 1 VI I would like to remote panel?

0 Kudos
Message 3 of 5
(869 Views)

@anhduy92 wrote:

How about more than 1 VI I would like to remote panel?


Why would you want to remote more than 1 VI?

There is only one rtexe running on a cRIO at a time. As a matter of fact, rtexe is designed to run without any front panel. Interaction with the front panel might introduce jitters to the system and impact the performance.

If you want to interact with the rtexe from the host PC, the best way is to create a separate host UI that communicates with the RT VI via shared variables or network streams.

See Understanding Communication Options Between the Windows HMI, RT Processor, and FPGA

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 5
(854 Views)

I understood. I just ask for some further use. Thank you for you support.

0 Kudos
Message 5 of 5
(805 Views)