WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-20-2010, 03:54 AM
psykoko psykoko is offline
Member
 
Join Date: Dec 2010
Posts: 9
continue loading...

HI.
i am received udp signal from matalb successfuly. throught following coding
Code:
import socket
import struct
viz.go()
UDP_IP="localhost"
UDP_PORT=8020

sock = socket.socket( socket.AF_INET, # Internet
socket.SOCK_DGRAM ) # UDP
sock.bind( (UDP_IP,UDP_PORT) )
while True:
      data, addr = sock.recvfrom( 1024 ) # buffer size is 1024 bytes
      udp = struct.unpack(">d", data)[0]
      right = open('c:\ownership\Hand2.txt', 'a+')
      right.write(str(udp)+'n') 
True.close()


but i have any problem.
this code seems to continue loading screen.

how can 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
Loading OSG models and orientation Joran Vizard 4 06-18-2009 05:43 AM
intersense with 5DT glove sjp Vizard 2 04-06-2009 07:22 AM
Problems loading WRL file DrunkenBrit Vizard 2 01-29-2009 12:58 AM
Loading .3ds-Files without interrupting Program flow Stefan Vizard 10 06-08-2005 04:44 PM
Script loading problem JRichizzle Vizard 1 03-12-2004 10:03 AM


All times are GMT -7. The time now is 03:50 PM.


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