Engine information panel
- MarkoPolo
- Offline
- Elite Member
Less
More
- Posts: 263
- Thank you received: 71
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
Engine information panel was created 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.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7760
- Thank you received: 2055
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.
- MarkoPolo
- Offline
- Elite Member
Less
More
- Posts: 263
- Thank you received: 71
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?
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19419
- Thank you received: 6512
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.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7760
- Thank you received: 2055
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.
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.
- MarkoPolo
- Offline
- Elite Member
Less
More
- Posts: 263
- Thank you received: 71
02 Jul 2023 18:21 #274654
by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
Attachments:
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
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.
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.
- MarkoPolo
- Offline
- Elite Member
Less
More
- Posts: 263
- Thank you received: 71
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.
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.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
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).
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.
- MarkoPolo
- Offline
- Elite Member
Less
More
- Posts: 263
- Thank you received: 71
04 Jul 2023 22:08 #274795
by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
Attachments:
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.105 seconds