Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I have try to use this method to read the temperature in a patched_rt kernel.
I had to pass the function to an assync task, if not watchdog rises.
But passing to assink, the jitter in main task increases to some ms. I sopose that is caused because the external call is made with same priorities as cidesys is running and the main task interrupt is blocked.
Can I call the system function changing process owner or priority or....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am a programming novice. I tried to use the function described in previous
posts.
But I am not sure what I am doing wrong. I do not get a temperature back.
When I type it in the command window of the Pi I get a temperature.
I only want to read it every 2000th cycle.
Thanks for any suggestions.
Andreas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dears.
I have try to use this method to read the temperature in a patched_rt kernel.
I had to pass the function to an assync task, if not watchdog rises.
But passing to assink, the jitter in main task increases to some ms. I sopose that is caused because the external call is made with same priorities as cidesys is running and the main task interrupt is blocked.
Can I call the system function changing process owner or priority or....
Hello everyone
I am a programming novice. I tried to use the function described in previous
posts.
But I am not sure what I am doing wrong. I do not get a temperature back.
When I type it in the command window of the Pi I get a temperature.
I only want to read it every 2000th cycle.
Thanks for any suggestions.
Andreas
Hi,
did you enable the command in /etc/CODESYSControl_User.cfg ?
[SysProcess]
Command.0=shutdown
Command.1=yourshellcommand
BR
Edwin
Dear Edwin
I added your suggestions to the CODESYSControl.cfg file but it is still not working.
I bootet the whole system.
Any other hints?
Thanks Andreas
sorry remove it from /etc/CODESYSControl.cfg
my fault it should be in /etc/CODESYSControl_User.cfg
and
yourshellcommand = vcgencmd
or possible is (either allow single commands or all):
[SysProcess] Command=AllowAll
to allow every shell command
BR
Edwin
Thank you Edwin, now it
works.
I should read more carefully.
Best regards
Andreas