04-18-2018 10:47 PM
I am trying to provide a test specifier user interface. The number of tabs to be displayed needs to be configurable (maximum 16)
Channels are also configurable, but here they can vary and will come from configuration file. Depending on how many readings user wants (configurable), those many array elements needs to be displayed.
Appreciate any suggestions/ help in this regards. I hope I explained the requirement correctly.
04-19-2018 01:03 AM
Hi,
unfortunately, pages can only be added to or removed from a tab control at design time. I think the easiest way for you, since you don't need an excessive amount of pages is to add 16 pages to your tab control and then make them visible as needed, like so:
As for the number of displayed array element, there's a property for that called "Number of Rows" or "Number of Columns" respectively.
04-21-2018 07:55 AM
Thank you for the reply. But Issues I am facing are:
04-22-2018 03:43 AM
If you're talking about your VI, I haven't seen it, since I only have 2015 installed.
Without looking at it, I'd say that any sort of random behavior most likely comes from an uninitialized shift register/variable.
What do you mean by Sr.?
04-22-2018 09:25 PM
Hi Gusre,
I can see the problem now. In your VI you use the "i" control to set the value of the "Sr. No", but this doesn't happen quite how you expect. If you probe the wire leading into the second For loop, you'll see that the "Controls on Page" only has one item - this is the Array.
When you get the "Array Elem" reference, this is to the datatype of the array - not the value of the array. You can provide what I think the functionality you want is by adding an additional For loop inside your 2nd loop, with the N value wired to the number of values you want (perhaps 5 in this example) then using Bundle by Name combined with the cluster constant and the "i" value in the new loop and outputting an array of these clusters to a "Value" property node of the array.
See the messy picture below:
Let me know if this is what you were looking for, and good luck.