View Single Post
  #2  
Old 01-31-2014, 11:48 PM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Hi mikeb,

When starting with Vizard, it's good to ask basic questions, so not worries. What you could try is instead of printing the raw data, you can assign that raw data to a variable in Vizard. I don't now the nature of your raw data, so maybe you need to assign one specific part of the raw data to a variable, but the principle is the same:
Code:
myNetwork = viz.addNetwork('IP here')
myNetwork.port(4950)
def onNetwork(e):
	if isinstance(e,viz.RawNetworkEvent):
		 your_variable = e.raw_data
viz.callback(viz.NETWORK_EVENT,onNetwork)
For next time, it's better to use the CODE tags around your code to make it more readable. You can get those tags by clicking the hashtag (#) sign in the editing options for your message.

Good luck,
Frank
Reply With Quote