qdragon.var file from PYTHON

More
4 years 8 months ago - 4 years 8 months ago #236128 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: 4 years 8 months ago by Mduran.

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

More
4 years 8 months ago #236147 by andypugh
I think you could probably just read the file into a string and parse it.
(I would probably use regex)

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

More
4 years 8 months ago #236152 by cmorley
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.

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

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