qdragon.var file from PYTHON
01 Mar 2022 20:49 - 01 Mar 2022 21:00 #236128
by Mduran
qdragon.var file from PYTHON was created by Mduran
Some way to use the parameters of the qdragon.var file from Python code in the same way that they can be declared from MDI (example: #4000 = 60)
Last edit: 01 Mar 2022 21:00 by Mduran.
Please Log in or Create an account to join the conversation.
02 Mar 2022 00:18 #236147
by andypugh
Replied by andypugh on topic qdragon.var file from PYTHON
I think you could probably just read the file into a string and parse it.
(I would probably use regex)
(I would probably use regex)
Please Log in or Create an account to join the conversation.
02 Mar 2022 03:06 #236152
by cmorley
Replied by cmorley on topic qdragon.var file from PYTHON
I'm not exactly sure how you want to use the varfile data.
You can, qtvcp widget origin_offsetview does this.
You must be careful when you read/write to it as linuxcnc does not monitor it for external changes and only syncs the file at specific times.
You can, qtvcp widget origin_offsetview does this.
You must be careful when you read/write to it as linuxcnc does not monitor it for external changes and only syncs the file at specific times.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.062 seconds