Test and Measurement Forum

ADC 11 - Digital Output Programming

Post general discussions on using our drivers to write your own software here

ADC 11 - Digital Output Programming

Postby Guest » Mon Mar 23, 2009 1:48 pm

Hi,

I am trying to program a Pico ADC 11 to produce suitable outputs from it's two digital outputs.

The Digital outputs are to be connected to a Counter which is controlling a Multiplexer, changing from channel to channel.

1st Dig Out - needs to be a flat Clear signal

2nd Dig Out - needs to be an 'up..down' jump to move the counter on one.

I am not sure how to do this and although I have a limited knowledge of True Basic I am not sure which program to use.

Any help would be greatly appreciated.

Alex
Guest
 

Postby Robin » Mon Mar 23, 2009 2:16 pm

Hi

As long as you're happy to do a bit of programming, it is pretty straightforward. You can set or clear the digital outputs using calls to adc11_set_do and adc11_set_do2.

See the User's Guide for more information.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby Guest » Mon Mar 23, 2009 10:53 pm

Hi,

yeah I have read through the user guide and saw that I needed to control both the channels using the code from the user guide.

I take it the code needs to be entered into one of the programs i.e. C++, Visual Basic etc? If so which one would you recommend as I have no idea which one to use?

Thanks
AR
Guest
 

Postby Robin » Tue Mar 24, 2009 9:28 am

Hi

Either language can be used. The most comprehensive examples we have are written in C and the documentation gives the C function prototypes.

You can download the examples from www.picotech.com/software

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests