Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

communicating cRIO with PC

Highlighted
I have a comlpex control system. one of the subsystem is cRIO 9014 and another is NI6071E DAQ card. while the cRIO run a standalone programme to control some devices some information of the cRIO needs to be continuousely read by the NI6071E application programme. which mehtod (RS232 or ethernet)  is it better for this purpose?  how fast of the speed? are there some examples of both methods available? many thanks!
 
Carl
0 Kudos
Message 1 of 9
(2,909 Views)
Highlighted
I would recommend using ethernet.  Take a look at the simple TCP messaging component, or use shared variables.  You can so event based communication with the TCP messaging component and it is very efficient.  Shared variables are very easy and for many apps work very well.  Not quite as efficient as TCP but you can't beat the simplicity.
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 2 of 9
(2,898 Views)
Highlighted

Thanks so much! Steve, I will try.

 

Carl

0 Kudos
Message 3 of 9
(2,877 Views)
Highlighted

Carl,

 

Here is another link that you might find useful.  This is a very powerful method of communication with your RT.  It is an example of an command base architecture based on the STM tool.

SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 4 of 9
(2,874 Views)
Highlighted

really appreciate your help!

0 Kudos
Message 5 of 9
(2,859 Views)
Highlighted
I recommend shared variables over ethernet. They are fast and easy to use.
---------------------------------
[will work for kudos]
0 Kudos
Message 6 of 9
(2,853 Views)
Highlighted

Thanks, rex1030 and SteveA!

 

I am not sure if I use ethernet or shared variables the speed is high enough? I mean, I need to read data frequently (around 15 times / second) from cRIO. Do you think which is better, ethernet or shared variables? by the way, are there some examples for shared variables? Many thanks! 

0 Kudos
Message 7 of 9
(2,831 Views)
Highlighted

carsale wrote:

Thanks, rex1030 and SteveA!

 

I am not sure if I use ethernet or shared variables the speed is high enough? I mean, I need to read data frequently (around 15 times / second) from cRIO. Do you think which is better, ethernet or shared variables? by the way, are there some examples for shared variables? Many thanks! 


shared variables would be plenty fast for that rate.  Ethernet (using the STM component) will take less resources however.

 

Here is a link on shared variables

SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
Message 8 of 9
(2,821 Views)
Highlighted
Thanks, SteveA!
0 Kudos
Message 9 of 9
(2,812 Views)