Hi,
I'm a newbie in the Virtools SDK so i would like an opinion for the following problem.
I'm creating a BB in order to use a USB 5DT glove with Virtools.
I have already created a BB with the .NET wizard and wrote a procedure that initializes the glove, obtain the data and closes the glove connection, all in the execution function...but when i use my custom bb on a external loop the framerate goes to 3-4 fps...
The process to initialize/close the glove is very slow and i'm using the bb on an external loop so i know why the framerate is low ...and now comes my question
What is the best way to deal with this?
1) open the connection to the glove and create a thread with an internal loop that is continuously updating the pOut's? i have already tryied a loop without a thread and all of the program remains stuck until the loop finishes...and my pOut is only updated in the end...
2) create diferent bb, one for opening a connection, one for retrieving data and one for closing? But in this case how can i pass data structures(that are specific of the glove's sdk) between BB ?



