I ended up giving up on this approach. I found another solution using industrial protocols, though the example uses python instead of matlab. See that post here.
I ended up giving up on this approach. I found another solution using industrial protocols, though the example uses python instead of matlab. See that post here.