codcoder Posted January 25, 2016 Report Posted January 25, 2016 Hi guys, I'm trying to programmatically update the names of five plots in a digital waveform graph. The plots are in a particular order which corresponds neatly withe the order in the legend as in the order under the "Plots" tab in the properties window. However when I try to update the Plot.Name property for each plot by stepping through the ActPlot property the order seems to be 1-2-3-4-0, i.e. when I try to change the name of ActPlot=0 it affects the last plot instead of the first. What gives? Is there any other indexing property instead of ActPlot I can use which LabVIEW uses to keep track of the plot order? I'm just updating an old vi so it would be nice if it could be solved without altering the waveform used as an input to the graph. Quote
drjdpowell Posted January 25, 2016 Report Posted January 25, 2016 What gives? A bug, I assume. Either in your code or the digital waveform chart. Quote
ensegre Posted January 25, 2016 Report Posted January 25, 2016 I've recently ran into this bug, and this workaround seems to make the trick, "most" of the times. LV2015. 1 Quote
JKSH Posted January 25, 2016 Report Posted January 25, 2016 In my experience, if you post bug reports at http://forums.ni.com/ you'll catch the attention of NI staff and there's a good chance they'll open a CAR (especially since you have instructions and workarounds). Quote
codcoder Posted January 25, 2016 Author Report Posted January 25, 2016 (edited) This is simply amazing! Speedy answer, working solution. Thanks enserge! To be clear for anyone with the same problem it is the two steps YScale.ScaleFit=0 and YScale.ScaleFit=2 that does the trick (I guess you force LabVIEW to internally update the chart or something). Will you report this to NI enserge? Edited January 25, 2016 by codcoder Quote
ensegre Posted January 25, 2016 Report Posted January 25, 2016 go ahead, please, I'm kinda busy these days. I sort of remember I have read on some other thread that the digital graph was a nest of bugs, but if we don't report them one by one there is little chance to get them worked. I also had some occasional mess ups of the plotted part, but not that systematically to pinpoint when, and likely the trick of forcing re-autoscale masks them. Quote
Jordan Kuehn Posted January 25, 2016 Report Posted January 25, 2016 In my experience, if you post bug reports at http://forums.ni.com/ you'll catch the attention of NI staff and there's a good chance they'll open a CAR (especially since you have instructions and workarounds). Also instructions on how to reproduce. If they can't do that first you won't get far. 1 Quote
ensegre Posted January 27, 2016 Report Posted January 27, 2016 (edited) The attached shows what I think is the bug for me. And another one btw related to the always visible plot legend in either classic or tree form. And third, occasionally the Y scale gets wrong but it is not clear to me when. I suspect race conditions while redrawing as I've been able to reproduce the faulty naming only using the event structure; labelling was always correct if I omitted the outer while and event frame, i.e. if I had run the inner code once and again from ready to run VI state. DigitalPlotNames.vi ETA: tried twice to submit it as a service request and got An error ocurred.We are unable to create your Service Request at this time. Please try again later. Edited January 27, 2016 by ensegre Quote
JKSH Posted January 27, 2016 Report Posted January 27, 2016 ETA: tried twice to submit it as a service request and gotAn error ocurred.We are unable to create your Service Request at this time. Please try again later. You'll have much better luck posting to http://forums.ni.com/ than submitting a service request. (Twice before, I tried to submit bug reports using service requests. The staff who was assigned to me started off by asking very simple questions which were already answered in my original post. Since then, I've posted all my reports to the forum, and get good outcomes) Quote
ensegre Posted January 27, 2016 Report Posted January 27, 2016 Be that: http://forums.ni.com/t5/LabVIEW/bugs-in-Digital-Waveform-Graph/td-p/3244498 Quote
ensegre Posted January 28, 2016 Report Posted January 28, 2016 CAR 570134. http://forums.ni.com/t5/LabVIEW/bugs-in-Digital-Waveform-Graph/m-p/3245026#M945202 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.