LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW VI for CyberGlove

Hello.

I want to use LabVIEW to acquire data from a CyberGlove data collection glove. Since I am new to LabVIEW, I am wondering if anyone has done this before and thus might be able to help me build my VI?

Thank you.

0 Kudos
Message 1 of 12
(2,582 Views)
Well, we will first need to have some more information: What is this CyberGlove? What kind of data does it collect? What kind of interface, if any, does it have as far as communications? What do you need to be able to do? Display data on a graph? Save it to file? Do some sort of analysis? If so, what kind? Is it part of some control system?
0 Kudos
Message 2 of 12
(2,573 Views)

Yes, I was not (very )specific 🙂 ..

The CyberGlove is a glove that is used to measure the movements of the digits (i.e. the thumb and the fingers) of the hand. I will be using it for a research project. The glove contains several sensors, placed at the various joints of each of the digits. For a given joint, the data collected by the glove is a voltage output yielded by the corresponding sensor and which is proportional to the angle/position of that joint. Using calibration, this voltage can then be transformed into an "anatomical" joint angle.

The glove connects to a data acquisition computer via a serial port (RS232C, Data Terminal Equipment). What I want to do specifically is to establish a connection between the glove and the computer, then to collect/acquire the data from the glove, and finally to write/save the data to a file.
0 Kudos
Message 3 of 12
(2,567 Views)

The first thing you will need to do is to be able to get the data from the glove. Since you say it connects via an RS-232 connection then there is some form of communication protocol. This means a set of messages to/from the computer. This would be provided in the manual. You should start with seeing if you can establish communication using something like HyperTerminal if you're on Windows, or some other serial port communications program if you're using another operating system. This is to flush out any issues with communication settings and cables before you get into LabVIEW. Then try the serial port examples that ship with LabVIEW.

 

I assume you have a programming manual for this glove?

0 Kudos
Message 4 of 12
(2,545 Views)
Yes, I do have a manual for the glove, which notably includes information on the communication between the glove and a computer. I also knew that the glove was working properly with the serial port, in other words that a communication could be established. What I need(ed) to do is to implement this communication in LabVIEW. And I think that I was actually able to do it. Notably, the "Basic Serial Write and Read.vi" example in LabVIEW proved useful in that respect. So, I am hoping that my problem is solved..
0 Kudos
Message 5 of 12
(2,525 Views)
Sorry, I forgot: thank you for your help, "smercurio_fc".
0 Kudos
Message 6 of 12
(2,524 Views)
No problem. Post back if you have any further questions.
0 Kudos
Message 7 of 12
(2,514 Views)

Hi

 

 

@ Ech: In another topic you gave an example .VI "DAQ device with CyberGlove.vi 303 KB" Here you write (visa write) some specific codes to the serial port. What are these codes for? Do I need to use those also? 

 

 

0 Kudos
Message 8 of 12
(2,241 Views)

Rob,

 

The manual for the CyberGlove should contain the command set and the expected return values.  If you know the format of the return value you should be able to parse out the individual values you want using LabVIEW functions.  The functions you need to use will depend on the data you need to parse.  The 'Scan From String' VI provides an easy to use but powerful method of parsing data from a string.  Please let us know if you have more specific questions about parsing your data.

 

Regards,

 

Sam K

Applications Engineer

National Instruments

www.ni.com/support

0 Kudos
Message 9 of 12
(2,191 Views)

Hello Sam,

 

Thank you for your quick response. The Cyberglove manual is in C-code (which I'm not very good at..). (A lot of functions appear to be missing: e.g getRawData which should give me the latest data etc.) I don't know the format of the return value or the data format (how can I find that in this reverse engineering process?). Scan from string will therefore not work...

 

The best way to get what I want is call the functions in a proper way in labview.. but there is no SDK/manual for labview...

 

Anyone out there that worked with the cyberglove in combination with labview?..

 

Regards,

Rob

0 Kudos
Message 10 of 12
(2,173 Views)