09-03-2005 03:25 AM
09-03-2005 05:08 AM
woodi a écrit:
...So I further set the property node --> indicator (of the cluster) to "False", with the purpose to keep the control as a control. This results in a comment from Labview, that this is not possible as long as the Vi is not in edit mode. I don't understand this comment. If I look to Labviews toolbar "Operate", I see that I am obviously in edit mode.
09-03-2005 12:35 PM
09-03-2005 03:14 PM
The post by xseadog shows how to use local variables, shift registers and (most important) bundle nodes to change the values of specific elements inside the cluster, but I would like to add something about the error you get.
First, a basic rule about clusters is that a cluster can either hold controls or indicators, but not both.
Second, if you want to set the property of a cluster element, you need to create the property node by right clicking that control and not the cluster itself.
Third, certain properties can only be set when the VI is in "edit mode". This means that the VI isn't running and is not waiting to run after being called from another VI. This is important because you can also access control properties from other VIs, while the VI you're accessing isn't running.
The reason for this is the way LV compiles the code - LV just can't manage with you changing a control to an indicator while the VI is running, because that would change the way the VI works.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
09-03-2005 05:07 PM
I took the liberty to modify your VI for an alternative approach (LabVIEW 7.1). You should keep your array of 32 clusters in a shift register and show only a single cluster as a front panel control.
Let me know it this makes sense to you. These are just some ideas, modify as needed. Good luck! 🙂
09-04-2005 04:43 AM