Page 1 of 1
Window interface for configuring programs in C
Posted: Sun Sep 24, 2023 2:26 pm
by Tarasevih
Hi Tom.
I want to create the most universal C programs for Kmotion CNC and would like to control the variables in these scripts using a window application to make configuration easier for consumers.
According to the type of how you implemented config and flash.
Any hint from yo.
Maybe I can use visual studio to open the config and flash source?
Any advice please.
Regards,
Taras.
Re: Window interface for configuring programs in C
Posted: Sun Sep 24, 2023 4:41 pm
by TomKerekes
Hi Taras,
Not sure exactly what you are asking. We already have the KMotion.exe Windows App to do the configuration and generate C code.
We don't release the KMotion.exe source code because it has our proprietary code for servo tuning, filter generation, Bode Plotting, etc.
Re: Window interface for configuring programs in C
Posted: Mon Sep 25, 2023 5:46 pm
by Tarasevih
Hi Tom.
I understand you Tom, I'll try to do it myself.
Perhaps at some stage your advice as a C++ specialist will be needed
Can I get advice if something happens?
Regards,
Taras.
Re: Window interface for configuring programs in C
Posted: Mon Sep 25, 2023 11:56 pm
by TomKerekes
Hi Taras,
Of course. We can try to answer specific questions.
Good luck.
Re: Window interface for configuring programs in C
Posted: Wed Sep 27, 2023 5:39 am
by Tarasevih
Hi Tom.
I want to collect all the variables that require adjustment from my C programs into one file and then refer to it in other C programs.
In the future I will make a window application to easily edit these variables.
Basically, I need to create a header file with the extension .h ? Or can I just use a .с file?
Regards,
Taras.
Re: Window interface for configuring programs in C
Posted: Thu Sep 28, 2023 4:59 pm
by TomKerekes
Hi Taras,
The C Compiler will include text from any file it doesn't matter. By convention files that only contain definitions are named .h and files containing code are .c