Skip to main content
Submitted by LeGa on Wed, 09/12/2012 - 00:08

Will be nice to check time of task command execution [b]preliminary[/b] especially for time critical application - by Galil site [b]online[/b] simulator for example.

Comments 7

Galil_DJR on 09/12/2012 - 08:58

Hello,
I am sorry, I don't understand the nature of your request. Can you please rephrase?

LeGa on 09/12/2012 - 15:00

Sorry - and I'll try to explain my question more detailed hereunder.
For time critical application is important to know time of task execution - for example for loop changed jog velocity of slave axis according to difference between Master and Slave position errors (recommended for Gantry mode by Galil many years ago). The time of such loop execution is critical because used for update jog (speed) of Slave axis with high bandwidth.
For example time of loop execution must be 5 times lower then speed loop response at least. I.e. for speed loop bandwidth 100Hz a time of loop execution must be lower than 2mc.
Then - on my opinion - user must have possibility to check time of task execution[b] before[/b] testing it in real application.
Hope it will be more understanding now.-)

Galil_DJR on 09/13/2012 - 13:28

Hello,

I understand. The purpose is to time the execution speed of a given block of code. This can be done directly with:

[code]
t=TIME
REM ** THE TIME CRITICAL CODE GOES HERE **
t=TIME-t
[/code]

Once this executes, the t variable has the execution time in ms (Servo Loop Sample Ticks).

This code can be run on a development controller to benchmark the execution before actually run on a production machine.

Does that answer your question?

LeGa on 09/14/2012 - 05:06

The explanation about such calculation of task execution time I have got inside my post in sub-forum [u]DMC programming[/u] before.
And it be nice to get it [b]without [/b]controller but by [b]online tool inside Galil site[/b] - the name of such tool maybe like [b]Time calculator for tasks execution[/b].

Galil_DJR on 09/14/2012 - 08:38

If you are talking about a compiler or a simulator that would calculate without a controller how much time a given block of code would take, this software does not exist.

A given command can take different times depending upon the application. For example, reading an ADC from a remote device vs. from a daughter board vs. from the local processor.

To get an accurate number for time, the actual hardware should be used.

LeGa on 09/21/2012 - 07:32

OK but using the actual hardware can be late...Of course I talk about standard DMC (from Econo or Accelera series) for time critical applications as well.

Galil_DJR on 09/21/2012 - 08:27

If you still have further questions or concerns, can you please email me directly, djr at galilmc dot com.