LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting directly to CompactRio from a Matlab program

Hello
I'm working at Control lab of the Aerospace Faculty in Technion - Israel Institute of Technology in Haifa
we are working on a new project that we require to establish Computerized control system for Vehicles and Quad-helicopters. we required to develop the control in Matlab.
 
the current situation is that the data is sent with help of LabView to CompactRio device that been use only as DAC (Digital-to-analog converter). Then the analog signal connected to the remotes of the vehicles .
 
The CompactRIO model name is NI cRio-9074
The device is connected by Lan directly to the computer operating the Labview and Matlab.
 
module is installed on the CompactRio in order to supply analog outputs
the module model name is NI 9264
 
 
we wish to simplified the process and let Matlab comuincate dircetly with the CompactRio.
but we not sure how we should approach it and if it possible to communicate directly with CompcatRIo.
 
Thank you
Or Hirshfeld
0 Kudos
Message 1 of 4
(4,657 Views)

Hi Or,

 

I use UDP connections between a PC and the cRIO to have a communication. Works flawless (so far)…

 

The cRIO is a computer on its own. So you need to get a communication between two independent computers - and so any protocol using your LAN connection might work. You need a communication routine on both ends…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(4,649 Views)

thank you for your fast respone

As i understood i should program the cRio to recive data throw LAN

just I'm not sure how can i program the cRio

should i program in Labview and than upload it to the cRio

if so is it limited me to specfifc blocks or i can use all blocks

and i'm not sure how to connect to it's analog outputs and UDP inputs in Labview

 

0 Kudos
Message 3 of 4
(4,604 Views)

Hello OrHirshfeld,

 

You may want to start by understanding how the cRIO functions.  It is a target for code developed in LabVIEW (and C, if you know how) to be deployed to.  Any functionality such as UDP, TCP/IP, etc should be implemented in the code so you can pass data to/from a Host PC.  It may be worth looking through our NI CompactRIO Developers Guide to gain some insight on the things you can and should not do with a CompactRIO device.  

 

Let us know if you have any specific questions.  Our Example Finder in LabVIEW should have a lot of things you can look at as well.  You can locate it by going to Help>>Find Examples in any window in LabVIEW.

| Zach J. | Systems Engineer, HIL and Test Cells | National Instruments |
Message 4 of 4
(4,560 Views)