View Single Post
  #1  
Old 11-26-2016, 02:12 PM
sagar29 sagar29 is offline
Member
 
Join Date: Oct 2016
Posts: 7
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
Reply With Quote