Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Dynamic simulations

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008, 12:24 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default Dynamic simulations

I have written a program for Dynamic Simulations of Motion Control systems composed of:
A control system with loops and feed forwards
- Position loop
- Speed loop
- Acceleration feed forward
- Jerk feed forward
A drive plus motor
A mechanical load linked to the motor with a stiffness (spring).

With a motion generator and graphical data processing capabilities.

The goal of the program is to allow better knowledge of the influence of the different parameters of the model on the dynamic behaviour.

There is still a lot to do and to test, but the program is at a stage where I would be pleased to know if there is any interest and if somebody could test it and give me feedback on bugs, improvements and evolution suggestions.

Unfortunately the program is very slow on the device Qtek 9090.
The calculation time with the default model, 3600 samples, is
- 1.5 s optimized compiled on the desktop
- 15 s in the IDE
- 150 s optimized compiled on the Qtek 9090

In the future I will try to improve the speed of the code (declare Double variables not done yet, try to minimize the number of mathematical operations)

A help file, in English, is joined.
The texts in the program are in English, French, German and half in Italian.

If there is an interest I would write a kind of Tutorial with examples and some theoretical background.

I hope that the program will be any interest.

Best regards


2008.03.31 Update to V1.1
Bug removal
Added a short tutorial

2008.11.20 Update to V2.1 desktop only
removed old version
__________________
Klaus
Switzerland

Last edited by klaus : 11-20-2008 at 07:58 AM.
Reply With Quote
  #2 (permalink)  
Old 03-28-2008, 12:34 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Klaus,
Got no clue whatsoever about what the application does (Elektrotechnik, I suppose), but the design looks great as all your fine works.
Congratulations!
Robert
Reply With Quote
  #3 (permalink)  
Old 03-29-2008, 02:51 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hallo Robert,

It seems that the text in my post is not clear for everybody.

The program makes dynamic simulations for Motion Control systems.

These kind of systems are used in positionning systems in machinery, where we would have a mechanical part perform a certain motion during a given time.

The mechanical part is driven by an electrical motor.
The coupling in between is mainly not infinitly stiff and has a certain elasticity, which is taken into account.

The motor is driven by a control unit called drive.

The input signal of the control unit is the desired motion, at least position and speed and for better performance acceleration and jerk (derivative of acceleration).

To make the system follow the desired motion, the control unit measures the position and the speed of the motor, compares those with the desired motion values and with the error signals acts on the motor. These are the so called control loops, position loop and speed loop.

The whole system is mathematically described with differential equations.
The program generates the motion input signals and solves the differential equations in function of time and saves the values of the signals in an array.
The graphics module allows to show these values in curves which can be processed afterwords.

The parameters of the different elements can of course be changed to simulate different systems or to study the influence of parameter variations on the dynamic behaviour of the whole system.

The goal of the program is to get more experience in such systems by making simulations and analysing the influence of the parameters.

I am on the way to write a small tutorial with examples.

I hope this clarifies a bit more what the program can do, and I hope that I did not add a new smoke curtain.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #4 (permalink)  
Old 03-31-2008, 04:34 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

An updated version V1.1 is available in the 1st post.
- Bug removal
- Added a short tutorial

Best regards
__________________
Klaus
Switzerland
Reply With Quote
  #5 (permalink)  
Old 11-19-2008, 02:32 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Here is a new desktop only version of the DynSim program.

The capabilities of the program are the same as described in the first post.

I think this program shows what can be done with Basic4PPC even for desktop only programs.

My thank's go to Erel for the language and to
agraham for his libraries and his valuable help.
I took advantage of the new ImageLibEx and the ControlsExDesktop libraries and also of the Door library (with agraham's help)

I would be pleased if some of you could test it, report bugs and give improvement suggestions.

The texts in the program can be choosen between English, French, German and Italian. The Italian translation is not complete.

There exist help files in english and french but unfortunately they are too big, even zipped, to fit into the forum. If you are interested in, send me an e-mail and I will send you the help file(s).

There are two zip files:
- source code with all needed files
- exe code with the minimum needed files

Thank's in advane to the beta testers and Best regards.
Attached Images
File Type: jpg DynSim2.jpg (88.3 KB, 89 views)
Attached Files
File Type: zip DynSimDeskZip.zip (159.0 KB, 79 views)
File Type: zip DynSimExe.zip (182.6 KB, 66 views)
__________________
Klaus
Switzerland

Last edited by klaus : 11-20-2008 at 08:02 AM.
Reply With Quote
  #6 (permalink)  
Old 11-19-2008, 04:55 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

WOW!
It really looks amazing.
One small problem I encountered is that when you open the graphics module and press on the upper arrow (right - upper corner) you get an "out of array range" error.
Also the CHM file is missing.
__________________
Basic4android documentation
Reply With Quote
  #7 (permalink)  
Old 11-19-2008, 06:13 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank you Erel.
The bug is changed, I will wait if there are some others and will post an updated version then.

About the chm files, unfortunately they are too big to fit in the forum. The DynSimE.chm is 766Kb big and evenen zipped it si still 754Kb big.
Does there exist an other mean to include the file ?

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #8 (permalink)  
Old 11-19-2008, 06:21 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

If you like you can sent it to me: erel@basic4ppc.com and I'll upload it to the site.
__________________
Basic4android documentation
Reply With Quote
  #9 (permalink)  
Old 11-19-2008, 06:55 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The links to the manuals are:
www.basic4ppc.com/files/DynSimHelpE.zip
www.basic4ppc.com/files/DynSimHelpF.zip
__________________
Basic4android documentation
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I manipulate objects with dynamic names ? origami Questions (Windows Mobile) 2 05-31-2008 03:30 PM
Speed of dynamic control creation willisgt Questions (Windows Mobile) 4 12-05-2007 02:52 PM
GPS Mouse dynamic platform setting lucifer1 Share Your Creations 0 06-03-2007 08:14 PM


All times are GMT. The time now is 01:34 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0