Jump to content

How to handle changing clusters


Recommended Posts

Hi there,

Great forum, I stopped working with Labview at version 5.1 (when I was already happy with the UNDO feature). Now I started again and I am working in LabVIEW 7.1.

A question that I have already a long time is the following. For many applications I use one big cluster that contains many setting for let's say a certain application. I pass this cluster from one VI to another and then extract data from it or add data to it when necessary. However since this creates many VI's that have terminals IN and OUT for this cluster type I run into serious problems when I decide to change the cluster definition. If I change the cluster definition then I have to manually change this for all VI's that use the cluster. This is a very timeconsuming operation.

My question: is there a faster way to do it, or should I use another technique for keeping data together within an application?

Thank in advance,

Erik

Link to comment
Hi there,

Great forum, I stopped working with Labview at version 5.1 (when I was already happy with the UNDO feature). Now I started again and I am working in LabVIEW 7.1.

A question that I have already a long time is the following. For many applications I use one big cluster that contains many setting for let's say a certain application. I pass this cluster from one VI to another and then extract data from it or add data to it when necessary. However since this creates many VI's that have terminals IN and OUT for this cluster type I run into serious problems when I decide to change the cluster definition. If I change the cluster definition then I have to manually change this for all VI's that use the cluster. This is a very timeconsuming operation.

My question: is there a faster way to do it, or should I use another technique for keeping data together within an application?

Thank in advance,

Erik

Pop-up on your control and choose Customize.

Use the drop down to change change the control from a control to a typdef.

Save it.

replace all of the old occurnces with the typdef.

HINT:

After you create and save the edit it and add a new field. Save it.

This will break yur code every where the typdef is wired to a non-typdef'd control. Fix all the broken wires by replace the non-typedef with the typedef.

When you are done you will have found all of the places that need to be fixed (well maybe not all). :P

Ben

Link to comment
Pop-up on your control and choose Customize.

Use the drop down to change change the control from a control to a typdef.

Save it.

replace all of the old occurnces with the typdef.

HINT:

After you create and save the edit it and add a new field. Save it.

This will break yur code every where the typdef is wired to a non-typdef'd control. Fix all the broken wires by replace the non-typedef with the typedef.

When you are done you will have found all of the places that need to be fixed (well maybe not all). :P

Ben

In addition to this, if you only bundle and unbundle "by name" in your VIs, you will not break them unless you remove something from the cluster in the typedef.

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.