08-08-2012 03:23 PM
Greetings,
I am currently working on a project that involves piping in data to Labview (2010) via a PXI-e 1082 chassis, with 6363 cards....
The issue I am finding in Labview involves a large cluster with 100+ indices. I am working on reordering the cluster indexes via right clicking the cluster and selecting "Reorder Controls in Cluster" on the dropdown options list.
I proceed to select each control in order starting from the 0 index and then select the check mark to confirm the ordering. I will then save the file. I have noticed on multiple occasions that when I go back to verify the ordering I implemented, the indexes are very off.
I accept that fact that I am human and can make mistakes but I am thinking there must be a bug or an option that I am missing for this to be happening.
Hoping someone out there has an idea!
Thx.
08-08-2012 03:38 PM
I use LV2010 and have not experienced any reordering issues like you have explained. I have had clusters be out of order, but not rearrange themselves. Keep in mind that your ordering from one cluster to the next must match. In otherwords, just because you reordered a cluster on your front panel which goes to a sub-vi, the sub-vi order will not change with it.
08-09-2012 07:38 AM
@MoReese wrote:
I use LV2010 and have not experienced any reordering issues like you have explained. I have had clusters be out of order, but not rearrange themselves. Keep in mind that your ordering from one cluster to the next must match. In otherwords, just because you reordered a cluster on your front panel which goes to a sub-vi, the sub-vi order will not change with it.
Unless you use type defs. Then you just change the type def and everybody should be happy.
08-09-2012 08:01 AM
Crossrulz hit what I was going to say.
But are you trying to change every single cluster? If so the type def control makes that very easy. If not and you are trying to change the order of select clusters in various parts of your program, you might need to get creative there. Can you clarify?
08-09-2012 08:08 AM
@crossrulz wrote:
Unless you use type defs. Then you just change the type def and everybody should be happy.
Yes, typedefs would be the way to go; unless the OP is not using typedefs, in which case he may have the issue he is referring to.
08-09-2012 08:16 AM
I have an array of data coming out from the PXI-e cards which I then feed into a cluster to display on the front panel. The default order in which the array data come out (0, 1, 2...) is not what I am looking for so therefore and trying to alter the order in the final cluster via the method described above...does this help?
not sure what you mean by typedef...
08-09-2012 08:19 AM
@MoReese wrote:
@crossrulz wrote:
Unless you use type defs. Then you just change the type def and everybody should be happy.
Yes, typedefs would be the way to go; unless the OP is not using typedefs, in which case he may have the issue he is referring to.
Agreed. I once went through the headache of trying to update clusters in hundreds of locations when I first started using LabVIEW. Then my rep told me about type defs. I was trying to let the OP know of a better way. Clusters that are being used in multiple VIs should be a type def.
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/creating_type_defs/
08-09-2012 08:21 AM
@PR_ghost wrote:
I have an array of data coming out from the PXI-e cards which I then feed into a cluster to display on the front panel. The default order in which the array data come out (0, 1, 2...) is not what I am looking for so therefore and trying to alter the order in the final cluster via the method described above...does this help?
not sure what you mean by typedef...
I think seeing some code will help give us some perspective on your issue. I'm wondering if an array would better suite you.
08-09-2012 08:22 AM
Right-click your control>>Advanced>>customize. This will create a .ctl file which is the definition for you control to be used in your application. Anytime you need to use this cluster, simply drop the icon of the ctl file onto your front panel, or block diagram. Any changes, such as reordering, that are made are made to the ctl. This way, you only have to make the change once an the rest of your controls in your application will get updated at once (File>>Apply Changes from the ctl).
08-09-2012 08:24 AM
@crossrulz wrote:
Clusters that are being used in multiple VIs should be a type def.
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/creating_type_defs/
True, and this should be one of the first things any new user should learn. It definately saves a lot of headache.