LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CompactRIO module name reference

I created a project, added a cRIO target and modules, and created some basic code. I'm am working with programmatic assess to IO with a module reference and property node to get the variable references. By default, modules are named "Mod1" and so on. This works fine, until I change the name of the module in the module reference to something other than the default. I started by changing the module name in the project. Browsing from the reference constant allows me to choose the correct module (with modified name) from what is available in the project. However when run I get error -66205 "The variable object was not found." 

 

If I change the reference to point back to "Mod1" and leave the module name in the project modified, it works. So, it only ever works if the reference points to the default module name, no matter what the module name says in the project. 

 

For kicks, I also tried changing the target name and that works fine. 

 

Am I missing something? Or is this expected behavior?

 

compact rio module reference.png

 

compact rio module reference 1.png

 

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

Typically I would avoid changing the module name and would instead change the channel names so you can specify your inputs and outputs through this approach. 

0 Kudos
Message 2 of 3
(3,738 Views)

That's my current solution...but I shouldn't be constrained to that. Maybe this is a bug. 

0 Kudos
Message 3 of 3
(3,735 Views)