get_times_and_values in ADC1132.dll - toal sampling values

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
bjorgvin
Guest





PostPosted: Thu Jun 05, 2003 9:53 pm    Post subject: get_times_and_values in ADC1132.dll - toal sampling values Reply with quote

Hi,

I am using ADC11 with Labview 6.1 on Win 2000.

ADC11/22 driver 2.8
Pico.sys V1.5
ADC-11 V3 on LPT1

When calling get_times_and_values, f.ex. configured to sample 100 samples on two channels, the return matrix of sampled values are 2*100, (100 samples pr. channel) but the matrix of time-values is 2*50 values.

(The same matrix of zero's is sent to both the sampled value and the time-value)

Is this correct behavior?
Should I not get the same quantity of values?

regards
Björgvin Benediktsson
Back to top
markspencer
Site Admin
Site Admin


Joined: 07 May 2003
Posts: 610

PostPosted: Fri Jun 06, 2003 9:06 am    Post subject: Reply with quote

Hi,

The function adc11_get_times_and_values will return the same time for each set of reading for the active channel. So if you are sampling three channels and taking 100 samples for each channel then the the function will return 300 samples (assuming that the array is large enough).

The values in the returned array are taken alternatively for the active channels eg 1, 2, 3 ... 1, 2, 3 ... 1, 2, 3 etc. So the first time reading is for the first set of three ADC counts the second for the second set of active channels and so on.

therefore:

number values taken = samples required * active channels

number of times = samples required

Best regards,
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group