Window interface for configuring programs in C

Moderators: TomKerekes, dynomotion

Post Reply
Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Window interface for configuring programs in C

Post by Tarasevih » Sun Sep 24, 2023 2:26 pm

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.

User avatar
TomKerekes
Posts: 2604
Joined: Mon Dec 04, 2017 1:49 am

Re: Window interface for configuring programs in C

Post by TomKerekes » Sun Sep 24, 2023 4:41 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Window interface for configuring programs in C

Post by Tarasevih » Mon Sep 25, 2023 5:46 pm

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.

User avatar
TomKerekes
Posts: 2604
Joined: Mon Dec 04, 2017 1:49 am

Re: Window interface for configuring programs in C

Post by TomKerekes » Mon Sep 25, 2023 11:56 pm

Hi Taras,

Of course. We can try to answer specific questions.

Good luck.
Regards,

Tom Kerekes
Dynomotion, Inc.

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Window interface for configuring programs in C

Post by Tarasevih » Wed Sep 27, 2023 5:39 am

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.

User avatar
TomKerekes
Posts: 2604
Joined: Mon Dec 04, 2017 1:49 am

Re: Window interface for configuring programs in C

Post by TomKerekes » Thu Sep 28, 2023 4:59 pm

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
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply