Download Cell Assistant - Dynamometer Test Automation Software
Transcript
Chapter 6 TestPlans This example accomplishes the same thing at the previous example. The first line creates (i.e. “Dim”s) the reference object. The second line establishes the channel object that will be referenced. Note that the reference object can only reference objects of similar type. In this example, “aocDynoSetpoint” must be an analog channel. Finally, in the third line, the value of the reference object is set which actually sets the value of the “aocDynoSetpoint” channel. Similarly, any other method/property of the original object can be invoked/modified using the reference object. This example really does not demonstrate the true usefulness of using object references. Object references are most useful when the same set of operations needs to be performed on several objects. It is easier to write a subroutine that performs these operations on an object reference. Then the “Set” command can be used to set the reference object to the appropriate object prior to calling your subroutine that operates on the reference object. Note: Object references are more likely to be used with limit objects and data file format objects than channel objects. DyneSystems • Cell Assistant DPD-008-02 • © Copyright DyneSystems, Inc. Programming Topics 6.7