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

Get Image from XY Graph

已解决!
转到解答

Dear sir

I'm plotting the Polar and Rectangular plots simultaneously. 

Please find the enclosed VI.

From front panel if I select plot type as rectangular it is saving the both plots with data, but if I select plot type as polar the data in rectangular plot is not saving.

I have customized the polar plot, after opening the VI if it shows any errors please replace the polar plot.

Kindly resolve the issue.

 

Regards,

S Nagaraju

0 项奖励
1 条消息(共 11 条)
6,056 次查看

Hi Sonti,

 

I surprised that when rectangular is visible and polar is hidden it saves both images. If I make a simple VI where I set visible = False for both plots, then all I get is a grey rectangle as the image. But, I verified the behavior you are talking about.

 

I think your best bet is to make sure whatever plot you want in image of has visibility set to True before taking the image data.

0 项奖励
2 条消息(共 11 条)
6,008 次查看

Hello gregoryj,

 

Plot type is only for visibility.

Irrespective of selection both plots to be saved with data. But when i select plot type as polar the data in rectangular graph is not saving.

Please find the enclosed images for more clarity.

 

Regards,

S Nagaraju

下载全部
0 项奖励
3 条消息(共 11 条)
5,998 次查看

Yes, I understand the issue. I just think something is not being updated sometimes when the XY Graph is hidden, so I would make sure whatever graph you want an image of has Visibility set to True before you get the image data.

4 条消息(共 11 条)
5,978 次查看

Hello gregoryj,

 

Ok I'll make visibility true before saving.

Can you please explain the issue, why data is not saving when rectangular graph is hidden.

 

Regards,

S Nagaraju.

0 项奖励
5 条消息(共 11 条)
5,967 次查看

Probably NI doesn't bother updating the appearance of that graph when it is hidden because why waste the time to do that when it isn't displayed.

0 项奖励
6 条消息(共 11 条)
5,961 次查看

Then why polar plot is saving when it is hidden??

 

Regards,

S Nagaraju

0 项奖励
7 条消息(共 11 条)
5,955 次查看

Different control type.  NI handled the updating of its appearance differently.

0 项奖励
8 条消息(共 11 条)
5,946 次查看

Thank you very much the replay.

I have one more doubt, actually in rectangular plot the X-axis coordinates are -180 to 180. After plotting a horizontal line which is joining from 180 to -180. How to remove the joining line.

Please find the enclosed pic for more clarity.

 

Regards,

S Nagaraju

0 项奖励
9 条消息(共 11 条)
5,930 次查看
解答
接受人 Sonti_11532

"reply".

 

Do you mean you have a question?  "Doubt" means you don't believe something to be true.

 

To get rid of the horizontal line, you basically need to put a break in the data.  If you arranged your data so the array was truly -180 to 180 then you'd be done.  I'm guessing your data starts and ends elsewhere and it makes a jump from 180 back to -180 somewhere in the middle.  What you can do is insert a data point at that discontinuity that has a value of NaN for the X, Y, or both.  NaN values do not print on a graph or chart in LabVIEW.

10 条消息(共 11 条)
5,910 次查看