LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

impossible to turn off autoscaling?

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

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 1 of 20
(3,033 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 20
(3,029 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 20
(3,021 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 20
(3,015 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 5 of 20
(3,000 Views)

This fails in LV 2011.0 as well

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 6 of 20
(2,997 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 7 of 20
(2,982 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 20
(2,971 Views)
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.

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 9 of 20
(2,963 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 10 of 20
(2,952 Views)