From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Connect a USB-6251 M Series DAQ to cRIO-9040

Solved!
Go to solution

I have a USB-6251 that I want to incorporate into my measurement setup and I also have a cRIO 9040, which does most of my measurements. I see that cRIO computer has a USB-port. Is cRIO capable of talking to USB-6251 via USB? 

Thanks a lot in advance

0 Kudos
Message 1 of 8
(1,943 Views)
Solution
Accepted by brimkins

Hi Brimkins,

 

This is definitely an interesting question. Unfortunately, there's one simple answer of no, connecting a USB-DAQ isn't a supported configuration with a cRIO controller.

There's a quick list of what USB devices are supported on Real-Time targets at the end of this KB.

 

For the cRIO-9040, you're looking at having the ability to use some cDAQ, cRIO, CVS or industrial controllers as it's running Linux RT. Otherwise, the drivers for the USB-DAQ aren't developed for Linux RT.

 

Can I ask what the use-case of this is? The cRIO is deterministic and USB isn't a deterministic interface, so I expect you'd see a significant degradation in performance than just attaching another C-series module. Is there a reason we don't want to use a C-Series module with better performance?

 

Best wishes,

Nick

Message 2 of 8
(1,896 Views)

Dear Nick, 

 

thanks for your reply,

it was just a temporary solution until I will get an NI 9361 module to do the counting. I have also found that I can do counting with DAQmx in cRIO with a clock up to 80MHz. I think that will be my solution for now. Unfortunately counting with 40MHz FPGA clock is too slow for the pulses that I am trying to count. 

 

Best regards,

Sergii

0 Kudos
Message 3 of 8
(1,890 Views)

Hi Sergii,

 

No worries.

Have you seen the FPGA Derived Clock Properties? You should be able to generate a suitable clock to use on the FPGA. 

0 Kudos
Message 4 of 8
(1,885 Views)

Dear Nick, 

yes, I tried that, but the fastest clock it gives is the FPGA base clock which is 40MHz and perfectly allows my 12 ns pulses to slip out. Therefore I thought of using the DAQmx module for NI 9402 (then i can see a 80 MHz clock in the timing source). 

Bests,

S

0 Kudos
Message 5 of 8
(1,882 Views)

Hi Sergii,

 

Are you sure that 40MHz is the maximum? I added a cRIO-9040 to my project and I was able to derive an 80MHz clock:

NPowl_0-1612804176751.png

Edit: Also able to derive other clocks, such as 85MHz. It seems you'd be able to fit your 12ns pulses.

 

Best wishes,

Nick

Message 6 of 8
(1,872 Views)

Hi Nick, 

thanks a lot! Wow, I didn't know that I can use 80MHz clock to drive a single-cycle loop

I was considering this diagram from the manual 

brimkins_0-1612807671677.png

but I was completely oblivious of this derived clocks. Thanks for pointing this out. I may get away without extra counting module!

Thanks, 

Sergii

PS SCTL would take 80 MHz as well as NI9402, but with 85MHz wouldn't compile

0 Kudos
Message 7 of 8
(1,863 Views)

Actually I could get even 120MHz clock! Awesome! and NI9204 would take it.

0 Kudos
Message 8 of 8
(1,835 Views)