Vizard and Matlab
Hi, I am trying to send a packet from matlab simulink model to vizard using UDP protocol.
Vizard code is:
import viz
import viznet
viz.go()
myNetwork=viz.addNetwork('192.168.1.2')
def onNetwork(e):
if isinstance(e,viz.RawNetworkEvent):
print repr(e.raw_data)
viz.callback(viz.NETWORK_EVENT,onNetwork)
and from simulink I am sending value 7 on port 4950. I am getting output like this:
'\x00\x00\x00\x00\x00\x00\x1c@'
'\x00\x00\x00\x00\x00\x00\x1c@'
'\x00\x00\x00\x00\x00\x00\x1c@'
'\x00\x00\x00\x00\x00\x00\x1c@'
'\x00\x00\x00\x00\x00\x00\x1c@'
'\x00\x00\x00\x00\x00\x00\x1c@'
What is problem exactly!
Thanks
|