# Generating vibration with DaqAOutScan. SetReport error

**URL:** <https://psychtoolbox.discourse.group/t/generating-vibration-with-daqaoutscan-setreport-error/4677>\
**Category:** Hardware\
**Tags:** windows\
**Created:** [November 2, 2022, 12:27am UTC](https://psychtoolbox.discourse.group/t/generating-vibration-with-daqaoutscan-setreport-error/4677 "2022-11-02T00:27:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul1](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@Paul1](https://psychtoolbox.discourse.group/u/Paul1)\
**Post date:** [November 2, 2022, 12:27am UTC](https://psychtoolbox.discourse.group/t/generating-vibration-with-daqaoutscan-setreport-error/4677/1 "2022-11-02T00:27:47Z")

</div>

Hello,

OS: Windows 10  
Matlab version: 2021a  
PTB version: 3.0.17 (beta).

I am trying to make a tactor via USB-1208FS vibrate. So far I was looping over an array using DaqAOut. This might not be the best way to generate the sound. DaqAOutScan might be more suitable. A similar topic was discussed before ([USB1208FS DA Out for 180 Hz sinewave?](https://psychtoolbox.discourse.group/t/usb1208fs-da-out-for-180-hz-sinewave/3691)), but using the example code gives me an error. In particular this line:

```auto
params = DaqAOutScan2(DaqIdx, vSine, options);

```

gives me the following error:

```auto
DaqAOutScan interface 1, SetReport error 0xFFFFFFFF. Incorrect function.: Incorrect function.

```

Any help appreciated!

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [November 2, 2022, 6:28pm UTC](https://psychtoolbox.discourse.group/t/generating-vibration-with-daqaoutscan-setreport-error/4677/2 "2022-11-02T18:28:41Z")

</div>

Not clear to me why you wouldn’t use a sound card for generating sound? Also, performance of DAQ analog output seems to be quite limited, according to the `help DaqAOutScan`.

But if you insist, `help PsychPaidSupportAndServices` will tell you how to provide your paid support authentication token for up to 30 minutes of my paid support - no guarantee of success, and ofc. it could become way more expensive if 30 minutes are insufficient.

Btw. PTB 3.0.17 is end of life and no longer supported, but i don’t think 3.0.18 would behave differently, given none of the relevant code has changed in years.

-mario

---

<div class="post-metadata">

**Author:** ![Paul1](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@Paul1](https://psychtoolbox.discourse.group/u/Paul1)\
**Post date:** [November 2, 2022, 6:59pm UTC](https://psychtoolbox.discourse.group/t/generating-vibration-with-daqaoutscan-setreport-error/4677/3 "2022-11-02T18:59:46Z")

</div>

Thanks for your response. Yes, the wording sound is ambiguous (edited in the above question). I have a tactor connected to the 1208FS device and try to send it a sine wave. That is why I used used ‘DaqAOutScan’ instead of the sound card.  
Thanks

---

<div class="post-metadata">

**Author:** ![Paul1](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@Paul1](https://psychtoolbox.discourse.group/u/Paul1)\
**Post date:** [November 2, 2022, 7:16pm UTC](https://psychtoolbox.discourse.group/t/generating-vibration-with-daqaoutscan-setreport-error/4677/4 "2022-11-02T19:16:12Z")

</div>

> [@mariokleiner](#):
>
> Btw. PTB 3.0.17 is end of life and no longer supported, but i don’t think 3.0.18 would behave differently, given none of the relevant code has changed in years.

I updated to version 3.0.18. But you are right, the error still persists.
