LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot array to waveform graph

Solved!
Go to solution

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.

 

Download All
0 Kudos
Message 1 of 9
(7,763 Views)

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.

 

example

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 2 of 9
(5,672 Views)

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.

Download All
0 Kudos
Message 3 of 9
(5,661 Views)

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.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 4 of 9
(5,657 Views)

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.

0 Kudos
Message 5 of 9
(5,653 Views)

Simple Attached.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 6 of 9
(5,618 Views)

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? 

0 Kudos
Message 7 of 9
(5,607 Views)
Solution
Accepted by topic author johnny az

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.

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 8 of 9
(5,603 Views)

I got ittttttt. Thanks a million ace!!

0 Kudos
Message 9 of 9
(5,596 Views)