WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-20-2009, 03:13 AM
Rik Rik is offline
Member
 
Join Date: Nov 2009
Posts: 1
Problem connecting dataglove

Hi,

I am trying to connect an Intersense 5DT glove. It works fine when I connect it within the main file of my program, but when I try to connect it in a different python module I always get an error. Of course I could just put the code in my main module, but I have a thing for keeping things nice and tidy.

Here is some sample code to illustrate my problem:

#file glovetest1.py
#this works fine when I run it in vizard
import viz
import hand
PORT_5DT_USB = 0
sensor = viz.add('5dt.dls')
glove = hand.add(sensor,hand.GLOVE_5DT)
viz.MainView.translate(0,0.02,-0.4)

viz.go()

-----

#file glovetest2.py
#this does not work
import glovetest

-----

The output on the console when I run glovetest1.py:
************************************************** ********
** Loading glovetest1.py
************************************************** ********
5dt.dls 5DT Glove Driver v1.0
** NOTIFY: Connected to 5DT DG5 Ultra USB on USB0
Loading File: hand.cfg
** Load Time: 0.38 seconds

And when I run glovetest2:
************************************************** ********
** Loading glovetest2.py
************************************************** ********
5dt.dls 5DT Glove Driver v1.0
** ERROR: Failed to connect to 5DT glove on COM1
Loading File: hand.cfg
** Load Time: 3.85 seconds

Can anyone help me with this problem? Thanks!
Reply With Quote
  #2  
Old 12-08-2009, 05:34 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
In your code that works it looks like you are connecting to the glove over USB but in the one with an error Vizard is looking for a glove over the serial connection. What if you specify a USB port in the module you import?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Vertex shader performance problem Joran Vizard 2 11-17-2008 01:29 AM
5DT Data Glove 5 Ultra Problem bjgold Vizard 1 08-08-2006 04:08 PM
problem with female animations vmonkey Vizard 1 10-07-2005 10:36 AM
sound problem alaa Vizard 7 09-02-2005 01:13 PM
PROBLEM: Picture-in-Picture breaks textures?!? vcarlson Vizard 4 10-05-2004 04:22 PM


All times are GMT -7. The time now is 02:10 PM.


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