Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

CompactRIO not executing LabView code

Solved!
Go to solution

I am trying to develop an application to test every I/O port in my CompactRIO modules, but when I add the CompactRIO to the project, the C modules connected aren't ever identified and the programming mode selection window never pops up. Also, when I add a VI to the Target Device, the CompactRIO, the program isn't executed.

The modules are recognized in the Distributed System Manager, but not on LabView.

 

I have already checked for software incompatibility.  

 

A bit off-topic, but what differs a regular LabView program to one that would be executed by a target device? And how do I identify the variables in my program to the I/O ports in my target device?

0 Kudos
Message 1 of 3
(1,945 Views)
Solution
Accepted by topic author Eduardo_Noronha

Sounds like there may be an installation issue, but there's some information that can help us figure that out! To start, definitely make sure you have restarted your computer if you recently installed or updated NI software or drivers.

What CompactRIO do you have, and which modules are in it? What version of LabVIEW do you have, and which LabVIEW modules are installed? (You can check the software in NI MAX by expanding the LabVIEW entry https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8dMSAS)

When you add the CompactRIO to the project, do you see the chassis listed in the project under the target? Are you adding it by selecting to find an existing device or are you adding it by selecting "new target or device" on the Add Targets and Devices dialog box? 
http://zone.ni.com/reference/en-XX/help/371361R-01/lvdialog/add_targets_devices/

If you added it by the new option instead of discovering existing, you should ensure the correct IP address is set for the target settings, and should right-click and select to "Connect" to the cRIO in the project. You'll then be able to right-click the chassis and select to add C Series modules and discover ones on the target. 

It sounds like you may be newer to CompactRIO. At a high level, a program that is running on the CompactRIO has the benefits of the determinism of a Real-Time OS. Here's a couple resources that may help you get started. The first describes at a high level the different elements of a cRIO system, the second is a nice developer's guide for CompactRIO. 
RIO Architecture: http://www.ni.com/en-us/innovations/white-papers/13/the-labview-rio-architecture--a-foundation-for-i...
CompactRIO Developer's Guide: https://www.ni.com/en-us/shop/compactrio/compactrio-developers-guide.html

Hopefully we can get your cRIO and the modules detected!

0 Kudos
Message 2 of 3
(1,908 Views)

It was indeed a software compatibility issue. Thanks a lot for the help!

0 Kudos
Message 3 of 3
(1,888 Views)