PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to divide external sample clock frequency in PXI-5441?

I want to use external sample clock 10 MHz with PXI-5441 for generating arbitrary waveform with 1 MHz sampling rate. How can I do it?

Thank you.

0 Kudos
Message 1 of 9
(4,623 Views)

Hello Ventus,

 

Yes you can do this. In order to do this in LabVIEW, use the property node called Sample Clock Timebase Rate and Sample Clock Timebase Source. I modified one of the example VIs and have a picture below for you to consult.

 

Arbvi.png

 


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 2 of 9
(4,603 Views)

Hello  Jim,

Thank you for your answer.

I tried your example. It works, but it works with onboard clock anyway, although the niFgen.Sample Clock Timebase Source  is “Clock In”. In other words in this example PXI-5441 generates waveforms without external clock.

0 Kudos
Message 3 of 9
(4,590 Views)

Hello Ventus,

 

How are you testing this to find that it uses the onboard clock? Did you not provide a clock on the Clock In and it worked anyways? If you could provide more information about this, I can look into this a little more.


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 4 of 9
(4,578 Views)

Hello Jim,

 

You are right. Really when I don't provide a clock on the Clock In it works. I believe it works properly if I set Clock In to Sample Clock Source and value of frequency (1000000) to Sample Rate.

0 Kudos
Message 5 of 9
(4,567 Views)

Hey Ventus,

 

I ran some tests on the PXI-5442 and I had the same results. I am going to see if R&D has any suggestions about it so we can figure this out.


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 6 of 9
(4,555 Views)

Hello Jim,

 

Thank you. I am waiting for your information.

0 Kudos
Message 7 of 9
(4,541 Views)

Hello Ventus,

 

I talked with R&D and here is what we found:

 

First, this property node can't be used with your card and after discussing this with R&D, this proprty node should be giving us an error when we even try to use it. I I have filed this as a bug under CAR: 258675.

 

Second, the reason why I thought this was possible was because of some confusing documentation in the FGEN Help. In the help it states under the device that the Clock In can accept an external Reference clock, external Sample clock, or external Sample clock timebase. This lead me to believe that this was possible but alas it isn't.

 

Knowing this, we do have some other tools to be available to us to get this down. In order to look into this, we need to consult the timing diagram for the 5441/5442. For this case we can look at either of them because the functionality is the same for Clock In. Here is the timing Diagram for the Help:

 

 

Timing Block Diagram.PNG

 

There are two things we can do. First we can PLL the the external 10MHz clock with the Sample Clock Timebase (top section of the timing diagram). Now that the device's timebase has been PLLed to your external 10MHz signal, we can create a 1 MHz signal from the timebase that will be in phase to your external signal. In order to do this, you can use the niFGEN Configure Clock VI to employ this.

 

The other way we can implement this is to use the Clock In as the Sample clock and use the divide down (Sample clock/K) to have it divide it down. In order to do this, we will have to set the Sample Clock Source, Rate, Sample Clock Mode (Divide Down), and the Exported Sample Clock Divisor (10 in this case). These property nodes can be found under Clocks >> Sample Clock.

 

Sorry for the confusion but this should straighten everything up.

 

 

 

 


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 8 of 9
(4,524 Views)

Hello Jim,

 

I haven’t done the first version you recommended so far. In the second version, Exported Sample Clock really is 1 MHz (I can see it if I export sample clock to PFI0 terminal). But the Sample Clock Rate isn’t changed (10 MHz).

Fig 1.png

0 Kudos
Message 9 of 9
(4,477 Views)