# DAQ not available on Ubuntu 18.04

**URL:** <https://psychtoolbox.discourse.group/t/daq-not-available-on-ubuntu-18-04/2965>\
**Category:** Uncategorized\
**Created:** [January 17, 2020, 5:45am UTC](https://psychtoolbox.discourse.group/t/daq-not-available-on-ubuntu-18-04/2965 "2020-01-17T05:45:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhoseini](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mhoseini](https://psychtoolbox.discourse.group/u/mhoseini)\
**Post date:** [January 17, 2020, 5:45am UTC](https://psychtoolbox.discourse.group/t/daq-not-available-on-ubuntu-18-04/2965/1 "2020-01-17T05:45:52Z")

</div>

Hi folks,

We had various problems in the Stryker Lab with the PTB on windows systems and decided to migrate to Ubuntu. We want to send udp signals to a NI device. It seems that DAQ is not available on Ubuntu 18.04. How we can work around this issue? Is PsychHID the solution?

Bests,

- Mahmood

---

<div class="post-metadata">

**Author:** ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)\
**Post date:** [January 17, 2020, 9:45am UTC](https://psychtoolbox.discourse.group/t/daq-not-available-on-ubuntu-18-04/2965/2 "2020-01-17T09:45:59Z")

</div>

[http://psychtoolbox.org/docs/pnet](http://psychtoolbox.org/docs/pnet)

---

<div class="post-metadata">

**Author:** ![Ian-Max-Andolina](https://yyz2.discourse-cdn.com/free1/user_avatar/psychtoolbox.discourse.group/ian-max-andolina/32/4_2.png) [@Ian-Max-Andolina](https://psychtoolbox.discourse.group/u/Ian-Max-Andolina)\
**Post date:** [January 17, 2020, 1:18pm UTC](https://psychtoolbox.discourse.group/t/daq-not-available-on-ubuntu-18-04/2965/3 "2020-01-17T13:18:09Z")

</div>

There is a demo using pnet specifically for UDP:

[http://psychtoolbox.org/docs/udp\_send\_demo](http://psychtoolbox.org/docs/udp_send_demo)

If you have the instrument control toolbox in MATLAB it also has UDP support cross-platform:

[https://uk.mathworks.com/help/instrument/udp.html](https://uk.mathworks.com/help/instrument/udp.html)

… but pnet is faster and super reliable.

---

<div class="post-metadata">

**Author:** ![mhoseini](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mhoseini](https://psychtoolbox.discourse.group/u/mhoseini)\
**Post date:** [January 17, 2020, 5:20pm UTC](https://psychtoolbox.discourse.group/t/daq-not-available-on-ubuntu-18-04/2965/4 "2020-01-17T17:20:57Z")

</div>

Sorry for not being clear enough! I am using pnet to send udp signals but MATLAB doesn’t recognize NI device since I wasn’t able to install DAQ.

---

<div class="post-metadata">

**Author:** ![Ian-Max-Andolina](https://yyz2.discourse-cdn.com/free1/user_avatar/psychtoolbox.discourse.group/ian-max-andolina/32/4_2.png) [@Ian-Max-Andolina](https://psychtoolbox.discourse.group/u/Ian-Max-Andolina)\
**Post date:** [January 18, 2020, 2:09am UTC](https://psychtoolbox.discourse.group/t/daq-not-available-on-ubuntu-18-04/2965/5 "2020-01-18T02:09:47Z")

</div>

Ah, well NI software support sucks. I used to use NI DAQs, but the ridiculously bloated driver packages moved me to LabJack USB DAQs. What are you using the DAQ for exactly? If it is just for digital I/O then you have much better options than NI, but it may be you use it for recording analog signals. If you can use USB, then I really can’t recommend LabJack highly enough. They have full cross-platform tiny drivers that don’t require stupid masses of junk installed (and no dependancies on DA toolbox). But it may be you have a software dependency that only works using data aquisition toolbox?

For simple digital I/O triggers, arduino’s are also an option. Don’t use MATLAB’s official hardware support though as performance sucks. I have repurposed the legacy arduino code, adding the option to send asynchonous TTLs (i.e. you can send a long 300ms TTL but in MATLAB the function returns immediately, great for variable-length reward triggers).

> <https://github.com/iandol/opticka/blob/master/communication/adio/adio.ino>

  

> <https://github.com/iandol/opticka/blob/master/communication/arduinoLegacy.m>
