Getting Max to communicate with other software via UDP/TCP etc

Augustine Bannatyne - Leudar's icon

I am trying to get max to communicate with another program via UDP - except it says it cant because the other program is putting out a message which is, and I quote , "not a multiple of 4 bytes" - I guess this is because it needs to be converted to OSC prootcol first - anyone know how to do this ? I have also tried sadams TCP object but it only takes the data when I stop the other program. Basically I want to stream a set of values in realtime from a program called labview into max and then use past to trigger a sound when the values pass a certain value. Any ideas on the best way to do this - is there an intermediarry program to convert udp to this osc protocol max understands - suggestions ?

pdelges's icon

It is possible, but not with udpreceive, which is for OSC. You should try mxj net.udp.recv, or sadam.udpReceiver; they do work!

Augustine Bannatyne - Leudar's icon

Thanks Patrick, I think Ive got the Sadaam thing working now - so how to I convert the series of numbers such as these : received: 112 111 111 111 111 111 111
into the original values they were (or scaled version)

Augustine Bannatyne - Leudar's icon

anyone ? reconstituting received: 112 111 111 111 111 111 111 type things into readable data ?

pdelges's icon

What are thr original values? Looks like poooooo to me. If what you're sending from the other app. are ASCII values, the itoa may be the object you're looking for.

pdelges's icon

BTW, this edge/beta forum is probably not the best place to post this type of questions... This may explain why nobody answered so far...

Augustine Bannatyne - Leudar's icon

er - it was moved here by an admin (I presume) - I posted it originally in the max msp forum.
Not sure what protocol "udp send" uses in Labview ..... Ill try and find out. The original values were random letters tapped out on my keyboards and the numbers 0 and 1.