M
Hi all,
I have commited an update to the period library.
It now uses POSIX timers and signals to correctly execute the modules periodically. The use of POSIX timers requires that any executable also be linked to the librt library. For this reason all the Makefiles were also changed in order to add LDFLAGS = -lrt
Is there any other way to do this without having to change every Makefile?
Is this library present in every flavour of Linux?
I did not change the lang/tcl Makefile, as it is automatically generated by autoconf. Greg, do you think you could add this somehow to the Makefile.in file so we can get the tcl extension to work again?
The scan period of a module is now configured using the following syntax:
[module_name]
scan_period = xxxx
where xxx is a floating point number, representing the period in seconds.
Jiri, I don't think that using a f32 for the scan_period is going to work. I now feel that the f32 precision is not enough. I thought it gave
10 digit precision, but it seems I was wrong. For example, when I set a period of 0.3 sec, this gets read as 0 + 0.300000011 sec. (NOTE: the
period is counted and stored as two u32. The float is only used to read the value from the config file). Maybe if we read it in as a long double? Note that if we get 9 digit precision that would mean less than one second error every three years. What does everybody think? Is this enough?
Cheers,
Mario.
--
----------------------------------------------------------------------------
Mario J. R. de Sousa
[email protected]
----------------------------------------------------------------------------
The box said it requires Windows 95 or better, so I installed Linux
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
I have commited an update to the period library.
It now uses POSIX timers and signals to correctly execute the modules periodically. The use of POSIX timers requires that any executable also be linked to the librt library. For this reason all the Makefiles were also changed in order to add LDFLAGS = -lrt
Is there any other way to do this without having to change every Makefile?
Is this library present in every flavour of Linux?
I did not change the lang/tcl Makefile, as it is automatically generated by autoconf. Greg, do you think you could add this somehow to the Makefile.in file so we can get the tcl extension to work again?
The scan period of a module is now configured using the following syntax:
[module_name]
scan_period = xxxx
where xxx is a floating point number, representing the period in seconds.
Jiri, I don't think that using a f32 for the scan_period is going to work. I now feel that the f32 precision is not enough. I thought it gave
10 digit precision, but it seems I was wrong. For example, when I set a period of 0.3 sec, this gets read as 0 + 0.300000011 sec. (NOTE: the
period is counted and stored as two u32. The float is only used to read the value from the config file). Maybe if we read it in as a long double? Note that if we get 9 digit precision that would mean less than one second error every three years. What does everybody think? Is this enough?
Cheers,
Mario.
--
----------------------------------------------------------------------------
Mario J. R. de Sousa
[email protected]
----------------------------------------------------------------------------
The box said it requires Windows 95 or better, so I installed Linux
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc