取消
显示结果 
搜索替代 
您的意思是: 

Plot array to waveform graph

已解决!
转到解答

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.

 

下载全部
0 项奖励
1 条消息(共 9 条)
8,428 次查看

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
2 条消息(共 9 条)
6,337 次查看

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.

0 项奖励
3 条消息(共 9 条)
6,326 次查看

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
4 条消息(共 9 条)
6,322 次查看

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 项奖励
5 条消息(共 9 条)
6,318 次查看

Simple Attached.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
6 条消息(共 9 条)
6,283 次查看

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 项奖励
7 条消息(共 9 条)
6,272 次查看
解答
已被主题作者 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
8 条消息(共 9 条)
6,268 次查看

I got ittttttt. Thanks a million ace!!

0 项奖励
9 条消息(共 9 条)
6,261 次查看