LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sampling on Ethernet CompactRIO Chassis

Solved!
Go to solution

Hi,

I'm using NI 9147 Chassis RIO with NI 9215 Analog Module.

Device configured for RT Scan mode and in scan engine properties scan period set for 1 ms.

 

My question is,

1. where to configure sampling rate setting for NI9215.  

2. Scan engine properties, scan period set for 1 ms. Does it mean maximum sampling rate 1000s/S.

3. Can i get from NI9215 100 kS/s/ch, 16-Bit, Simultaneous with this setup.

 

I'm totally confused, someone please help me on this.  

 

0 Kudos
Message 1 of 9
(1,166 Views)

Hi electronbas,

 


@electronbas wrote:

My question is,

2. Scan engine properties, scan period set for 1 ms. Does it mean maximum sampling rate 1000s/S.

3. Can i get from NI9215 100 kS/s/ch, 16-Bit, Simultaneous with this setup.


2. Yes, you will get (at most) 1kS/s with a scan period of 1ms.

3. No, you will not be able to read 100kS/s from your module when the ScanEngine only reads new (single!) samples each 1ms…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 9
(1,162 Views)

Hello GerdW,

Thanks for your quick response.

 

Now i understood from your answer that Ethernet Compact RIO Chassis can sample 1 kS/s irrespective of IO module specification.

 

 Is your answer applicable for both RT scan mode and as well as FPGA programming on Ethernet Compact RIO Chassis?

 

Would you recommend cDAQ for NI9215 for achieving full sampling rate?

 

Thanks

0 Kudos
Message 3 of 9
(1,145 Views)

@electronbas wrote:

Would you recommend cDAQ for NI9215 for achieving full sampling rate?


A single slot cDAQ would be the simplest route.  DAQmx does all of the work for you.  If you want Ethernet, then the cDAQ-9181 should do the job for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 9
(1,128 Views)
Solution
Accepted by topic author electronbas

Hi electronbas,

 


@electronbas wrote:

Now i understood from your answer that Ethernet Compact RIO Chassis can sample 1 kS/s irrespective of IO module specification.


You understood wrong!

Even when you set the ScanEngine to read samples at 1kS/s it cannot read faster than the IO modules allow! There are several modules with samplerates of less than 100S/s…

 

To rephrase the sentence: you can read new samples with a samplerate of minimum(ScanEngine samplerate, module samplerate)!

 


@electronbas wrote:

Is your answer applicable for both RT scan mode and as well as FPGA programming on Ethernet Compact RIO Chassis?


You explicitely asked for ScanEngine usage, so my answer only applies to ScanEngine mode!

Using FPGA you can utilize the full samplerate of your IO modules…

 


@electronbas wrote:

Would you recommend cDAQ for NI9215 for achieving full sampling rate?


As said before (by @crossrulz): using a single slot (USB?) cDAQ would allow for most simple DAQmx implementation of your NI9215 readings…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 9
(1,120 Views)

Hi 

@Crossrulz thanks for your recommendation.

@GerdW thanks for your explanation and made me to understood.

 

NI9147 Ethernet Compact RIO Chassis, can be used for higher sampling >1kS.

If yes, how can i proceed?

0 Kudos
Message 6 of 9
(1,071 Views)

Hi electronbas,

 


@electronbas wrote:

NI9147 Ethernet Compact RIO Chassis, can be used for higher sampling >1kS.

If yes, how can i proceed?


Use the FPGA examples for your modules to learn how to implement support for high samplerates (as high as supported by your modules).

Then implement FPGA code for your cRIO chassis.

(The ScanEngine is quite limited in its features/abilities.)

 

Use the (cRIO) example projects to learn how to transfer your "high speed" data to your computer. I recommend NetworkStreams…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 9
(1,064 Views)

Hi GerdW,

Thanks for your time and support.

0 Kudos
Message 8 of 9
(1,048 Views)
Solution
Accepted by topic author electronbas

NI-9147 has no controller and hence cannot use network stream.

You use DMA FIFO to stream data from FPGA to the host. You can find some examples at Help >> Find Examples... >> Hardware Input and Output >> compactRIO >> Fundamentals >> Data Transfer and Storage >> FPGA to Host >> Streaming Data (DMA) or Interleaving Channel Data (DMA) 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 9 of 9
(1,034 Views)