I have noticed that in the LV 8.6 release there is a full API for managing the LV project and all of its components.
It seems very possible with the right instruction to be able to manipulate I/O variable properties such as
alias name, scaling, etc. I have been knocking on this door for awhile and was hoping some kindly R&D individual
might throw me a few bones (vi's) to get started.
I meant to say Programmatically modify project I/O variable properties.
So far I have a crude method that modifies the .lvproj file (which is xml) to
rename the I/O variable alias and scaling. This works butit would be much better
to be able to do this via the project refnum in LV.
Check out these links:
I would not recommend doing this for your cRIO I/O Nodes. I would suggest doing this manually rather than modifying your .lvproj file, as this is generally a bad idea.
I think I understand the possibilities of corrupting the lvproj file. This is only a tool for my personal use and comes with a strong warning
to back up your project file before using. However I certainly do indend to keep using it and expand it to work with projects that have multiple
cRIO chassis and also to be able to set channel scaling parameters. If you really want to help out you could dig around and try to find out how to use the
existing project refnums to get at these properties and then I could upgrade my utility to work properly. Also, in another forum post I mentioned that
there is a bug in the project that resets all alias names when attempting to move a cRIO chassis module within a project. This is another reason
that this tool is useful to me.
I think this will get you started.
Attached are a project with a module, and a VI that can rename all the IOVs under the module.
Scaling is also an available property.
Make sure you fill out the array with 8 names, and then run it. The project has to be open to do this, but the VI can open it. Also, if you programmatically close the project, make sure you save it first with an invoke node.
Hope this helps!
Kurt Williams | LabVIEW Real-Time Product Manager | National Instruments