Bodylight.js

Bodylight.js

  • Docs
  • GitHub

›Physiological application

Getting started

  • Introduction
  • Compiling Modelica

Simple project

  • Creating a simple project
  • Adding the model
  • Visualisation
  • Controls
  • Events and Actions

Physiological application

  • Pressure volume cardiac simulator
  • Creating the layout
  • Adding the heart
  • Heart Beat
  • Controls
  • Phases
  • Pressure volume chart
  • Rolling charts
  • Custom actions
  • Buttons
  • Finishing touches

API

  • Model
  • Plotly chart
  • Range
  • Toggle

Buttons

  • We will add a current marker to the PV chart
  • We must create a duplicate dataset
  • With the same X and Y axes mapping
  • Display only the last marker
  • With the same color
  • Next we will add a reset button
  • And assign it the reset model function
  • Unfortunately the charts are not clearing
  • We need to create an action to clear the charts
  • And assign it to the button
  • Now we have a working reset button
  • We could also use pause and play buttons
  • In the last part we will finish up and export the project

Composer project file (.bjp)

← Custom actionsFinishing touches →
Copyright © 2019 Creative Connections s.r.o.