11-26-2009 12:55 PM
Hi:
I need to multiple unique xy graphs on the same page. Easiest way would be to use a for loop. The problem is I cannot figure out how to use the graph property node to create a new graph for each loopp cycle? Is this even the way to do this? BTW I have labview 6.1.
Thanks
11-30-2009 10:48 AM - edited 11-30-2009 10:49 AM
Howdy,
Sounds like you are wanting functionality found with LabVIEW Scripting which is supported with LabVIEW 8.6 and above. However, other users have found different ways, see the programmatically add front panel objects forum thread. Best of luck!
11-30-2009 10:52 AM - edited 11-30-2009 10:53 AM
The recommendation made is inaccurate due to the vague request made in the OP.
Do you want 4 graphs on the front panel or do you want 4 plots within one graph?
There was a recent post with a similar request here:
http://forums.ni.com/ni/board/message?board.id=170&message.id=457536
-Bob
11-30-2009 01:23 PM
11-30-2009 01:25 PM
Do these graphs need to display the same set of data? Different sets of data? What have you tried so far?
This seems like a very trivial thing to do, where are you running into trouble with this?
-Bob
11-30-2009 01:31 PM
Bob:
Admittedly I am new to labview. So this is most likely trivial. The individual graphs would be unique with each having its own data set. I tried using a for loop and changing the active plot number of the graph property node. But it keeps writing over the same graph.
Thanks
11-30-2009 01:39 PM
Assuming you're generating/acquiring data inside of the inner-most loop, you can enclose the loop inside of another for-loop which calls the inner code to generate multiple data sets. Finally, index the output for your individual graph data sets.
Does this make sense?
-Bob
11-30-2009 02:48 PM
11-30-2009 07:00 PM
The way it is now I still have to make the individual xy graphs from the front panel. I want the loop to create the graphs so I don't have to create everyone of them (I have hundreds of graphs). Is that possible?
11-30-2009 07:13 PM