View Single Post
  #5  
Old 02-19-2012, 03:31 AM
amaze12 amaze12 is offline
Member
 
Join Date: Feb 2012
Posts: 7
I want to use vizard(python) to show the data. But why it cannot? The code is here.

import viz
import vizact
import hand
PORT_5DT_USB = 0
glove = viz.add('5dt.dls')
data = glove.getData()
print data

But the data printed is only one line
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

What should I do?
Reply With Quote