Re: [Machinekit] Moving QtQuickVCP buttons/pins to tabs give pin count mismatch error

2017-05-17 Thread Alexander Rössler
You top level component is a HalRemoteWindow right?

If this is the case you need to switch to ServceWindow and create
multiple HalRemoteComponents to create a working setup.

The HalRemoteComponent looks for pins in child items of the "container"
item. It may be the case that the Tabs aren't children of the TabWindow
or the parent so the component can't find them.

See
https://github.com/qtquickvcp/Machineface/blob/master/Machineface/Machineface.qml#L32
https://github.com/qtquickvcp/Machineface/blob/master/Machineface/Machineface.qml#L49-L57
https://github.com/qtquickvcp/Machineface/blob/master/Machineface/VelocityExtrusionControl.qml#L17-L27

Also note that the services are placed in the top level ServiceWindow,
since the tabs would need to be active if not.

If you want to have a single remote component you can of course "unlink"
the HAL pins from you items. e.g.:

// somewhere in your Service/HalRemoteWindow
HalPin {
id: myHalPin
}


// in you tab
Button {
  onClicked: myHalPin.value = true
}


Bas de Bruijn writes:

>> On 17 May 2017, at 12:04, Klemen Zhivko  wrote:
>> 
>> According to my experience I think for connecting remote components both 
>> components need to have same number (and same type) of pins.
>> So if you adding pins in UI you should add them also in hal file.
>> I am using hal file to create remote comp, but they can be also python 
>> created and mk side.
>> 
>> I received similar errors when any of sides (client or server) had different 
>> number of pins on component.
>
> That's correct. But  I've only moved the pins to the tab so that hasn't 
> changed. Also the tab is active, and while the UI starts, the buttons show 
> the round circle in their upper right corner that they aren't 
> connected/synchronized.
>
>> 
>> Dne četrtek, 11. maj 2017 16.24.18 UTC+2 je oseba Bas de Bruijn napisala:
>>> 
>>> 
>>> 
 On Thursday, May 11, 2017 at 2:40:36 PM UTC+2, Alexander Rössler wrote:
 Make sure your Tab is active: true
>>> 
>>> I've added that, but it doesn't fix the problem.
>>> referring to the thread Marius linked to, do I need to change the 
>>> "servicewindow" (whatever that is)?
>>> could you enlighten me a bit? Because I obviously have no clue about what's 
>>> going on with QtQuick.
>>> 
>>> 
 
 Bas de Bruijn writes: 
 
 > Hi, 
 > 
 > I've been building single QtQuickVCP window UI's in the past, and today 
 > I 
 > try to build some tabs into my UI. 
 > I'd like to have a tab with buttons, and a tab with IO's for inspecting 
 > HAL 
 > pins. So for this I looked into Machineface and I moved my buttons and 
 > hal 
 > pins to a different file. 
 > Frankly I've mostly extended upon examples, and what happpened  was 
 > simple 
 > to follow but in Machineface I can't seem to find out what's happening 
 > when. 
 > 
 > I have come up with the following setup: 
 > 3 files: 
 > - UI.qml (this is the main app) 
 > - Buttons_tab.qml (now holding what was previously in UI) 
 > - Io_tab.qml 
 > 
 > in UI.qml I've added: 
 > ``` 
 > TabView { 
 > id: mainTab 
 > frameVisible: false 
 > anchors.left: toolBar.right 
 > anchors.right: displayPanel.left 
 > anchors.top: parent.top 
 > anchors.bottom: parent.bottom 
 > anchors.rightMargin: Screen.pixelDensity 
 > anchors.leftMargin: Screen.pixelDensity 
 > 
 > Buttons_tab { } 
 > Io_tab { } 
 > } 
 > ``` 
 > 
 > When running machinekit-client I get the message in the window after 
 > connecting: 
 > 
 > ``` 
 > No error 
 > pin count mismatch:pb comp=1 hal comp=24 
 > ``` 
 > 
 > I probably missed something trivial. 
 > Any thoughts or pointers to understanding what I do wrong? 
 > 
 > Cheers, 
 > Bas 
 
 
 -- 
 Alexander
>> 
>> -- 
>> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
>> https://github.com/machinekit
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Machinekit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to machinekit+unsubscr...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/machinekit.
>> For more options, visit https://groups.google.com/d/optout.


-- 
Alexander

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Moving QtQuickVCP buttons/pins to tabs give pin count mismatch error

2017-05-17 Thread Bas de Bruijn


> On 17 May 2017, at 12:04, Klemen Zhivko  wrote:
> 
> According to my experience I think for connecting remote components both 
> components need to have same number (and same type) of pins.
> So if you adding pins in UI you should add them also in hal file.
> I am using hal file to create remote comp, but they can be also python 
> created and mk side.
> 
> I received similar errors when any of sides (client or server) had different 
> number of pins on component.

That's correct. But  I've only moved the pins to the tab so that hasn't 
changed. Also the tab is active, and while the UI starts, the buttons show the 
round circle in their upper right corner that they aren't 
connected/synchronized.

> 
> Dne četrtek, 11. maj 2017 16.24.18 UTC+2 je oseba Bas de Bruijn napisala:
>> 
>> 
>> 
>>> On Thursday, May 11, 2017 at 2:40:36 PM UTC+2, Alexander Rössler wrote:
>>> Make sure your Tab is active: true
>> 
>> I've added that, but it doesn't fix the problem.
>> referring to the thread Marius linked to, do I need to change the 
>> "servicewindow" (whatever that is)?
>> could you enlighten me a bit? Because I obviously have no clue about what's 
>> going on with QtQuick.
>> 
>> 
>>> 
>>> Bas de Bruijn writes: 
>>> 
>>> > Hi, 
>>> > 
>>> > I've been building single QtQuickVCP window UI's in the past, and today I 
>>> > try to build some tabs into my UI. 
>>> > I'd like to have a tab with buttons, and a tab with IO's for inspecting 
>>> > HAL 
>>> > pins. So for this I looked into Machineface and I moved my buttons and 
>>> > hal 
>>> > pins to a different file. 
>>> > Frankly I've mostly extended upon examples, and what happpened  was 
>>> > simple 
>>> > to follow but in Machineface I can't seem to find out what's happening 
>>> > when. 
>>> > 
>>> > I have come up with the following setup: 
>>> > 3 files: 
>>> > - UI.qml (this is the main app) 
>>> > - Buttons_tab.qml (now holding what was previously in UI) 
>>> > - Io_tab.qml 
>>> > 
>>> > in UI.qml I've added: 
>>> > ``` 
>>> > TabView { 
>>> > id: mainTab 
>>> > frameVisible: false 
>>> > anchors.left: toolBar.right 
>>> > anchors.right: displayPanel.left 
>>> > anchors.top: parent.top 
>>> > anchors.bottom: parent.bottom 
>>> > anchors.rightMargin: Screen.pixelDensity 
>>> > anchors.leftMargin: Screen.pixelDensity 
>>> > 
>>> > Buttons_tab { } 
>>> > Io_tab { } 
>>> > } 
>>> > ``` 
>>> > 
>>> > When running machinekit-client I get the message in the window after 
>>> > connecting: 
>>> > 
>>> > ``` 
>>> > No error 
>>> > pin count mismatch:pb comp=1 hal comp=24 
>>> > ``` 
>>> > 
>>> > I probably missed something trivial. 
>>> > Any thoughts or pointers to understanding what I do wrong? 
>>> > 
>>> > Cheers, 
>>> > Bas 
>>> 
>>> 
>>> -- 
>>> Alexander
> 
> -- 
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
> https://github.com/machinekit
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to machinekit+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Moving QtQuickVCP buttons/pins to tabs give pin count mismatch error

2017-05-17 Thread Klemen Zhivko
According to my experience I think for connecting remote components both 
components need to have same number (and same type) of pins.
So if you adding pins in UI you should add them also in hal file.
I am using hal file to create remote comp, but they can be also python 
created and mk side.

I received similar errors when any of sides (client or server) had 
different number of pins on component.

Dne četrtek, 11. maj 2017 16.24.18 UTC+2 je oseba Bas de Bruijn napisala:
>
>
>
> On Thursday, May 11, 2017 at 2:40:36 PM UTC+2, Alexander Rössler wrote:
>>
>> Make sure your Tab is active: true 
>>
>
> I've added that, but it doesn't fix the problem.
> referring to the thread Marius linked to, do I need to change the 
> "servicewindow" (whatever that is)?
> could you enlighten me a bit? Because I obviously have no clue about 
> what's going on with QtQuick.
>
>
>
>> Bas de Bruijn writes: 
>>
>> > Hi, 
>> > 
>> > I've been building single QtQuickVCP window UI's in the past, and today 
>> I 
>> > try to build some tabs into my UI. 
>> > I'd like to have a tab with buttons, and a tab with IO's for inspecting 
>> HAL 
>> > pins. So for this I looked into Machineface and I moved my buttons and 
>> hal 
>> > pins to a different file. 
>> > Frankly I've mostly extended upon examples, and what happpened  was 
>> simple 
>> > to follow but in Machineface I can't seem to find out what's happening 
>> when. 
>> > 
>> > I have come up with the following setup: 
>> > 3 files: 
>> > - UI.qml (this is the main app) 
>> > - Buttons_tab.qml (now holding what was previously in UI) 
>> > - Io_tab.qml 
>> > 
>> > in UI.qml I've added: 
>> > ``` 
>> > TabView { 
>> > id: mainTab 
>> > frameVisible: false 
>> > anchors.left: toolBar.right 
>> > anchors.right: displayPanel.left 
>> > anchors.top: parent.top 
>> > anchors.bottom: parent.bottom 
>> > anchors.rightMargin: Screen.pixelDensity 
>> > anchors.leftMargin: Screen.pixelDensity 
>> > 
>> > Buttons_tab { } 
>> > Io_tab { } 
>> > } 
>> > ``` 
>> > 
>> > When running machinekit-client I get the message in the window after 
>> > connecting: 
>> > 
>> > ``` 
>> > No error 
>> > pin count mismatch:pb comp=1 hal comp=24 
>> > ``` 
>> > 
>> > I probably missed something trivial. 
>> > Any thoughts or pointers to understanding what I do wrong? 
>> > 
>> > Cheers, 
>> > Bas 
>>
>>
>> -- 
>> Alexander 
>>
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Moving QtQuickVCP buttons/pins to tabs give pin count mismatch error

2017-05-11 Thread Bas de Bruijn


On Thursday, May 11, 2017 at 2:40:36 PM UTC+2, Alexander Rössler wrote:
>
> Make sure your Tab is active: true 
>

I've added that, but it doesn't fix the problem.
referring to the thread Marius linked to, do I need to change the 
"servicewindow" (whatever that is)?
could you enlighten me a bit? Because I obviously have no clue about what's 
going on with QtQuick.



> Bas de Bruijn writes: 
>
> > Hi, 
> > 
> > I've been building single QtQuickVCP window UI's in the past, and today 
> I 
> > try to build some tabs into my UI. 
> > I'd like to have a tab with buttons, and a tab with IO's for inspecting 
> HAL 
> > pins. So for this I looked into Machineface and I moved my buttons and 
> hal 
> > pins to a different file. 
> > Frankly I've mostly extended upon examples, and what happpened  was 
> simple 
> > to follow but in Machineface I can't seem to find out what's happening 
> when. 
> > 
> > I have come up with the following setup: 
> > 3 files: 
> > - UI.qml (this is the main app) 
> > - Buttons_tab.qml (now holding what was previously in UI) 
> > - Io_tab.qml 
> > 
> > in UI.qml I've added: 
> > ``` 
> > TabView { 
> > id: mainTab 
> > frameVisible: false 
> > anchors.left: toolBar.right 
> > anchors.right: displayPanel.left 
> > anchors.top: parent.top 
> > anchors.bottom: parent.bottom 
> > anchors.rightMargin: Screen.pixelDensity 
> > anchors.leftMargin: Screen.pixelDensity 
> > 
> > Buttons_tab { } 
> > Io_tab { } 
> > } 
> > ``` 
> > 
> > When running machinekit-client I get the message in the window after 
> > connecting: 
> > 
> > ``` 
> > No error 
> > pin count mismatch:pb comp=1 hal comp=24 
> > ``` 
> > 
> > I probably missed something trivial. 
> > Any thoughts or pointers to understanding what I do wrong? 
> > 
> > Cheers, 
> > Bas 
>
>
> -- 
> Alexander 
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.