Blender and MRI?

An open space where people who use Blender in an academic environment can share progress and the typical problems and needs of academic environments.

Moderators: jesterKing, stiv

lightstream22
Posts: 7
Joined: Mon Aug 15, 2011 5:32 pm

Blender and MRI?

Postby lightstream22 » Mon Aug 15, 2011 5:51 pm

Hello Everyone,

I have a unique question involving Blender and its use when hooked up to a button box linked to an MRI machine. The button box transmits numbers (i.e. "1", "2", "3", etc.) based on the button that is pushed by a participant inside an MRI machine. The button box is connected to a windows 7 laptop computer running Blender 2.58.1 via a usb input plugged into the laptop.

In the Blender environment, I am running the game engine using GLSL, and the task is moving a "player" (i.e. cube) around an environment with keyboard logic bricks (e.g. 1 moves forward, 2 moves backward, etc), in addition to using python scripts, for logging keyboard inputs for example.

The problem is though, when I plug in the usb input from the button box, and a number is pushed on the button box, Blender sometimes registers the input, and sometimes does not register the input.

Also, note that working with the MRI is complicated by the fact that the MRI sends a "pulse" through the button box, corresponding to the number "5" every 2 seconds. However, when I log the button presses (using a python script), I get the number "5" input not at a constant 2 second interval, but rather at: 2 seconds, then 4 seconds, then 2 seconds, then 4 seconds, etc. It seems like blender is "skipping" or missing these in-between inputs.

I'd really appreciate anyone's help or input on this! Thanks a bunch!

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Mon Aug 15, 2011 7:53 pm

How exactly is Blender connected to the 'usb input'?

lightstream22
Posts: 7
Joined: Mon Aug 15, 2011 5:32 pm

Postby lightstream22 » Wed Aug 17, 2011 8:40 pm

It's plugged in through a usb port on the side of the laptop. I didn't mean for that to sound confusing; its just a simple usb connection..

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Thu Aug 18, 2011 2:06 am

its just a simple usb connection.


Sorry, that part I understood. I was wondering more about what sort of device the button box appeared as or asked another way, what protocol does is speak?


Return to “Academic & Research”

Who is online

Users browsing this forum: No registered users and 0 guests