Quote:
Originally Posted by Greg McKaskle
If you would like to modify the refnum registry, you can add your own wrapper that takes in an enum instead of a string.
|
The TechnoKats did exactly that this past season. We also created a vi full of global arrays that defined which cRIO resource was to be associated with each enum, and used for loops to Open each resource using the specified attributes. Adding a new motor meant adding it to the enum, then defining its PWM number (and its invert flag value) in the global array.
We started out by ignoring the refnum registry entirely, but that kept us from using Test mode.