This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Matlab connection - GET Syntax
Hi Phyphoxer

I use Phyphox in my physicx-Class. Since i grew up with Matlab, i would like to connect PhyPhox with matlab. 
The remote interface is working fine, the communication can't be very hard since matlab has functions for JSON. I have no experience with that protocol, hence i have problems understanding the syntax of the GET? command.
In the WIKI there is a example 
I just want to poll the lates sensordata for e.g. acceleration sensor. I don't understand what "abc" means and how to change the syntax to address the buffer for the accelleration sensors.

Thank you for your Help

@ Sebastian: thank you for your excellent presentation last week in Esslingen
The "abc" is the name of the buffer that you want to read. I am planning a method to get a list of available buffers, but right now you have to look into the experiment configuration to find the names for each experiment. So, for example for the accelerometer, you can find ( that there are the buffers "accX", "accY", "accZ", "acc" and "acc_time", which are x, y and z of the accelerometer as well as the absolute value and the timestamps to each sensor event.

should give you the last x value of the accelerometer

should give you the all y values and the coresponding times

should give you all times after the first entry that exceeds 10 (in this case all times after 10 seconds)

should give you all times after the first entry that exceeds 10 (in this case all times after 10 seconds) as well as all absolute acceleration values coresponding to timestamps larger than 10 seconds (the "|" means that the given threshold is applied to a different buffer, in this case acc_time).

Forum Jump: