Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: interfacing odd usb device to mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100558] Re: [mg100547] Re: interfacing odd usb device to mathematica
  • From: "Scot T. Martin" <smartin at seas.harvard.edu>
  • Date: Mon, 8 Jun 2009 02:05:12 -0400 (EDT)
  • References: <h0d6r8$sp9$1@smc.vnet.net> <200906070903.FAA28170@smc.vnet.net>

I have wondered why Mathematica does not support my i/o capabilities that 
can be readily used with a wider range of hardware. My specific 
application is the kind of things that are typically done with LabView.

Mathemaica's built-in Java would seem to be the streamlined way to gain 
access to these i/o capabilities.

You might already have a better MathLink idea in mind if you're big into 
C, etc., but if not, I think the "way to start" is to use Java and the i/o 
packages that are available for it.

Not 100% sure since I haven't done this---I have only thought about doing 
it---I'd be interested if others have more efficient suggestions.



On Sun, 7 Jun 2009, 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: mathematica tutor for NYC high school student
  • Next by Date: Re: Why is recursion so slow in Mathematica?
  • Previous by thread: Re: interfacing odd usb device to mathematica
  • Next by thread: Re: Re: interfacing odd usb device to mathematica