From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug Labview program running in RT target of a Compact RIO

I am working on a Labview software developed on Compact RIO architecture. The softeare has some program executing in RT target and some executing in FPGA target. What is the procedure to debug the Labview program running on RT and FPGA target. Is the conventional way of Step wise execution used for debugging Labview program running on General purpose OS possible for RT and FPGA targets ?

0 Kudos
Message 1 of 2
(2,635 Views)

debug RT code within the IDE

Debugging RT code is done the same way like host code. There are the same tools available. A difference is the real time behaviour and the weak CPU of the cRIO. A lot of code can be tested on the host.

 

debug an RT executable

The application builder provides the possibility to compile the RT executable with debug informations. See AppBuilder RTexe Properties Advanced

Once the debuggable RT executable is deployed and running on the target (cRIO here) you are able to connect to the running instance. Open your project in LabVIEW and see Operate -> Debug Application or shared Library. Use the IP of your cRIO target and the LabVIEW IDE will detect the running RT executable and link it to the sources. Be aware that debugging actions affect the real time behaviour and keep an eye on the CPU load of the cRIO, otherwise you may loose communication on 100% load.

 

FPGA targets can only be simulated. Parts of code can be tested on the host.

 

Hope it helps

Christian

0 Kudos
Message 2 of 2
(2,578 Views)