02-22-2017 03:31 PM
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?
02-23-2017 02:02 PM
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.
02-23-2017 03:03 PM
That's my current solution...but I shouldn't be constrained to that. Maybe this is a bug.