LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic cluster/array follow up question -> front panel

Thanks for the responses to my last question - they were great and fast!

I'm still stumped on how to create the front panel. It doesn't really matter whether it is an array or cluster. It sounds like either way, once I have it I can autoindex through it. The basic application here is that I have a VI that will store one XY plot to our database. I'd like to wrap that in a VI that will take N XY plots and store them all in our database regardless of what N actually is. So in terms of creating the front panel, I tried to create an array control and drop a XY graph in it, but it doesn't seem to like that. It said that I hadn't added an element to the array. I also tried to drop a XY graph into a cluster control and that cleared the broken run arrow, but wouldn't I have to know how many XY graphs are being passed in? It seems like I'd have to put one graph in the cluster control for each graph coming which defeats my purpose? Remember I won't know how many XY graphs are coming into my VI in the array or cluster. Anybody know how I can set up the front panel?

Again thanks for the quick replies!!!

Best Regards,
Steve
0 Kudos
Message 1 of 2
(2,546 Views)
Look at the attached VI.

It has a single XY graph inside a cluster container, and that is inside an array container.

With this setup, it wouldn't matter how many graphs you pass to the subVI since it's an array, it will take whatever is passed to it.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 2
(2,542 Views)