Preference File

More
21 May 2020 17:58 #168506 by hottabich
Replied by hottabich on topic Preference File
Installation error pip install pyQtWebKit: jura@debian:~$ sudo pip install pyQtWebKit
[sudo] пароль для jura:
Collecting pyQtWebKit
Could not find a version that satisfies the requirement pyQtWebKit (from versions: )
No matching distribution found for pyQtWebKit
jura@debian:~$

Please Log in or Create an account to join the conversation.

More
21 May 2020 18:09 #168507 by persei8
Replied by persei8 on topic Preference File
Try this:
sudo apt-get install libqt5webkit5
The following user(s) said Thank You: hottabich

Please Log in or Create an account to join the conversation.

More
21 May 2020 18:37 #168509 by hottabich
Replied by hottabich on topic Preference File
It has already been installed. QtDragon-master should open as an interface? In Qtpyvcp html opens in a separate tab, but as in QtDragon?

Please Log in or Create an account to join the conversation.

More
21 May 2020 19:03 #168513 by persei8
Replied by persei8 on topic Preference File
OK, how it works in qtdragon is open the FILE page, select an HTML file and then click LOAD FILE. This will automatically open the SETUP page. The source code of how it's all done is in the github repo previously referenced.
Jim

Please Log in or Create an account to join the conversation.

More
21 May 2020 19:12 #168514 by hottabich
Replied by hottabich on topic Preference File
Thank you so much, I will study!

Please Log in or Create an account to join the conversation.

More
22 May 2020 19:01 #168599 by hottabich
Replied by hottabich on topic Preference File
With html all ok! Help please connect Run Time. I can not get signal how in
QtDragon master.
Attachments:

Please Log in or Create an account to join the conversation.

More
22 May 2020 22:38 #168609 by persei8
Replied by persei8 on topic Preference File
In your postgui hal file, you need:

loadrt time
addf time.0 servo-thread

then connect the signals:
#program runtime
net runtime time.0.start <= halui.program.is-running
net pausetime time.0.pause <= halui.program.is-paused
net runtime_sec qtdragon.runtime_sec <= time.0.seconds
net runtime_min qtdragon.runtime_min <= time.0.minutes
net runtime_hrs qtdragon.runtime_hrs <= time.0.hours
The following user(s) said Thank You: hottabich

Please Log in or Create an account to join the conversation.

More
23 May 2020 15:24 #168691 by hottabich
Replied by hottabich on topic Preference File
I did this and got an error. Start and pause have been already linked to start led and pause led. With your help, I understood, fixed it and now everything works. Thank you and my respect to you!
The following user(s) said Thank You: persei8

Please Log in or Create an account to join the conversation.

More
23 May 2020 21:56 #168726 by cmorley
Replied by cmorley on topic Preference File

persei8 wrote: In your postgui hal file, you need:

loadrt time
addf time.0 servo-thread

then connect the signals:
#program runtime
net runtime time.0.start <= halui.program.is-running
net pausetime time.0.pause <= halui.program.is-paused
net runtime_sec qtdragon.runtime_sec <= time.0.seconds
net runtime_min qtdragon.runtime_min <= time.0.minutes
net runtime_hrs qtdragon.runtime_hrs <= time.0.hours


I think this is something you should consider programming into the handler file rather then make users connect HAL pins for.
using STATUS to catch running and pausing and STATUS update to cause the time display widget to update.
The following user(s) said Thank You: hottabich

Please Log in or Create an account to join the conversation.

More
24 May 2020 01:10 #168753 by persei8
Replied by persei8 on topic Preference File
I guess I can't see the forest for the trees. By 'time display widget' do you mean the timestamp statuslabel? I already have one for displaying the clock. What is the exact signal name for STATUS update? There's no such thing as :
STATUS.connect('update', etc)

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.115 seconds
Powered by Kunena Forum