LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphic bug when creating stand alone application

Hi all,
When I create a stand alone application, some graphs have a different position than in the original frontpanel.This matters a lot because I am using several graphs to superpose plots...
This bug occurs on computers where LabVIEW is not installed. On mine, on wich I developped the application, there is no problem.
Thanks for your help!
0 Kudos
Message 1 of 11
(3,367 Views)
I've never seen this - what version of LabVIEW?

What version of the RTE (RunTime Engine) is on the computers with problems?

Can you post code that demonstrates this?

Are you using property nodes to position any graphs?

How far off are the "bad" graphs?

The first thing to do is to make a copy of the VI that's showing this, strip out ALL code, and build an app with just a front panel (OK, maybe a STOP button).

If the problem goes away, then it's your code that's doing something wrong.

If not, then post that VI, and maybe we can offer more help.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 11
(3,368 Views)
Hi thanks for your help.
I follow your advice, making a copy and stripping out all code. But the problem remains.
If I install tha application on my computer everything is allright, but on another computer (wich is exactly the same as mine, with the same monitor resolution), some graph position change.
I can't send you code, the file is too big, but I post you screen copy with pb and without. Here I have graph superposed on an intensity graph. The graph is transparent, you can only see a cursor and scale. In fact here, it is the size of the intensity graph plot area which changes...

I'm using LabVIEW 6.1 and the run-time engine of the same version
Thanks
Nico
Download All
0 Kudos
Message 3 of 11
(3,368 Views)
Screen shots don't help - whay can't you post the VI version with the code stripped?

It's possible that the graph changes size because of text issues, but I can't tell that without the panel itself.

You say "with pb and without" - I don't know what you mean by "pb"

I also wonder about the basic premise - why do you need to superimpose one graph on another?
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 11
(3,368 Views)
Another thought - on your stripped-down version, pop up on the graph(s) and UNCHECK the option "AUTO-ADJUST SCALES". Then build an app and try it again.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 5 of 11
(3,368 Views)
I agree with the font line of thinking here.

I also believe there is an INI setting that goes along with the "Auto-Adjust scales". Make sure that ends up in the INI of the executable.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 11
(3,368 Views)
I also believe there is an INI setting that goes along with the "Auto-Adjust scales".

I don't think so - it's a property of the graph. You can have multiple graphs, each with its own setting.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 7 of 11
(3,368 Views)
I send you the stripped down version.
I need to superimpose graph because I want to display 3D plot (intensity graph) and 2D plots (graph). Moreover, I do not want to draw them at the same time (for this I don't see an easy solution using only one graph...)

you can see the pb on the bad panel on the graph which has frequency as scale name. The size of the plot area is not the same on the two version. So the scale of the second graph is no more at the same position.

Thanks
Nico
0 Kudos
Message 8 of 11
(3,368 Views)
Yeah, that's your problem.
You need to uncheck the AUTO-ADJUST SCALES option on BOTH graphs (under ADVANCED, on the GRAPH ITSELF, not under SCALES).

Then line them up and make sure the plot areas are the same.

LabVIEW will adjust the plot area to allow room for the scale text, unless you uncheck this option. If the Y data goes from 1.0 to 1000.0, there's more room needed to display the 1000.0, so LabVIEW will shrink the plot to allow it. You need to just say no.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 9 of 11
(3,368 Views)
Yes , that's it!
Thank you, everything is allright now.
But can you explain me why on my computer LabVIEW do not adjust the plot area as on the other computers?
This is quite strange, I would like to understand...
Thank you one more time.

Nico
0 Kudos
Message 10 of 11
(3,368 Views)