- Posts: 31
- Thank you received: 0
qdragon.var file from PYTHON
4 years 7 months ago #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)
Please Log in to join the conversation.
4 years 7 months ago #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 to join the conversation.
4 years 7 months ago #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 to join the conversation.
Time to create page: 0.136 seconds
