|
From: | GoSim |
Subject: | pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds |
Date: | Wed, 16 Oct 2019 15:47:17 -0500 (CDT) |
I use octave as a real time controller and use pause() to get my desired sample time. When I want to get a sample time of 0.01 seconds I get a mean pause of 0.0102 seconds. I tried pause(0.0100000) with the same result. I don't know if it is fixable or if it is a bug but I just wanted to make you aware. I attach a picture with the sample time in a real time environment and you can also see the command tic;pause(.01);toc in the octave console giving the same result. The real time environment is achieved with the chrt command in xubuntu. The graph in the pic shows the sample time which should 0.01 seconds. I hope you fix it! Kind regards. <https://octave.1599824.n4.nabble.com/file/t373066/octave_pause.png> -- Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
[Prev in Thread] | Current Thread | [Next in Thread] |