I'm trying to retrieve data from my simulation through MATLAB. I've got the data going into a table in a non-threaded child script and I set the string signal:
Additionally, you can't unpack the table on the Matlab side, when you pack it with sim.packTable. Instead pack it with e.g. messagePack. On CoppeliaSim's side you'd do something like:
Thank you very much for your support. However, I don't seem to be able to get the information from my table. I tried your suggestions and for the msgpack one I just get the value 112, and for the packed float I get this error:
Error using typecast
The first input must contain a multiple of 4 elements to convert from uint8 (8 bits) to single (32 bits).
Error in remApi/simxUnpackFloats (line 1806)
floatArray=typecast(uint8(single(string)),'single');
I'm just trying to retrieve all of the sensor data I have placed in the table at each simulation pass, is this the correct way to do it?