Real-time measurements of 3D cardiac microtissue electrical activity integrated in a beating heart-on-chip