Carlos Jimenez - Encopim
2018-09-20 08:02:28 UTC
Hello,
I have a problem and I do not know if someone could help me.
I have a system where it seems that the cycles are delayed in time. I
configure a cycle at 5kHz of 10 seconds, and I take out an analog signal to
measure it with an external system.
In the cycle I collect the time through the instructions rt_get_time_ns ()
and rt_get_cpu_time_ns (), and according to the results, the cycle completes
correctly in 10 seconds (with nanoseconds of difference), but instead,
looking in the external system, I have always a delay of up to 2
milliseconds.
If I do not restart the computer, this delay remains constant, and each time
I restart the computer, this delay is modified.
It seems a problem directly with the computer (Siemens IPC427D), but does
anyone have any ideas?
Thank you in advance and best regards
I have a problem and I do not know if someone could help me.
I have a system where it seems that the cycles are delayed in time. I
configure a cycle at 5kHz of 10 seconds, and I take out an analog signal to
measure it with an external system.
In the cycle I collect the time through the instructions rt_get_time_ns ()
and rt_get_cpu_time_ns (), and according to the results, the cycle completes
correctly in 10 seconds (with nanoseconds of difference), but instead,
looking in the external system, I have always a delay of up to 2
milliseconds.
If I do not restart the computer, this delay remains constant, and each time
I restart the computer, this delay is modified.
It seems a problem directly with the computer (Siemens IPC427D), but does
anyone have any ideas?
Thank you in advance and best regards