Installation
Note: The MATLAB interface requires firmware v21 or newer, and certain methods may require the latest firmware. If necessary, update using LoadPulsePalFirmware()
Download or check out the Sanworks PulsePal repository to the disk location of your choice
In MATLAB, go to Home > Set Path
In the path editor, add the MATLAB folder to the path. This should be: /PulsePal/MATLAB/. You may want to save the path for future MATLAB sessions.
Configuration
In Linux, you may need to add yourself to the 'dialout' group for MATLAB to access the USB serial port:
From the terminal> sudo usermod -a -G dialout pulsepaluser (if pulsepaluser is your username)
Initialization
At the command prompt, run:
P = PulsePalDevice('COM3');
Replace 'COM3' with the device's USB serial port name. If you don't know the port name, use serialportlist at the command prompt to view all ports, and serialportlist("available") to view available ports. Pulse Pal's port is not available while connected to an existing instance of PulsePalDevice or an external application. If you see multiple available ports, disconnect Pulse Pal's USB plug and re-run serialportlist("available"). Notice which port disappears from the list.
P is a MATLAB object representing the Pulse Pal device. It is controlled by setting its properties and methods.