I am trying to read serial port data generated by Arduino in Octave on Mac. I installed and loaded the instrument-control package for the same. I used this piece of code to check if the package was installed properly
if (exist("serial") == 3) disp("Serial: Supported") else disp("Serial: Unsupported") endif
I do get an output saying Serial: Supported.
I am following the tutorial here for step by step guidance.
I next use
s=serial('portname') to create a serial port object. However, I am not sure what name to use instead of COM5 on Windows for Mac.
I checked and my Arduino is connected to cu.usbmodem1421 so I tried following 3 options a)cu.usbmodem1421 b) usbmodem1421 c)1421 but in each case I get an error saying "serial: Error opening the interface: No such file or directory".
Could anyone tell me what port name I can use or if there are any suggestions for the big picture problem as to how to read Arduino serial data in Octave (on Mac)? Thanks for the help in advance.