01-15-2012 11:43 PM
Hi, I have an array that I wish to plot it into a waveform graph. I tried experimenting with the Build Waveform function and some others but could not get anything out of it. And how do I choose which points I wish to plot on the graph?
Thanks in advance.
Solved! Go to Solution.
01-16-2012 01:08 PM - edited 01-16-2012 01:10 PM
It depends on your data. If you are always sampling at 5 seconds, you can use Build Waveform. Wire the dt for 5 seconds and index the columns you want. Otherwise, you will need to use an XY graph.
01-16-2012 10:00 PM
Hi man thanks for your help. I tried your example, but couldn't get the expected waveform. I attached an excel file on how the waveform should look like. Really appreciate it if you can help me.
01-16-2012 11:09 PM
Possible repost?
Anyways try the attached VI. I am not sure what you mean by intensive. This will extract data from your text file and do everything automatically for you.
01-17-2012 12:06 AM
Hi Ace. Is there any simpler way to implement this program? Without using any loop or structure.
Anyway Ive tried your suggestion but when I change the graph's scale, it will not display any waveform.
The scale that I wish to use are:
Y axis - Automatic Formatting, Minimum 0, Maximum 60, Offset 0, Multiplier 1
X axis - Relative Time, Minimum 0, Maximum 86400, Offset 0, Multiplier 300
When I try to instill this properties with your suggestion, it doesn't display any waveform and I'm not sure why.
But I would really appreciate it if we can come up with simpler program, like I mentioned. Preferably, with what I already have as a base. (The VI I attached above).
Many thanks, best regards.
01-17-2012 12:43 AM
Simple Attached.
01-17-2012 02:00 AM
A million thanks my friend. We're almost there. It''s just that I thought by having the plot visibilty checkbox, I can choose which plots to display. But fact is, it's only displaying two plots, even though I checked all the boxes.
Another question, what does the constants 5 and 6 on the index array represents?
01-17-2012 02:50 AM
You have only wired 2 signals, hence just the two signals. If you need more, expand the merge signals node and wire more signals to it.
5 and 6 are the column numbers for Poly_M_Tem & TF_M_Temp, I had to delete the first column as this was the time stamps and it was not required. Hence it is different from your 6 & 7.
Hope that makes sense.
01-17-2012 03:31 AM
I got ittttttt. Thanks a million ace!!