[DrDaq] problem generating arbitrary waveform

Post your C and C++ discussions here
Post Reply
Posts: 0
Joined: Sat Sep 03, 2016 11:12 am

[DrDaq] problem generating arbitrary waveform

Post by dadez87 » Sat Sep 03, 2016 11:24 am


I am new in this forum.

I found some problems when trying to generate an "arbitrary waveform" using function "UsbDrDaqSetSigGenArbitrary()".
When I send the command, I get the response "13", which means "PICO_NO_SIGNAL_GENERATOR".
According to the manual, the meaning is that: "The device does not have a signal generator".
However, I am sure that the DrDaq has a signal generator functionality. In fact, the other function "UsbDrDaqSetSigGenBuiltIn()", which generates built-in signals (square, triangle, sinus, ...), is working properly.
Also, I can create arbitrary waveforms when I use PicoScope6 software.

I would like to create an arbitrary rectangular waveform with a configurable duty cycle. That is why I cannot use the built-in functions (square wave has 50% duty cycle, but I need to have a configurable one, such as 10%).

As visible in the attached screenshot, I am using USB DrDAQ, Serial Number AY776/045, USB1.1, Hardware version 1, USBDrDAQ.dll version and Kernel version PICOPP.SYS V1.0. Library is 32 bit library.

Thank you in advance.

Return status = 13 when sending UsbDrDaqSetSigGenArbitrary()
error_drdaq.PNG (8.12 KiB) Viewed 3713 times

Posts: 2855
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: [DrDaq] problem generating arbitrary waveform

Post by Hitesh » Mon Sep 05, 2016 10:04 am

Hi Davide,

The error code 13 is 0xD in Hex - referring to the PicoStatus.h file this is PICO_INVALID_PARAMETER.

It would be helpful to see the values of the parameters that you are setting for this function call.


Software Dev. Engineer

Post Reply