Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1 Matlab controls 2 PulsePals
We're trying to use the Matlab software(Windows, MATLAB R2016b) to control 2 PulsePals those connected on different serial ports (like one connected on COM12 and another on COM11), then use the command like ##SetPulsePalVoltage(1,2,0)## to trigger the 2 PulsePals independently.

Did anyone has done this before or is this feasible? Huh
Hi Zhouzhou,

If you use the firmware in the beta branch of the repository and the  MATLAB class in the same branch, you can initialize 2 objects (1 for each Pulse Pal) from the MATLAB command line as: 

PulsePalA = PulsePalObject('COM3');
PulsePalB = PulsePalObject('COM4');

You'd then call the methods and change the fields of PulsePalA and , to control each device.

As a workaround with your current setup, you may (depending on many things) be able to run a second Pulse Pal from second instance of MATLAB. In that case, call:


from the command line of the first instance, and


from the command line of the second.

Of course, if you need both to be coordinated as part of a single experiment, this won't be practical.

Hi Josh,

Apologies for re-opening an old thread, but I have attempted to install the firmware in the beta branch (2_0_1) as you described in your previous reply to Zhouzhou, as well as the MATLAB class in the same branch, in order to initialize 2 objects (1 for each Pulse Pal) in MATLAB. However, I'm having an issue updating the beta firmware. I have previously updated the firmware (2_0_1) using the master branch (and downloaded the DueTimer and SdFat libraries) with no problems. But, when using the beta firmware I get an error related to #include <SdFatUtil.h>:
compilation terminated.
exit status 1
SdFatUtil.h: No such file or directory

I have looked online and there are repeated posts on several forums reporting similar issues in finding this SdFatUtil.h (not related to PulsePal). I realize that SdFatUtil.h is included as a utility in the SD library, but I cant seem to get it working or to compile without errors. I wonder if you had any advice?

Hi Sam,

Older versions of SDFat required SdFatUtil.h to be included separately, but the latest version doesn't.
I updated the beta repository to remove that line.

Thanks for the bug report! Please let us know if you run into any further issues.


Forum Jump: