LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Image from XY Graph

Solved!
Go to solution

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 Kudos
Message 1 of 11
(5,078 Views)

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 Kudos
Message 2 of 11
(5,030 Views)

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

Download All
0 Kudos
Message 3 of 11
(5,020 Views)

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.

Message 4 of 11
(5,000 Views)

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 Kudos
Message 5 of 11
(4,989 Views)

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 Kudos
Message 6 of 11
(4,983 Views)

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

 

Regards,

S Nagaraju

0 Kudos
Message 7 of 11
(4,977 Views)

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

0 Kudos
Message 8 of 11
(4,968 Views)

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 Kudos
Message 9 of 11
(4,952 Views)
Solution
Accepted by 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.

Message 10 of 11
(4,932 Views)