WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-30-2007, 11:57 AM
bjgold bjgold is offline
Member
 
Join Date: Jul 2006
Posts: 19
5dt driver question

All:

When using our 5DT Data Glove 5 Ultra glove, we import it via

Code:
gloveSensor = viz.add('5dt.dls')
If we were to be using both a Data Glove 5 and a Data Glove 14 Ultra, would this same code above be able to distinguish between the two gloves? Or would we need to use a different driver? Of course, due to the different number of sensors on the two gloves, the values sent to/returned from the glove would differ, but I didn't know if the single 5dt.dls driver could drive both gloves.

Thanks!
Reply With Quote
  #2  
Old 07-30-2007, 12:09 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

You should be able to connect to 2 gloves by specifying the port for each glove. Example:
Code:
PORT_5DT_USB = 0
glove1 = viz.add('5dt.dls')

PORT_5DT_USB = 1
glove2 = viz.add('5dt.dls')
Reply With Quote
  #3  
Old 07-30-2007, 12:13 PM
bjgold bjgold is offline
Member
 
Join Date: Jul 2006
Posts: 19
And that would automatically know that glove1 is the 5 sensor and glove2 the 14 sensor one without any work on our end?
Reply With Quote
  #4  
Old 07-30-2007, 12:17 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

You would need to detect that yourself. You can check the length of the data list returned by the gloves to figure out which one is 14 sensor and 5 sensor. The 14 sensor glove will return a longer list.
Reply With Quote
  #5  
Old 07-30-2007, 12:20 PM
bjgold bjgold is offline
Member
 
Join Date: Jul 2006
Posts: 19
Ahh, great. Thanks!
Reply With Quote
Reply


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


All times are GMT -7. The time now is 12:24 PM.


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