LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change cluster in many vis

Hi all -
  I'm putting together my first relatively large LabView project (~30 VIs so far) for a data acquisition project.  I have a few clusters that I use in many of the VIs (for instance, one contains the assorted DAQmx tasks for different types of input and output).  I'm trying to design the project so that I won't have to change the elements in the clusters very often.  But if I do (for instance, if I add another type of data to be aquired), it's a major hassle to go through every VI and change the elements in the cluster, since I have to go manually to each VI that uses the cluster and change it.

Is it possible to do a find and replace for a cluster, rather than doing it manually?

Alternatively, is it possible to have something like an include file in C, in which the cluster would be defined?

Or is there a better way of distributing parameters across many VIs?

Cheers,
Eric Tytell
0 Kudos
Message 1 of 3
(2,644 Views)
You can create a custom control and then set it to Type Def.  Any changes to the Type Def control will propagate to all uses of this control.

Click the right button on your control and select Advanced>>Customize...

Change the Drop down that says Control to Type Def and save.

Now you will have to go through one more time and replace all instances of your original control to this saved control.

Any additional changes to this control will automatically update all instances of this control in all vis.




Message Edited by rpursley8 on 04-15-2008 10:39 AM
Randall Pursley
0 Kudos
Message 2 of 3
(2,638 Views)
"Alternatively, is it possible to have something like an include file in C, in which the cluster would be defined?"
 
Good question!
 
I wrote this Nugget  about Typed Definitions just to answer that question.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,632 Views)