02-13-2012 09:39 AM
LV 2010.0, Win Vista.
I have a Waveform chart with four channels(plots), and four scales.
While running, it seems impossible to turn off AUTOSCALE Y, except for plot/scale #0
If I choose AUTOSCALE Y on any other scale, it affects only plot #0.
Doesn't the menu apply to the scale that I'm clicking on?
See this JING: http://screencast.com/t/RfaRoiOq
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-13-2012 09:48 AM
I should mention that this is on a VI that is REENTRANT, and is being used on a SubPanel.
Looks like that might have something to do with it.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-13-2012 10:03 AM - edited 02-13-2012 10:05 AM
Don't have access to 2010, but 2011 isn't doing it...
Edit: Oh... Reentrant -- in a subpanel... That's going to take a bit...
Mike...
02-13-2012 10:10 AM
Hmmm. I've attached a sample progarm, but I can't make THAT fail.
It's using the REENTRANT chart VI in a subpanel, yet it works normally.
Yet, the JING certainly shows a faiure of some sort.
Obviously, there's something ELSE going on.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-13-2012 12:02 PM
OK, attached is a VI that proves (I think) that this is a LabVIEW bug.
SubPanels have nothing to do with it.
Re-entrant has nothing to do with it.
It has to do with EVENT REGISTRATION, which was on my original code (where I made the JING), but not on my whipped-up example.
If you run the attached VI as is, you will see no failure. All scales are independent, as expected.
If you ENABLE the EVENT REGISTRATION vi, then the chart starts misbehaving: changing AUTOSCALE on scales #1, #2, or #3 affects ONLY scale #0, not the one you clicked on.
There is no event handler for the event, though adding one doesn't change anything.
I don't know yet, whether it has to be a SHORTCUT ACTIVATION event, or whether it has to be on the chart at all.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-13-2012 12:06 PM
This fails in LV 2011.0 as well
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-13-2012 12:44 PM
If you ENABLE the EVENT REGISTRATION vi....
CORRECTION: that should be:
If you ENABLE the EVENT REGISTRATION code block...
This has been reported to Tech Support.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-13-2012 01:14 PM
What is hosing it up is the external event registration. If you delete that event registration and the dynamic event terminals and create a normal shortcut menu activation event, all is well with the world.
Are you talking to NI about this? Post the CAR when you get it.
Mike...
02-13-2012 01:29 PM
If you delete that event registration and the dynamic event terminals and create a normal shortcut menu activation event
I assume by "nornal", you mean to connect the event to the chart directly. But I can't do that in my real code.
Each instance of the reentrant VI has 100+ controls/indicators that I want to attach the same menu additions to.
So I go thru each page on the tab (the chart is on one tab), collect ALL control references to ALL controls, and register them in ONE registration thing.
Quite elegant in theory. And it works like a charm. Except for this. And the fact that Charts don't generate events like they're supposed to (see This Bug).
Are you talking to NI about this?
Yes, I have posted it to Tech Support.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-13-2012 02:07 PM
Bad news. The bug affects GRAPHS as well as charts. Same scenario = same results.
LV2010 and LV2011.
And we were looking at using GRAPHS because CHARTS fail to send out events they are supposed to.
Attached is the LLB with the GRAPH version as well as the CHART version from before.
Blog for (mostly LabVIEW) programmers: Tips And Tricks