PCGU1000 Programming API

Hello everyone,

Am considering purchasing a PCGU1000 and would like to understand a little more about its programming capabilities. Apologies if this question has already been answered elsewhere.

Is there an API provided to enable the PCGU1000 to be programmed from a high level language such as C or java? What I’d like to be able to do, from say a C or a Java program is to be able to make some simple calls to program the frequency and also preferably the duty cycle and leave a sleep type of call within the calling C/Java prog to determine the length of time that the PCGU1000 runs at a particular frequency.

For example,

  • make an api from a C program to PCGU1000 to run at 500 Hz and 10% duty cycle
  • wait 5 minutes within the C program
  • make api call from C program to PCGU1000 to run at 1500 Hz and 50% duty cycle
  • etc, etc…

Is this capability provided? If not, is there a USB interface or add-on card available that could provide this function?

thanks in anticipation,
Richard.

[quote]Is there an API provided to enable the PCGU1000 to be programmed from a high level language such as C or java?[/quote] Yes, available here: velleman.eu/support/download … 1000&type=
Please download the: “Development kit” , “DLL for making your own software using our PCGU1000 generator (Rev5 Jan 2011)” There are code examples included.

[quote]For example,

  • make an api from a C program to PCGU1000 to run at 500 Hz and 10% duty cycle
  • wait 5 minutes within the C program
  • make api call from C program to PCGU1000 to run at 1500 Hz and 50% duty cycle
  • etc, etc…

Is this capability provided? [/quote]The original DLL doesn’t support the duty cycle adjustment.
Here you can download a ‘pre-release’ version 7 of the DLL supporting the duty cycle adjustment: app.box.com/s/hiwfopk782aill4fhnwb
A pdf document and demo program are included.

… many thanks. Will take a look at this.

best regards,
Richard.