Here are sample codes to learn how to program in CPAL. You can browse the code examples using the index and execute them right away in the CPAL Playground.
- activation jitter :
- activation, state-dependent :
- activation, time-triggered :
- activation, triggered :
- annotation, period :
- annotation, priority :
- annotation, state :
- annotation, time :
- annotation, transition :
- architecture, diagram customisation :
- architecture, pattern :
- argument, unconstrained array :
- array, unconstrained :
- bit banging :
- block, common :
- block, named :
- channel :
- code in transition :
- collection :
- cruise control :
- csv :
- currying :
- declaration, variable :
- empty init :
- enum :
- enumeration :
- equality :
- execution order :
- execution time :
- exit :
- filter, low-pass :
- finally :
- frdm k64f :
- function :
- Generalized Multiframe Tasks :
- GPIO :
- guarded execution :
- identifier of process :
- IMU :
- init() function :
- introspection :
- LCD :
- linuxmbed :
- loop over :
- mode, real-time :
- mode, simulation :
- named block :
- next_activations :
- NPEDF :
- NPFP :
- observing automata :
- offset :
- order :
- partial init :
- periodic process :
- philosophers :
- pid :
- process characteristics :
- Process_State :
- protocol, communication :
- protocol, publish subscribe :
- pwm :
- PWM :
- queue :
- random :
- random, collection :
- random, enum :
- random, exponential distribution :
- random, gaussian distribution :
- random, pareto distribution :
- random, seed :
- random, time64 :
- random, uniform distribution :
- Raspberry Pi :
- scheduling :
- self, offset :
- self, period :
- self, pid :
- self.continue :
- serial port, tty :
- serial port, uart :
- servotester :
- simulation :
- sinusoid :
- sleep() :
- sorted queue :
- stack :
- state, common :
- string, as function argument :
- string, format data into string :
- string, size :
- structure :
- structure, complex :
- structure, definition :
- structure, static :
- sub-process :
- subprocess :
- system :
- task model :
- taylor series :
- time units :
- time64 :
- time64, type :
- time64.time() :
- timing annotation, deadline :
- timing annotation, jitter :
- timing annotation, period :
- timing annotation, scheduling :
- timing annotation, time :
- timing-accurate simulation :
- transition, boolean :
- transition, conditional :
- transition, timed :
- transition, timed and boolean :
- transition, timed and conditional :
- trigonometry :
- udp, network :
- variable, global :
- variable, initialisation :
- variable, local :
- variable, scope :
- variable, static :
- wakeup_at() :
- xbee :