setting (not probing) timebase

Post your MATLAB discussions here
Post Reply
sje
Newbie
Posts: 0
Joined: Tue Dec 08, 2015 10:57 pm

setting (not probing) timebase

Post by sje »

I am having problems setting the timebase on my picoscope 5244B. I have modified the PS5000A_IC_Generic_Driver_Block.m file to turn off channel B. I have set the timebase input in ps5000aGetTimebase to 3. and I get the expected 8 ns sampling interval returned. However, later in the program, when I actually call ps5000ArunBlock function, it returns a Timebase of 65. I have tried modifying the the runBlock function call from

[status]=invoke(ps5000aDeviceObj, 'ps5000arunBlock', 0)

to

[status]=invoke(ps5000aDeviceObj, 'ps5000arunBlock', 0, 1024, 3)

But this still returns a timebase of 65.

Can you give me another way of configuring the timebase other than entering it as part of the runBlock function call?

Also, can you explain why it is that if a preceding call is used to set one of the runBlock parameters (ex. 'numPreTriggerSamples') that when runBlock is called, it is impossible to over ride the preset condition? That seems pretty odd! But it does seem to explain what is going on here.

Bilal
Active User
Active User
Posts: 27
Joined: Mon Oct 05, 2015 12:19 pm

Re: setting (not probing) timebase

Post by Bilal »

Timebase is a property of the Matlab Instrument Driver for which you must use the get and set commands.

To set a property in the Matlab Instrument Driver, the syntax will follow:

Code: Select all

  set (obj, propertyname, propertyvalue) 
For our timebase property, our code will look like this:

Code: Select all

  set (ps5000aDeviceObj, 'timebase', 25)     %set our ps5000a device's 'timebase' property with the value of 25 
The timebase index (25) is calculated using the formula shown under the 'timebases' section found in the programmer's guide.

Bilal Patel
Technical Support Engineer
Bilal Patel
Technical Support Engineer
Pico Technology

Post Reply