|
[Date Index]
[Thread Index]
[Author Index]
Re: Re: interfacing odd usb device to mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg100551] Re: [mg100547] Re: interfacing odd usb device to mathematica
- From: Adam Simpson <simpsoa at email.uc.edu>
- Date: Mon, 8 Jun 2009 02:03:55 -0400 (EDT)
- References: <h0d6r8$sp9$1@smc.vnet.net> <200906070903.FAA28170@smc.vnet.net>
I have written some C code that uses a USB library to read in a data
stream from an OCZ EEG if you are interested. It's set up to run in OS
X but would work in linux without too many changes I believe. The main
issue is knowing how the data is sent from the device and how to
translate it into useable numbers.
I was also not able to get mathematica to read it in a very good way,
other than making a loop that reads in data for a predetermined amount
of time while a plot is dynamically updated. Exam week starts monday
and so I don't think I would have time to get it all collected
together for a week or so though but if you're still interested I can
post it on my website with instructions on how to get it all set up
and use it.
Adam Simpson
On Jun 7, 2009, at 5:03 AM, ragfield wrote:
> On Jun 6, 2:45 am, "zac.ernst" <zac.er... at gmail.com> wrote:
>> I am fed up with the cheesy software that comes with my biofeedback
>> USB device, and I'd like to interface it to Mathematica. It is a
>> LightStone device from the "Wild Divine" project. The trouble is
>> that
>> it does not show up on ControllerInformation[], although it does show
>> up on my Mac's USBProbe software. I am using Mac OSX, version 4.11
>> and Mathematica 7. USBProbe gives me the following information about
>> the device:
>>
>> Descriptor Version Number: 0x0110
>> Device Class: 0 (Composite)
>> Device Subclass: 0
>> Device Protocol: 0
>> Device MaxPacketSize: 8
>> Device VendorID/ProductID: 0x14FA/0x0001 (unknown=
> vendor)
>> Device Version Number: 0x2441
>> Number of Configurations: 1
>> Manufacturer String: 3 "Wild Divine "
>> Product String: 1 "ST7 RS232 USB BIOFBK"
>> Serial Number String: 0 (none)
>>
>> The only solution I can think of now is to try to write a separate
>> program to stream output from the device and then read that output
>> into Mathematica. But if there's some way to get Mathematica to
>> recognize the device itself, that would obviously be much better.
>
> The only USB devices supported by Mathematica via the ControllerState
> [] function on Mac OS X are those which conform to the USB HID (human
> interface device) specification. Other (custom) USB devices cannot be
> supported in the same general way. I think your only option to get
> data from this device into Mathematica would be to write a custom
> MathLink application.
>
> -Rob
>
Prev by Date:
Re: Why is recursion so slow in Mathematica?
Next by Date:
Re: Re: directionfields from StreamPlot looks
Previous by thread:
Re: Re: interfacing odd usb device to mathematica
Next by thread:
Re: MergeSort with replacerepeated
|