Test and Measurement Forum

ADC 212 times and values

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

ADC 212 times and values

Postby JonathanHolmlund » Thu Feb 03, 2011 2:55 pm

Hi, after upgrading to XP I have had to use the ADC 212 instead

The current Delphi software records 60000 samples over 2 minutes.

In the ADC 100 I used:

actual_time := adc100_set_interval(120000000, 60000, 0) ;
ok := adc100_get_times_and_values(times, data, data2, no_of_samples)>0 ;

I am wanting this but on the ADC 212 but i can not fathom:
adc200_set_timebase
ok := adc200_set_timebase(ns,is_slow,1);
I cant seem to see how or if i can change the NS value to give me the correct time between values i want? or am i going about this the wrong way?
JonathanHolmlund
Newbie
 
Posts: 0
Joined: Mon Jan 24, 2011 3:51 pm

Re: ADC 212 times and values

Postby Chris » Wed Feb 09, 2011 4:11 pm

The timebase is set in the timebase parameter.

The *ns parameter is used as a place holder to pass back the actual sample interval that was set.

You might find it useful to take a look at the a200con.c file to see how this function is used.

-Chris.
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 3 guests