Skip to main content
Have a personal or library account? Click to login
Cuspis: A MATLAB Suite for Tasks Investigating Heart-Brain Interactions during fMRI Cover

Cuspis: A MATLAB Suite for Tasks Investigating Heart-Brain Interactions during fMRI

Open Access
|Dec 2023

Figures & Tables

Table 1

Cuspis’ functions.

NAMEPURPOSE
setApiSet the BHAPI to use.
setDaqSet the DAQ to use.
openApiSwitch on the BHAPI.
closeApiSwitch off the BHAPI.
plotLiveSignalPlot the ECG in real time.
recSignalRecord the ECG for a specific duration.
getEcgThreshCompute the ECG threshold for triggering a trial.
prepStimDefines the settings for the stimulus presentation.
triggerTrialTrigger the stimulus presentation according to a threshold and specific stimulus settings. The stimulus presentation can be single or multiple (cardio-visual stimulation).
plotTrialPlot the trial data: onsets and offsets of events.
jors-11-476-g4.png
jors-11-476-g5.png
Figure 1

ECG inside the MRI scanner. All things being equal, participants’ compliance and preparation determine the legibility of the ECG’s R-waves used in the cardiac cycle manipulation. The figure shows the ECG of a participant who did not comply with the researcher’s instructions (top) and another one who did (bottom).

Figure 2

Threshold estimation. The function getEcgThresh detects the R-waves and estimates a threshold as a percentage of the average R-wave amplitude. The detected R-waves are marked with a circle, while the threshold is displayed as a red horizontal line.

jors-11-476-g6.png
jors-11-476-g7.png
Figure 3

Trial’s plot. The function plotTrial shows the ECG used in a specific trial, as well as the events of interest. The onsets of detected R-waves and presented stimuli are marked by orange and green vertical lines, respectively. The offset of the stimulus is marked by a green square. The threshold used for the cardiac-contingent presentation of the stimuli is also shown as a dashed, horizontal line.

jors-11-476-g8.png
Machine Id:{4DC18DB1-CDD5-4599-979E-BCD2D81DF186}
Operating System:Windows 10 Home 64-bit (10.0, Build 19044) (19041.vb_release.191206-1406)
Language:English (Regional Setting: English)
System Manufacturer:Dell Inc.
System Model:Inspiron 15 7000 Gaming
BIOS:01.00.05 (type: UEFI)
Processor:Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz (4 CPUs), ~2.5GHz
Memory:8192MB RAM
Available OS Memory:8058MB RAM
Page File:10473MB used, 4753MB available
Windows Dir:C:\WINDOWS
DirectX Version:DirectX 12
DX Setup Parameters:Not found
User DPI Setting:120 DPI (125 percent)
System DPI Setting:96 DPI (100 percent)
DWM DPI Scaling:Disabled
Miracast:Available, with HDCP
Microsoft Graphics Hybrid:Supported
DirectX Database Version:1.4.6
DxDiag Version:10.00.19041.2075 64bit Unicode
MATLAB:9.10.0.1669831 (R2021a) Update 2
BHAPI:2.2
Psychtoolbox:3.0.17 - Flavor: beta - Corresponds to SVN Revision 12153
DOI: https://doi.org/10.5334/jors.476 | Journal eISSN: 2049-9647
Language: English
Submitted on: Jun 7, 2023
Accepted on: Nov 17, 2023
Published on: Dec 15, 2023
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2023 Valerio Villani, Manos Tsakiris, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.