WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 12-25-2017, 10:36 PM
monkeyye monkeyye is offline
Registered User
 
Join Date: Dec 2017
Posts: 1
Quote:
Originally Posted by sagar29 View Post
Hello,
I amtrying to send 5 bytes from matlab. MATLAb is first taking 6 bytes, creating packet and sending it over UDP. To verify whether MATLAB is sending data or not, I ran MATLAB receiver on vizard PC and and I was able to get proper data.

When I am running this code:
import viz
import viznet

viz.go()

myNetwork=viz.addNetwork('192.168.1.2')

def onNetwork(e):
if isinstance(e,viz.RawNetworkEvent):
print 'data', e.raw_data
print 'address', e.address
print 'port', e.port

viz.callback(viz.NETWORK_EVENT,onNetwork)

I am getting
data #############èp@#####@f@#####@ @######i@address 192.168.1.2port 4950data ##############q@#####@f@#####@ @######i@address 192.168.1.2port 4950data ##############q@#####@f@#####@ @######i@address 192.168.1.2port 4950data #############0q@#####@f@#####@ @######i@address 192.168.1.2port 4950data #############Hq@#####@f@#####@ @######i@address 192.168.1.2port 4950data #############`q@#####@f@#####@ @######i@address 192.168.1.2port 4950data #############xq@#####@f@#####@ @######i@address 192.168.1.2port 4950data ############# q@#####@f@#####@ @######i@ address 192.168.1.2port 4950data #############¨q@#####@f@#####@ @######i@address 192.168.1.2port 4950data #############Àq@#####@f@#####@ @######i@address 192.168.1.2port 4950data #############Øq@#####@f@#####@ @######i@address 192.168.1.2port 4950data #############ðq@#####@f@#####@ @######i@

and after running print e.raw_data:
I am getting random numbers. In this case, port and IP I am getting properly but problem is with data.
Hi, there, have you solve this problem?
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
Vizard Matlab interface - no data printing shall6 Vizard 7 03-12-2015 09:55 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 04:38 AM.


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