WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-10-2015, 12:05 PM
shall6 shall6 is offline
Member
 
Join Date: Dec 2014
Posts: 9
Hi,

Sorry about that.
Code:
import viz
import viznet

dataNetwork = viz.addNetwork('LocalHost');
#viz.net.addPort(4960)
def onNetwork(e):
	if isinstance(e,viz.RawNetworkEvent):
		print e.raw_data

viz.callback(viz.NETWORK_EVENT,onNetwork)
It's just a test code to see if I can make this work, so that is all there is right now.
The matlab has no indents.

What I hope to do later:
Code:
dataNetwork = viz.addNetwork('LocalHost');
#viz.net.addPort(4960)
def onNetwork(e):
	if isinstance(e,viz.RawNetworkEvent):
		print e.raw_data
		if e.raw_data == 'command'
			SetBrakeFlag(not BrakeFlag)

viz.callback(viz.NETWORK_EVENT,onNetwork)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface between Matlab and Vizard Shweta Vizard 8 06-30-2014 09:40 AM
Iinterface between MATLAB and Vizard suraj Vizard 7 07-17-2012 09:02 AM
MATLAB and vizard xingtzu Vizard 1 01-15-2008 10:25 AM
Matlab and Vizard brystewa Vizard 1 09-18-2006 03:11 PM
MATLAB and Vizard eagleman Vizard 4 06-10-2005 11:42 AM


All times are GMT -7. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC