Test and Measurement Forum

ps3000_get_timebase

Post your VB and VBA discussions here

ps3000_get_timebase

Postby PCBarnett » Tue Feb 27, 2007 12:28 pm

The ps3000_get_timebase call to a 3206 returns time_units of 3 and a time_interval of 20480. The only reference in the documentation to the coding of time_units seems to be in the ps3000_get_times_and_values where it is stated to be micro seconds. The collected data indicates that it is nanoseconds, as a sampling interval of 20 micro seconds matches the input signal. Is the manual wrong?
PCBarnett
Active User
Active User
 
Posts: 9
Joined: Tue Feb 27, 2007 11:46 am

Postby ziko » Mon Mar 12, 2007 3:09 pm

Hi and thank you for your post.

One of our software engineers has tried to recreate your problem but without success, he assumed you are using time base 12 and no oversampling. Could you let me know what parameters you passed into the function.

Kind regards
Ziko

Technical Specialist
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Postby PCBarnett » Tue Mar 13, 2007 2:00 pm

Here are the values passed. and the values in memory after the call.
ps3000_get_timebase values (1,12,5000000,0,0,0,0) after the call the values are (1,12,500000,20480,3,0,1048511)
PCBarnett
Active User
Active User
 
Posts: 9
Joined: Tue Feb 27, 2007 11:46 am

Postby ziko » Tue Mar 13, 2007 3:49 pm

Thank you for your post. One of our software engineers has indeed spotted this as a mistake in the documentation.

The documentation should read:

time_interval, a pointer to the time interval, in nano seconds, between readings at the selected timebase. If a null pointer is passed, nothing will be written here.

time_units, a pointer to the most suitable time units that the results should be measured in. This is the smallest units that will not overflow a long given the no_of_samples. This value should also be passed when calling ps3000_get_times_and_values(). If a null pointer is passed, nothing will be written here.

Thank you for alerting this to our attention.

Kind regards
Ziko

Technical Specialist
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots


Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests