PS6000 external clock

Post your LabVIEW discussions here
Post Reply
LGMPICO
Newbie
Posts: 0
Joined: Tue Sep 28, 2010 10:09 am

PS6000 external clock

Post by LGMPICO »

Hello,

I have to handle 2 PS6403 synchonised with an external clock connected to the aux input. I find no example that describes the use of the PS6000SetExternalClock function. I have created a VI using the call library function node (not inculed in the labview.llb), but I get the error message : PICO_INVALID_PARAMETER. The parameters I give to the call library function dialog box lead to the function prototype :

int32_t _ps6000SetExternalClock@12(int16_t handle, int32_t frequency, int16_t threshold);

with I guess :
frequency = 0 => PS6000_FREQUENCY_OFF
frequency = 1 => PS6000_FREQUENCY_5MHZ
frequency = 2 => PS6000_FREQUENCY_10MHZ
frequency = 3 => PS6000_FREQUENCY_20MHZ
frequency = 4 => PS6000_FREQUENCY_25MHZ

Is that right?

Thanks for your help

Best regards

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

Re: PS6000 external clock

Post by Martyn »

That looks correct.

What value are you passing as threshold ?
Martyn
Technical Support Manager

LGMPICO
Newbie
Posts: 0
Joined: Tue Sep 28, 2010 10:09 am

Re: PS6000 external clock

Post by LGMPICO »

Hello,

The threshold can be set from -32512 (-1V) to 32512 (1V).

Since I had tested the external CLK setting only with a 5 MHz signal, I was wrong in my previous post.

In fact :

If I connect a 5 MHz signal to the aux input the result is :

frequency=0 => pico runs with its internal clock
frequency=1 => PICO_INVALID_PARAMETER
frequency=2,3,4 => PICO_EXTERNAL_FREQUENCY_INVALID


If I connect a 10 MHz signal to the aux input the result is :

frequency=0 => pico runs with its internal clock
frequency=1 => PICO_INVALID_PARAMETER
frequency=2 => pico runs with the external clock
frequency=3,4 => PICO_EXTERNAL_FREQUENCY_INVALID

The pico also works properly for 20MHz (25 MHz not tested yet)

It seems that the PS6000SetExternalClock function does not accept the value 1 for the frequency parameter ?

Best regards

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

Re: PS6000 external clock

Post by Martyn »

I have checked and agree that you can't set PS6000_FREQUENCY_5MHZ so I have asked the development team to take a look at this. I will report back once I have received a response.
Martyn
Technical Support Manager

Post Reply