A script to interpret V-Amp triggers as stimulations?

Come here to discuss about OpenViBE in general!
Post Reply
spacecat
Posts: 1
Joined: Wed Jul 15, 2015 7:39 pm

A script to interpret V-Amp triggers as stimulations?

Post by spacecat »

I'm recording data from a BrainVision V-Amp in OpenVibe. The V-Amp has several TTL trigger inputs. If you use the BrainVision recording software (Recorder) the voltages on these triggers are automatically interpreted as "markers" (analogous to stimulations in OpenVibe; you can export stimulations as markers if you use a BrainVision file type).

In OpenVibe, it looks like you need to interpret the triggers manually. From the V-Amp driver manual:
The V-Amp driver for OpenViBE outputs the status of the trigger line on a dedicated channel. This value is a 32 bit integer: digital inputs (bits 0 - 8) + output (bit 9) state (+ 22 reserved bit). This channel is thus a square signal with different levels, deducing the trigger bit values is then up to the box or script that reads this channel.

For example, receiving on the trigger channel the value 231:

231 = 27 + 26 + 25 + 22 + 2 + 1 231 = 1110 0111 b

The code 231 tells you that the input trigger at index 0, 1, 2, 5, 6, and 7 are activated. The input triggers 3 and 4 are off.
Has anyone written a box or script that will interpret the level of the V-Amp trigger channel and output stimulations?

Any suggestions about how to do it would also be helpful. I'm new to OpenVibe. Thanks!

Post Reply