c# Motion control software  - Page 1
Forum section: electronics / projects

author: Alex QW
author_rank: Contributor
timestamp: October 26, 2023, 09:37:55 am
content: Hi guys,I need to write c# motion control software just like as shown in the picture in the attachment do you guys know any platform that has an example code for me to kick start?

author: ajb
author_rank: Super Contributor
timestamp: October 26, 2023, 02:46:36 pm
content: Which part are you having trouble with? We can't really begin to help you from just a screenshot like this and zero additional information.That looks like a complicated piece of software that controls complicated motion control hardware. In particular, it appears to be configuring motion control cards (PCI, PCIe) that are probably doing the heavy lifting as far as motion calculations and timing. Do you have hardware like that? The software will depend a lot on what kind of hardware you are controlling. Other aspects, like the UI, will depend a lot on what platform(s) you need this software to run on -- none of that is specific to what the application does, really, so once you know what kind of UI you need there are tons of frameworks and tutorials out there.

author: AndyBeez
author_rank: Frequent Contributor
timestamp: October 26, 2023, 04:00:38 pm
content: The MC rigs I have seen border on robotic systems programming. Writing the UI is the easy bit. Obtaining the specifications of the hardware controller protocols may be impossible. There are standards, but which ones? C# does have a serial library, but what MC rigs are you commanding?

author: samofab
author_rank: Regular Contributor
timestamp: October 26, 2023, 05:12:03 pm
content: ADLINK has SDK which you can use to create your own user interface. Of course provided that you're using their hardware.Some motion systems use simple interfaces like RS-485 to communicate with both the encoder and the drive - you can then read the hardware manual and use any language you like to talk to it.Perhaps a better way for this forum to help you is to give us details of what you're trying to achieve and what are your contraints. Programming language constraint is the least relevant of the bounch.

author: Alex QW
author_rank: Contributor
timestamp: October 27, 2023, 02:51:24 am
content: May I know if any web providing tutorial about Visual Studio c# UI motion control programming? Adlink is just a reference for you guys to have a better picture.

author: ajb
author_rank: Super Contributor
timestamp: October 27, 2023, 03:09:05 am
content: Quote from: Alex QW on October 27, 2023, 02:51:24 amThere are lots of tutorials out there for using visual studio and C# to create UIs. I don't know about tutorials, but there are definitely references for motion control theory and some open source motion control projects. You're probably not going to find a tutorial that covers Visual StudioandC#andUI developmentandmotion control that does whatever it is you want to do. You're gonna have to put some of this together yourself, and you should start by getting a lot more specific about what you're trying to achieve.

author: Alex QW
author_rank: Contributor
timestamp: October 27, 2023, 06:47:45 am
content: Any recommended website that provides a lot of example code about motion control

author: coromonadalix
author_rank: Super Contributor
timestamp: October 27, 2023, 08:02:08 am
content: You will get the same answers as doing your own research i think

author: zapta
author_rank: Super Contributor
timestamp: November 02, 2023, 06:46:07 pm
content: What you need are two pieces of software1. A software that implement the interface (API) to control the devices, with a reasonable level of abstraction. E.g. move from x to y at speed a. This will be a set of functions that you can call to perform the movements, and that knows how to transform those requests to low level commands to the actual devices you use. Do you know what devices you want to control? Do you know what communication protocol or APIs they provide? Determining this should be your first step, before getting into the UI, what devices you want to control and what interfaces do they provide.2. A software that implement the user interface. This software uses the APIs above to a) display the status to the user and b) translate the user commands to API calls that perform the movement.Hope it helps.