ps6000a SetExternalClock

Post your C and C++ discussions here
Post Reply
marvin8
Newbie
Posts: 0
Joined: Sat Jul 15, 2023 9:17 pm

ps6000a SetExternalClock

Post by marvin8 »

Hi,

in the ps6000a's programmer's guide[1] on page 83 there is a function named "ps6000aSetExternalClock", which allows to synchronize the Pico with, e.g., another Pico.
I have two PS-6426 as well as an external 10MHz source with me.
However, I cannot synchronize them, as this function seems to be neither existent in the Linux .so nor in the corresponding header files.

Please let me know, how to solve this issue.

Thanks and best regards,
Marvin

[1] https://www.picotech.com/download/manua ... -guide.pdf

Martyn
Site Admin
Site Admin
Posts: 4501
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000a SetExternalClock

Post by Martyn »

That is how it used to work with the older 6000A/B/C/D models and this reference should have been removed from the manual.

The current 6000E will automatically switch to the external reference when a clock signal is detected, there is nothing to do in software.
Martyn
Technical Support Manager

marvin8
Newbie
Posts: 0
Joined: Sat Jul 15, 2023 9:17 pm

Re: ps6000a SetExternalClock

Post by marvin8 »

I understand, thank you for clarification!

How is it in this case with the clock frequency?
With previous version you have been able to synchronize the Picoscope to one of several frequencies.
Which frequencies are supported for PS6246?
Is there documentation anywhere?

Best regards,
Marvin

Martyn
Site Admin
Site Admin
Posts: 4501
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000a SetExternalClock

Post by Martyn »

The 6000E scopes support a 10MHz clock, please check the "External Reference Clock" section of the specifications page https://www.picotech.com/oscilloscope/6 ... ifications
Martyn
Technical Support Manager

AndrewA
PICO STAFF
PICO STAFF
Posts: 409
Joined: Tue Oct 21, 2014 3:07 pm

Re: ps6000a SetExternalClock

Post by AndrewA »

Following on from this as the switching from internal to external refence clock is automatic.
You find out the source used by setting up a callback-
Define the callback-

Code: Select all

typedef void (PREF5 *PicoExternalReferenceInteractions)
(
  int16_t	handle,
  PICO_STATUS	status,
  PICO_CLOCK_REFERENCE	reference
  );
Found in- PicoCallback.h
Register the callback using-

Code: Select all

PREF0 PREF1 PICO_STATUS PREF2 PREF3(ps6000aSetExternalReferenceInteractionCallback)
(
  int16_t	handle,
  PicoExternalReferenceInteractions	callback
  );
Found in- ps6000aApiExperimental.h

Clock source is reported in enum-

Code: Select all

PICO_CLOCK_REFERENCE
Regards Andrew
Technical Specialist

Post Reply