triggers from matlab to actiview

Post Reply
skornailpio
Posts: 1
Joined: Sat Apr 11, 2015 2:11 pm

triggers from matlab to actiview

Post by skornailpio » Sat Apr 11, 2015 2:23 pm

Hi everybody!

I'd like to send triggers from matlab ((2011b); op sys: 64bit win7) to the actiview. I installed all the drivers need the correct use of the LPT (works fine with brainvision recorder) and in my script there are of course the appropriate codes but I don't see the triggers in the actiview?
HELP! Thx,
Kornél

Coen
Site Admin
Posts: 961
Joined: Fri Mar 26, 2004 7:00 pm
Location: Amsterdam, Netherlands
Contact:

Re: triggers from matlab to actiview

Post by Coen » Sat Apr 11, 2015 8:59 pm

Use voltmeter to check that triggers are present on the proper pins of the USB-receiver (pin 1-8 triggers, pin 37 should be connected to ground, see http://www.biosemi.com/faq/trigger_signals.htm).

Best regards, Coen (BioSemi)

mikbuch
Posts: 1
Joined: Sat Aug 18, 2018 2:35 pm

Re: triggers from matlab to actiview

Post by mikbuch » Sat Aug 18, 2018 3:11 pm

Hi,

I have similar problem. I am using the following code:

Code: Select all

ioObject = io32;
status = io32(ioObject);
io32(ioObject, hex2dec('278'), 1)
io32(ioObject, hex2dec('278'), 2)
io32(ioObject, hex2dec('278'), 3)
% etc.
However, in the ActiView only 15 triggers are received. In decimal notation these are even numbers 226-254. There is one additional trigger 224, which is always used on the second position in the trigger code.

I intend to test pins with voltmeter, but I don't have a clue what should I change in code in order to make it work. Does anyone has working code and could share it with me, as I didn't find any examples for this particular setup: Windows + Matlab + LPT port.

Regards,
Mikolaj

Post Reply