Unfortunately not. I turned the jTCP serialization off but i need some sort of serialization to send my data.
I wrote my own then with some undocumented MATLAB functions.
If i try it on the same computer my program works but again if i use two different PCs i get an error.
At least it is a new one, a MATLAB and not java error: "Bad version or endian-key"
Maybe you know something about it, seems like jTCP can't read the data properly?!
Looks simple and sophisticated at the same time! Full of comments and as such easy to follow the chain of thoughts of the author. One can simply make adjustments based on his/her needs. Great job Image Analyst!
@Carsten--The OptionalDataException appears to be associated exclusively with serializable objects. I don't know why this is happening, but you could presumably get around this problem by setting 'serialize' to false and converting the payload data to int8 (see last example in jtcp.m header). Would this be an option for you?
i have a problem using the jTPC read function.
I get an 'java.io.OptionalDataException' if i try to use the read function in a timer function that works in a GUI.
If the timers period is >0.3 seconds it works without problems but i want a faster update.
The code that should be updated under 0.3 seconds is:
mssgs = jtcp('read',jTcpObj);
mssg = mssgs(1); %mssgs is a cell array
Hope you can help me, thank you