The best way to learn about property nodes is to create some to go with your application and begin to play around with them. For example, it took all of the property nodes shown above(and more) to create the Analog Discovery 2 Oscilloscope interface shown below. Most of them have more, especially tables and graphs (which can have over 100 properties). You will see each new option appear in sequence you can later change these if you like by clicking on any item with the Operating tool.Īlmost all controls or indicators have the base properties. Remember, instead of creating another property node, you can select several options at a time by enlarging the terminal with the Positioning tool (much like you enlarge cluster and array terminals). To add an additional property, you can use the Positioning tool to resize the terminal and get the number of properties you need. Often you will want to use more than one option in an object’s property node. The same analogy we used for locals, a control (read mode) and an indicator (write mode), holds for property nodes.Īn interesting feature of property nodes is that you can use one terminal on the block diagrams for several properties (but always affecting the same control or indicator). A property node in read mode has the arrow on the right, reading the current property and providing this data. A property node in write mode has the arrow on the left, indicating the data is flowing into the node, writing a new property. The small arrow inside the property node’s terminal tells you which mode it’s in. To change the mode of a property, pop up on it and select the Change to Write/Read option. Just as with local variables, you can either read or write the property of an object (although a few properties are read-only). Each object has a set of base properties (common to all types of controls), and usually, an additional set of properties specific to that type of control. Now you have the choice of which property or properties you wish to select. To see what options you can set in a control’s property node, click on the node with the Operating tool or pop up on the node and choose property. A terminal with the same name as the variable will appear on the diagram. To create a property node, pop up on either the front panel object or its terminal and select a property from the Create>Property Node submenu. These types of changes can help create a more intuitive user experience. For example, you could change the color of a thermometer indicator from green to red as its numerical value increases. The key word here, programmatically, is changing the properties of a front panel object according to an algorithm in your diagram. Property nodes allow you to programmatically control the properties of a front panel object: things such as color, visibility, position, numeric display format, and so on. With property nodes, you can start making your LabVIEW program more powerful and a lot more fun.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |