PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 250016 when setting 120kHz sample rate for PXI-5122 and PXI-6552

I am using mixedsignalscopeusingtclk.vi as attached and I can execute the VI wihtout any issue when setting sample rate to 100kHz with PXI-5122 and PXI-6552. However, I got error 250016 when setting sample rate to 120kHz. Is there any settings I need to configure in the IV without getting an error?

Download All
0 Kudos
Message 1 of 7
(5,548 Views)

Hi bj93081,

 

I have found a CAR # 379666 for this error when using NI-Scope. Are you by chance also using an NI Function Generator? I have found some similar cases in which this error was seen, however it typically also incorporates an NI FGEN as well.

 

Thanks.

Kaitlin N.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 7
(5,531 Views)

Hi, Kaitlin:

 

No. I don't use NI Funcation Generator. I have PXI-8106 controller on PXI-1042Q chasis. You may reproduce the issue with PXI-5122 and PXI-6522 and run the mixedsignalscopeusingtclk.vi with Lbview 2012 version. As long as you set the sample rate to 120kHz, you would see Error 250016.

0 Kudos
Message 3 of 7
(5,519 Views)

Hello bj93081,

 

From looking at your code you should typically leave the niTClk Initiate.vi outside the while loop unless you are updating any parameter on the fly. As to the error you are getting, I wanted to see if you were getting the same error at any value greater than 100 KHz? The issue (like suggested in the error messages) seems to stem from only being able to synchronize these devices at a specific rate, with the 120 KHz rate not being supported.  

 

Regards,

 

Izzy O.

Applications Engineer

National Instruments

www.ni.com/support

0 Kudos
Message 4 of 7
(5,491 Views)

Hi, Izzy:

 

Yes. I was able to run 1MHz on both digitizer and DIO. I think there are limited frequency I can set to run both devices with TClk. When I brought up DIO Test Panel on MAX and entered 120kHz sample rate, the GUI round it to 119.976kHz. Then, I ran digitizer with 120kHz from MAX without any issue. So I tried to set 119.976kHz on the VI. However, I got the same error of 250016. What's the common clock that I can run for both digitizer and DIO that is close to 120kHz?

 

 

0 Kudos
Message 5 of 7
(5,482 Views)

Hello bj93081, 

 

The closest clock would be 125KHz, since it is an even divide (interger divide down=800) down from 100MHz. This error is being thrown because the TCLK algorithim can not sychronize these devices that are choosing such a fine sampling rate (119.976). Please let me know if 125KHz is acceptable.   

 

Regards,

 

Izzy O.

Applications Engineer

National Instruments

www.ni.com/support

 

0 Kudos
Message 6 of 7
(5,466 Views)

125kHZ works. What's closest frequency to 1KHz? Do you have a table or formula for me to see what frequency I can set to run both PXI-5122 and 6552 wtih Tclk?

 

Thanks.

0 Kudos
Message 7 of 7
(5,325 Views)