08-18-2017 07:01 AM - edited 08-18-2017 07:06 AM
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
Solved! Go to Solution.
08-18-2017 03:29 PM
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.
08-18-2017 11:50 PM
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
08-19-2017 02:53 PM
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.
08-20-2017 10:07 AM - edited 08-20-2017 10:09 AM
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.
08-20-2017 12:23 PM
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.
08-20-2017 01:09 PM
Then why polar plot is saving when it is hidden??
Regards,
S Nagaraju
08-20-2017 03:38 PM
Different control type. NI handled the updating of its appearance differently.
08-20-2017 11:38 PM
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
08-21-2017 10:49 AM
"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.