Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A advLigoRTS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 179
    • Issues 179
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • CDS
  • software
  • advLigoRTS
  • Merge requests
  • !220

"Soft realtime" mode for userspace models

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Christopher Wipf requested to merge christopher.wipf/advligorts:softrt into master May 05, 2021
  • Overview 0
  • Commits 2
  • Changes 19

This code, together with the userspace gpstime and mbuf compile-time options, lets models run in a normal Linux host or container as ordinary userspace programs. The models cannot be used to drive ADC/DAC hardware, but can be useful for simulation or testing purposes.

Instead of waiting at the end of each cycle, models wait only at the end of each 16 Hz DAQ block. The rest of the time, they run as fast as they can while staying in sync with each other. As long as they finish each 16 Hz block with several milliseconds to spare, they can absorb the normal OS scheduling jitter.

Enable this by adding softrt=1 to the CDS parameters.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: softrt