01-25-2024 08:22 AM
I have created a table which has some property nodes of cell sizes, colors... I want to create another table which is almost exact (all sizes, colors...) as the other one but with different data. Is it posible to do it easily or i need to copy the example attached for another table?
Solved! Go to Solution.
01-25-2024 08:39 AM
Make sure you attach the VI's Instead of Images.
We cannot Run/Edit/Debug Images.
Do you want to set both Tables with Same Size and Color or do you want to retrieve from one Table and Set the Values to another?
If you want to set both the tables with same size and color you just need to map same values for both the property nodes.
if you want to retrieve from table 1 and write back to table 2 read the values of size and color from table 1 and write to table 2
01-25-2024 08:40 AM
Hi,
You could make your code reusable by disconnecting the property nodes from your table (right-click property nodes -> Disconnect From Control). Then create a reference from the table you desire to setup (right-click a table -> Create -> Reference), and wire it to the disconnected property nodes. Writing to the terminal can also be made generic by instead writing property "Value" (but it is a bit less effective than writing to the terminal directly or to a local variable).
If you need more help, please post your VI, not a truncated image of your block diagram.
Regards,
Raphaël.
01-25-2024 01:41 PM
Properties, once set, stick with the control/indicator, so apply all properties to one table, then make a copy of that table.
If you need to update certain properties at runtime, set them by auto-indexing on array of references for all needed tables.
I also recommend some simple tutorials, because your code is overly complicated, for example index array is resizable and you really don't need any shift registers for your desired loop outputs
01-25-2024 02:13 PM
How about reading the properties of Table 1 and writing them to Table 2?
01-26-2024 02:10 AM
I'm quite new in Labview so I didn't know that was posible
01-29-2024 10:17 AM
@raphschru wrote:
You could make your code reusable by disconnecting the property nodes from your table (right-click property nodes -> Disconnect From Control). Then create a reference from the table you desire to setup (right-click a table -> Create -> Reference), and wire it to the disconnected property nodes. Writing to the terminal can also be made generic by instead writing property "Value" (but it is a bit less effective than writing to the terminal directly or to a local variable).
This.