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: 

Logging data on Host + Low level + High level control with compactRIO

Hi,

 

We have available here a cRIO 9075 and I would like to know if it is possible to use it (if not, any other cRIO or even PXI) for rapid prototyping of controllers and logging data do disk (large amount of data, much more than the available space in the cRIO disk, so it should be connected to a host computer with plenty of space in the HD).

There is a low level controller that should have a loop rate of around 100kHz, and the other controllers are not so demanding, in the order of 50Hz.

 

This same hardware is expected to log some data, like encoder (position + speed), some analog and digital signals at a rate of around 1kHz.


The data acquisition runs will run for around 1-2 hours...

 

In summary, do you think only writing a FPGA, RT and Host VIs is enough for this task? The high speed controller will be implemented in the FPGA, the others I think that can be done in RT... Am I right?

The data logging can be done this way, from the FPGA -> DMA -> RT -> Ethernet -> Host (desktop computer) at this data rate?

 

Thanks!

0 Kudos
Message 1 of 6
(5,486 Views)

Hi ccvalerio,

 

You can create only one FPGA, RT and host VIs for your application, or work with subVIs. If you decide work with subVIs you will need have one main VI for FPGA, one for RT and one for host.

If I understand your encoder data will be acquire at 1kHZ, you will not have problems with it, but like disk access and network communication are not deterministics tasks is important you do these tasks at separated loops.

 

In summary, you can do your application like you imagine.

 

Regards,

Abel Souza
Engenheiro Eletrônico
LabVIEW User since 8.5
Message 2 of 6
(5,427 Views)

My only concern was regarding the host, as it is a workstation running windows.

It is not acceptable losing data. It should be all there with a difference between each of the data points of 1ms.

 

I understand that the network and writing to the disk is not deterministic, but if I use a data streamming / buffered communication mechanism between the RT and the Host I should be able to get a very good file at the end of the test, right? The loop that is acquiring the data is in the FPGA / RT so it should not have a considerable jitter...

 

Did I understand correctly?

0 Kudos
Message 3 of 6
(5,422 Views)

Yes, with data streaming you will not lose data.

Abel Souza
Engenheiro Eletrônico
LabVIEW User since 8.5
0 Kudos
Message 4 of 6
(5,418 Views)

Thank you.

 

Do you think this same system is suited for hardware in the loop simulations?

0 Kudos
Message 5 of 6
(5,412 Views)

I am not specialized in Hardware-in-the-loop, but I think yes.

Abel Souza
Engenheiro Eletrônico
LabVIEW User since 8.5
0 Kudos
Message 6 of 6
(5,405 Views)