Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Data management

Hi everyone,

 

I'm trying to build my first larger project on cRIO. It's a machine control where the cRIO reads multiple buttons, limit switches and so on. I also have some control loops for positioning hydraulic cylinders.

 

Problem: Some data comes from an HMI, some come over Ethernet from a PLC, some are read directly from IO modules. The data must be distributed to different locations and VIs. I don't know how to deal with the amount of variables. I come from PLC programming, where i can have a Database which can be accessed from every point of my application. I would like to have the same on cRIO too. Is CVT the right way to go?

0 Kudos
Message 1 of 5
(2,521 Views)

CVT is good if you only have one place writing to a specific variable.  If you have multiple writers to the same variable, you run into race conditions.

 

You might also want to have a look at DCAF.


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 2 of 5
(2,516 Views)

DCAF --- seconded. 

0 Kudos
Message 3 of 5
(2,500 Views)

I will definitely look into DCAF for my future projects!

 

For now i think i will give the CVT a try. Is there a way to edit the table in a more convenient way. Something like a tag editor?

0 Kudos
Message 4 of 5
(2,480 Views)

CVT does have a way to load the table from an XML file.  You can figure out the format by creating a few tags and then doing the Save Table to an XML file.


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 5 of 5
(2,472 Views)