Hi folks,
I am working on a personal project that requires two devices running a matlab script to remain sychronized. My hope is that device 1 can complete a task then let device 2 know that it is done so device 2 can complete its task, then visa versus, repeating.
This sychronization could be simply done using the time because the tasks are periodic in nature, however I am looking to add some robustness to my script so that if one device is stopped, the other one will also automatically stop. I have considered using a file to load and save states to, but I think that will get messy with two devices tryng to read and write to the same file.
Is there a way to share a variable between devices or an easy way to send messages? I briefly looked into bluetooth, but I feel that there must be a simpler way to do this that I am not aware of.
Any ideas are appreciated,
Thank you!