03-06-2018 09:37 AM
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?
03-06-2018 10:11 AM
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.
03-06-2018 01:30 PM
DCAF --- seconded.
03-07-2018 02:21 AM
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?
03-07-2018 05:45 AM
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.