Skip to content

Hal Remote Component Usage #285

Open
@pauloasherring

Description

Hey there!
First of all, I have to start congratulating you for this wonderful piece of software! It sure is a usage case for me!
Regarding my issue: I am trying working on a custom GUI, based on QtQuickVCP. I am implementing a manual tool change routine, based on remote hal components. I am using Cetus as a starting point. The following code is supposed to access the remote components:
` RowLayout {
id: container
anchors.margins: 5
Label{
text: "testingLabel"
}

            HalButton{
                name: "userChangedTool"
                Layout.alignment: Layout.Center
                text: qsTr("Continue")
                checkable: false
                //enabled: toolChangeButtonEnable.value

            }
            HalLed {
                id: toolChangeButtonEnable
                Layout.alignment: Layout.Center
                name: "toolChangeButtonEnable"
            }
            Service {
                id: halrcompService
                type: "halrcomp"
            }
            Service {
                id: halrcmdService
                type: "halrcmd"
            }
            HalRemoteComponent {
                 halrcmdUri: halrcmdService.uri
                 halrcompUri: halrcompService.uri
                 ready: (halrcmdService.ready && halrcompService.ready) || (state === HalRemoteComponent.Connected)
                 name: "toolChangeControl"
                 containerItem: container
            }
        }`

The issue is that if I add the code to a existing tab, such as inside the "ManualTab.qml", it does not work and if I add it to its own tab, is works without a glitch. Given that it works normally in its own tab, I think that it might have something to do with my implementation itself. It might be interacting along with other elements added to the tab, such as "ApplicationObject" or "ApplicationCore".
in that case, what should be the approach to get a remote component and a applicationcore component to work together?
Best Regards.
Paulo Sherring.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions