All,
In my LV code, I am querying data from a SQL database and then using that data to determine which cRIO channels I want to read (using the All Variables property). Now, to avoid confusion I have renamed all of the cRIO channels to intuitive names (ex: Inline Flow Rate or EUT Phase A Amps). However, doing this renaming has altered the order with which the All Variables property returns the list of channel references. I want the All Variables property to return an array of channel references in numeric order (ex: AI1, AI2, AI3, etc.), regardless of the name of the channel. However, the array is coming out in alphabetical order based on channel name.
Does anyone know how to fix this; other than removing all custom channel names or starting each name with a numeric?
The attached picture shows both the implementation of the All Variables property node and (on the left hand side) the way in which the channels have automatically reordered alphabetically.
The order shown in the project window is the same order in which the reference array is being returned.