qdragon.var file from PYTHON

More
01 Mar 2022 20:49 - 01 Mar 2022 21:00 #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: 01 Mar 2022 21:00 by Mduran.

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

More
02 Mar 2022 00:18 #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
02 Mar 2022 03:06 #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.101 seconds
Powered by Kunena Forum