Engine information panel

More
01 Jul 2023 21:16 #274614 by MarkoPolo
 
He writes a panel for monitoring the temperature of engines.
The fields at the top are editable.
How can I make it save these names in the preferences file to restore the names after restarting the program?
I would also like to add engine RPM.
Is there a simple way to read the rpm from linuxcnc, or do you have to calculate from the feed rate?
Marek
Attachments:

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

More
02 Jul 2023 14:33 #274644 by cmorley
Replied by cmorley on topic Engine information panel
This looks like qtvcp not pyqtvcp - or is the added panel pyqtvcp?

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

More
02 Jul 2023 16:17 #274645 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
Yes, qtvcp. I used the spindle_belts panel as a source.
I have motors built in quite a small space and I want to control their temperature.
I would like to add engine RPM.
How to get engine RPM value?

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

More
02 Jul 2023 16:22 #274646 by tommylight
Replied by tommylight on topic Engine information panel
Moved to "QtVCP" section.
The following user(s) said Thank You: MarkoPolo

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

More
02 Jul 2023 16:44 #274649 by cmorley
Replied by cmorley on topic Engine information panel
linuxcnc.org/docs/2.9/html/gui/qtvcp-vcp...ler_programming_tips

mentions how to use the main screen's preference file for an embedded panel.

Most stepper/servo components have a velocity pin to connect to.
The following user(s) said Thank You: MarkoPolo

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

More
02 Jul 2023 18:21 #274654 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
There is exception: in the documentation, but it doesn't work.
Shouldn't be except: ?

 
Attachments:

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

More
02 Jul 2023 20:15 #274661 by rodw
Replied by rodw on topic Engine information panel
I wrote the belts panel with a lot of help from Chris.
The final files are here in the development thread:
forum.linuxcnc.org/qtvcp/48061-how-to-ma...n-hd?start=70#270283
It shows how to save and retrieve values from the .ui file.
To change the field names displayed should not be hard. You just need to set the label or name. i don't use this enough to be specific,

And yes I think exception should be except.

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

More
02 Jul 2023 21:06 #274663 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
Yes, the titles of individual sections with engines already work for me, it saves and reads from the preferences file.
I don't know yet from which pin I can read the engine speed.

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

More
03 Jul 2023 08:03 #274680 by rodw
Replied by rodw on topic Engine information panel
I don't think you can get motor RPM. Motor velocity as it is translated to velocity. joint.L.vel-cmd  gives you the commanded velocity but that might not reflect actual velocity.
If you really wanted RPM you would need to scale it based on the parameters you entered into stepconf or pncconf.
But motion.current-vel is the only one that gives actual velocity (of all joints). 
​​​

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

More
04 Jul 2023 22:08 #274795 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
I also thought that you would need to calculate engine revolutions, for now the panel will remain without engine revolutions.
The panel is pre-ready.
If anyone needs something similar, I can share it.

 
Attachments:

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

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