Author Topic: c# Motion control software  (Read 1041 times)

0 Members and 1 Guest are viewing this topic.

Offline Alex QWTopic starter

  • Contributor
  • Posts: 23
  • Country: us
c# Motion control software
« on: October 26, 2023, 09:37:55 am »
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? 


 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2693
  • Country: us
Re: c# Motion control software
« Reply #1 on: October 26, 2023, 02:46:36 pm »
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. 
 

Offline AndyBeez

  • Frequent Contributor
  • **
  • Posts: 856
  • Country: nu
Re: c# Motion control software
« Reply #2 on: October 26, 2023, 04:00:38 pm »
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?
 

Offline samofab

  • Regular Contributor
  • *
  • Posts: 150
  • Country: si
Re: c# Motion control software
« Reply #3 on: October 26, 2023, 05:12:03 pm »
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.
 

Offline Alex QWTopic starter

  • Contributor
  • Posts: 23
  • Country: us
Re: c# Motion control software
« Reply #4 on: October 27, 2023, 02:51:24 am »
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.
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2693
  • Country: us
Re: c# Motion control software
« Reply #5 on: October 27, 2023, 03:09:05 am »
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.

There 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 Studio and C# and UI development andmotion 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. 
 

Offline Alex QWTopic starter

  • Contributor
  • Posts: 23
  • Country: us
Re: c# Motion control software
« Reply #6 on: October 27, 2023, 06:47:45 am »
Any recommended website that provides a lot of example code about motion control
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 6342
  • Country: ca
Re: c# Motion control software
« Reply #7 on: October 27, 2023, 08:02:08 am »
You will get the same answers as doing your own research i think ???
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6243
  • Country: us
Re: c# Motion control software
« Reply #8 on: November 02, 2023, 06:46:07 pm »
What you need are two pieces of software

1. 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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf