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