def channel_ref_validate_getter():
    a = ChannelReference("Aliases/DesiredRPM")
    a.value = 5.0
    localhost_wait()
    b = DoubleValue(0)
    b.value = a.value
    return b.value
def channel_ref_invalid_channel_transform():
    a = ChannelReference("InvalidName")  # noqa: F841 it's ok not to be used
def channel_ref_invalid_channel_get():
    a = ChannelReference("InvalidName")
    b = DoubleValue(0)
    b.value = a.value
def channel_ref_invalid_channel_set():
    a = ChannelReference("InvalidName")
    a.value = 5
def channel_ref_return():
    a = ChannelReference("Aliases/DesiredRPM")
    a.value = 5.0
    localhost_wait()
    return a.value
def channel_ref_setter():
    a = ChannelReference("Aliases/DesiredRPM")
    a.value = 5
def channel_ref_type_string():
    a = ChannelReference(
        "Aliases/DesiredRPM")  # noqa: F841 it's ok not to be used
Beispiel #8
0
def channel_ref_for_vector_channel():
    a = ChannelReference(
        'Targets/Controller/Simulation Models/Models/Engine Demo/Parameters/a')
    a.value = 50