we are currently using the PS6404D in a MATLAB environment. In our current application we are using the streaming mode and we need a certain frequency in the range of 20,5MHz delivered by a very accurate external clock device. So we want to use the existing external clock interface at the rear of the PS6404D.
In the programmer’s guide of the PS6000-series we found the API function “ps6000SetExternalClock” and implemented it in our Matlab-script after connecting the PS6404D and setting up the channels. First we found a mismatch between the programmer’s guide (unfortunately there is no Matlab programmer’s guide available, isn’t it?) and the software environment. In the list of arguments for the frequencies in the enuminfo struct-variable:
we can see an additional frequency parameter “MAX-FREQUENCIES” -->5, which is not explained in the programmer’s guide. We have no idea how to use it. So if we us for testing an external frequency within the range of 20MHz ± 5% and choose the correct struct-variable 'PS6000_FREQUENCY_20MHZ' we don’t get an error message but we also don’t see any effect, i.e. the correct sampling rate. We can change what we want and nothing happens – except that we get wrong sampling rates (which might be extreme high).
Are there other API-function which have to be combined with the external clock API to make it working? Must the external clock API be enabled by another command? Is a matlab programmer's guide available?