08-12-2010 10:39 PM
I am wanted to display mutliple waveforms in a waveform graph, I have the following challenges to figure it out.
Someone please guide me to do this
1) Input is only 1-D array(which gets updated in run time), but waveform graph is accepting only 2-D array as input to display multiple signals.
2) Iam using the attached waveform, which works as a waveform chart and wanted to feed the 1-D array to this vi.
(Found this vi in a post). I want to go with only waveform graph because of the cursor option availabe in the Graphs.
-Zhang
08-12-2010 11:04 PM - edited 08-12-2010 11:09 PM
You can also feed your waveform graph a 1-D array of waveforms.
Right now you are only feeding in one signal which is a single waveform. Insert a build array to that, and add in another waveform signal. Now you have a 1-D waveform array that consists of 2 waveforms which you can feed to the graph.

08-12-2010 11:09 PM
Don't understand your code. Each iteration generates a single new point. How does that constitute multiple waveforms? You can certainly display each point on a different plot but do you really want 100 different ones?
You've also got some incorrect statements. You are not feeding the graph a 1D array. You are passing a single waveform. A graph will display a 1D array of waveforms as multiple plots.
08-13-2010 07:39 AM
Thank you for the reply Dennis, this was only an example code that i was playing with. I wanted to display each array element on each graph so that if array has 5 to 10 elements, graph should plot 5 to 10 signals. Where the size of array is not unique.
I want to replace the present input to the graph,which is generating the single new point for each iteartion with my Input to Graph control.
08-13-2010 07:43 AM
Thank you for your reply Ravens Fan. I actually wanted to remove the present input to graph, which is generating a new point for every iteration and feed only my array (Input to Graph) control to the waveform graph indicator. Can you please give suggestion how to achieve this.
08-16-2010 11:08 PM
Ravens,i can barely think of modifying the above vi. Can you please provide your help in modifying this program. What iam planning to do is, I have a 1-d array of values, where each element's value will be updated in run time and I want to display each element as a independent plot. like if array consists of 'n' number of elements, I have to plot 'n' number of plots in the same waveform graph.
Iam using only this vi because I want to display the plots continuosly with respective to time and also to provide a cursor option(as the cursor option is only avaialble in waveform graphs).
08-17-2010 01:20 AM
hi Zhangj,
You have 1-d array of values at a time,say array of 10 values which belongs to 10 channels and each element will be updated and you want to display the data as independent plot..Is that what you want?If yes ,then you have to place a nested for loop and place a wait until next ms multiple vi and wire to some value which is equivalent to time between each samples and wire N of the inner loop to 10 and outer loop to some 100 and take the transpose of the outer value and plot....Just look at the attachment,,,
thanks and regards,
srikrishnaNF
08-17-2010 11:34 PM
Thank you very much srikrishna for your reply, I was looking some thing similar to this logic.But the only other thing I wanted to add to this logic is making the x-axis to run with the time (X-axis always stays at the same scale),allowing the user to look at the data right from beginning using the graph palette, when he stops the execution .
I had inserted the array, replacing the random number generator and was able to verify the data, which is updating correctly during run time. Iam attaching the modified vi. Can you please tell me how to change the x-axis so that it runs with the run.
-Zhang