I'll jump to the question first, then some supporting information:
Suppose I have the following:
motor(1).Voltage = 96.2;
motor(2).Voltage = 48.0;
processingStation(1).FeedstockMotor.Voltage = 96.2;
processingStation(2).FeedstockMotor.Voltage = 48.0;
The following gives all motor voltages:
[motor.Voltage]
This does NOT give all motor voltages:
[processingStation.FeedstockMotor.Voltage]
The first output, [motor.Voltage]
, gives me the voltages of all the motors in the structure. How do I get the same functionality in the other case, where I'm trying to compare Voltage
values for the FeedstockMotor
across all processingStation
s?
I realize that I could rename the field FeedstockMotor_Voltage
and get the same functionality, but if the discharge motor has a similar set of configurations, then I could easily setup a default motor, that has something like:
defaultMotor.Voltage = 48.0;
defaultMotor.Torque = 100;
etc., and then I could make easy assignments:
processingStation(1).FeedstockMotor = defaultMotor;
I'd like to have a very small subset of allowable motors, be able to setup highly detailed configurations for those motors, and then be able to use them.
I'd also like to be able to slice across various segments, such that I can quickly get a list of operating torques, voltages, etc. for visual trending or other HMI displays. I'd prefer not to have to loop over all of the processingStation
elements to get the data I need.