08-25-2009 04:31 PM
Iam trying to record the data in a 2-seperate graphs. say graph-1 and graph-2.
Elements are classified in to 2-groups each group should be tied up to 1-graph.
Iam reading the elements and the info to which group the element is belonged from a Excel sheet. And the element value is Received and should be assigned to the plot during the run time of a test .The number of signals in the group may vary from test to test so it is unknown.
1) Can anyone help me how to divide the received data based on the group to which it belongs and plot that data in a graph.
2) And how to display the names of the signal what actually it is plotting for.
Thank you
Shanth.
08-25-2009 08:27 PM
Can any one pls help me with ploting waveforms in the Graph. I want to display mulitple no of signals in a single graph. And should indicate the name of the each signal in the graph.The no of signals will be varied for test to test. So no of signals in the graph will be updated during run time.
Thank you,
Shanth,
08-25-2009 08:52 PM
08-25-2009 09:52 PM
Hello Harlod,
Can you give me a little bit more information, how to show the names of each plot, and how to plot many signals in a single plot.
Thank you,
Shanth.
08-25-2009 10:07 PM
08-25-2009 10:19 PM
Go to the diagram and turn on context help. Move the mouse over the graph terminal and look at what is required for multi plots. You can create what you need with a graph but with single point acquisition, you are going to have to do some coding to keep adding new data to the graph. By default, a graph will replace the old data with new each time you write a new array to it. That's the basics of how a graph works. You should probably use a chart. Below is an image of how you could convert the 1D array to a 2D array (use context help again) and wire it to a chart. The number of columns in the 2D array will correspond to the number of channels you are acquiring. I'm assuming that someplace you get that information.
To name plots, you can use a property node. I don't know where you will be getting the names so the image just shows a string array constant wired into a for loop.
08-26-2009 01:07 AM
08-26-2009 02:03 AM
08-27-2009 11:33 PM
08-28-2009 09:48 AM