Compatibility of PsychToolbox DAQ functions with USB-200 series on Linux System

I am trying to determine if a Measurement Computing Corporation (MCC) USB-200 series DAQ is compatible with Psychtoolbox out-of-the-box on Linux Ubuntu 22.04. Our lab is essentially trying to integrate another lab’s system for aligning data streams with our existing data acquisition set up. The other lab uses Psychtoolbox to send numbered pulses to a ripple neural interface processor via a MCC USB-204 DAQ on a laptop running Windows (I’m not sure of their specific hardware / software specs, but I can find out if needed). I want to know if I’ll be able to use their code (example snippet below) on our Linux setup without needing to write any custom functions for interfacing with MCC’s uldaq.

% Initialize DAQ to inject triggers into neural recordings simultaneously
% alongside their insertion into the video and eye-tracking streams to
% enable synchronization.
HID=DaqFind;
DaqDConfigPort(HID,0,0);
DaqDOut(HID,0,0);

trigger_number = 1;
trigger_interval = 10; % seconds
et_log_message_string = ['Align #', num2str(trigger_number)];

trigger_times = zeros(1,2000);
interval_times = zeros(1,1999);

exp_start_time = GetSecs;
absolute_time = exp_start_time;

terminate = false;
while ~terminate
% BEGIN Critical Timing Section.
DaqDOut(HID,0,255);                                        % Turn DAQ on
WaitSecs(.001);                                            % Wait 1 ms
DaqDOut(HID,0,0);                                          % Turn DAQ off
% END Critical Timing Section.

% Print console output. Update and save timing log.
trigger_times(trigger_number) = absolute_time - exp_start_time;
trigger_number = trigger_number + 1;
interval_times(trigger_number) = absolute_time - trigger_times(trigger_number-1);
save(save_file, 'trigger_times','interval_times')
et_log_message_string = ['Align #', num2str(trigger_number)];

% Check if experimenter wants to terminate
[keyIsDown, ~, keyCode, ~] = KbCheck();
if keyIsDown && strcmp(KbName(keyCode),'esc')
    terminate = true;
    fprintf('ESC Key Pressed... Terminating\n')
end

% Wait until 'trigger_interval' seconds from last visit to this line
absolute_time = WaitSecs('UntilTime',absolute_time+trigger_interval);

end

Platform: Linux, Ubuntu 22.04
Psychtoolbox Version: 3.0.19
Matlab Version: Version 24.2 (R2024b)

At least online, it seems there are only Windows drivers, and MATLAB DAQ toolbox is also Windows-only. PTB only claims support of the older USB-1208FS – so I doubt the USB-200 will work…

If they offer a lower-level library for Linux, you could create your own interface (not a trivial job). Or just use other companies which do provide excellent cross-platform DAQ tools, like LabJack or even Arduinos etc. but they won’t support your existing inherited code.

That was my impression as well, sorry I forgot to answer this. In general, if our DAQ functions work with a piece of hardware on one OS, they should work identically on the other OS’es, e.g., Linux OK → Windows and macOS OK and vice versa.

But the USB 200 series seems to use a different way to access it, than the older USB 1208FS, 1024LS etc., so I wouldn’t expect this to work.

But then, you only seem to need to send a single trigger out, and for that other solutions exist, e.g., as listed on our Wiki:

A FTDI USB to serial converter could be directly used by our IOPort driver for a one bit trigger, e.g., toggling DTR high or low.

One concrete check: the snippet uses DaqDConfigPort/DaqDOut, which look like PTB’s legacy MCC USB-1208FS-style interface, not uldaq calls. So don’t assume that code alone proves USB-204 support; the other lab may already have a custom MEX/uldaq layer or a different device. If you only need a one-bit trigger, the IOPort/FTDI DTR route or a LabJack is likely less work than wrapping uldaq for the USB-204.