LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scrollbar bug in application builder

I seem to have found a bug concerning the front panel scrollbars when creating an executable with application builder.
 
My vi runs fine in Labview. It also runs fine as an executable with everything at defaults.  
However, trying to remove the scrollbars from the front panel, I can build executables that hang up upon running. 
 
Executable hangs up when:
- setting the vi property 'windows appearance' to dialog.   (application builder set to use vi settings)
- in application builder, sourcefile setting:  setting 'use scrollbars' to  "don't use vi settings" and value "not checked"
 
What's really weird is that sometimes those troublesome executables do work.   The executables compiled with the 'dialog' option only seem to work once, and then not anymore.    While the one with the no-scrollbars option set in application builder seems to hang the first time, but work fine after that.   Except that it does show scrollbars....
 
 
The executable does work without front panel scrollbars when setting the vi property 'windows appearance' to 'top level application' and application builder settings to 'use vi settings'.
0 Kudos
Message 1 of 7
(3,367 Views)
Hello Anthony,
I need a little bit more information. So what version of LabVIEW are you using? Which Operating System? Is it possible that you attache an example VI where behavoiur is reproducable?
Thanks,
Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(3,333 Views)
Hi Rebecca.   
 
I'm using Labview 8.2  on Windows XP SP2 for developing.  The PC that the .exe should run on has the LV 8.2 runtime installed, also on Windows XP SP2.  
 
 I've attached two executables of my program:  'works'  and 'doesn't work' which were compiled with the scrollbar on and off.  Also included the source distribution.  The "Micro4 Advanced Multiple Injections LV82" is the main program.   (Hope I did the distribution right... it's the first time I'm using this project thing...)
 
I've been testing a bit more myself...  I now noticed that both .exe's work correctly on my developement PC, but only the one works on the runtime PC...    
0 Kudos
Message 3 of 7
(3,324 Views)
Hello Anthony,
sorry for late answering. You´re project is very big, perhaps you can minimze it? But when it´s running on your developingsystem and not on the other, than there is sth missing. On the Runtime PC are there the same driver versions, runtime version of LV and so on? What is different?
 
 
Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(3,302 Views)
Hi Rebecca,
 
You're right, I indeed had a problem with the driver versions.  The Labview runtime was up to date, but NI-MAX and NI-Visa were not    (vers. 2.2 and 2.6 resp.)  Apparently, those older versions were the problem.  Now that I installed the newest versions for everything, no versions hangs anymore.
 
However, this doesn't solve all problems.   What still does not work, is having the application builder control the behaviour of the main vi.   In stead of making a non-working vi, it now simply ignores anything I set.
 
 
It doesn't seem to be anything specific in my vi....
 
I've made a really simply test vi.  (see attachment). In the application builder I unchecked:  'run when opened' and 'show scrollbars'.   for both the 'use vi setting' and 'value' checkboxes.  However, when I build an .exe, it still shows scrollbars, and executes when opened...     
 
That happens both on my developement PC with LV8.2 and app builder, as well as on PC's with only the LV runtime.
0 Kudos
Message 5 of 7
(3,275 Views)
Hello again...
 
so I tried it and have the same behaviour as you. I will report to RND. But one thing is correct, an exe will allways run at beginning. But with the scrollbars that is not correct. I´ve found a workaround, unable the scorllbar option in VI option. This will work!
 
 
Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 6 of 7
(3,274 Views)
I also use Labview 8.2 run-time and have the same problem with "run when opened" option - if I deselect this option in the build specs, the *.exe file still runs when opened. Is there a fix yet? 
0 Kudos
Message 7 of 7
(3,224 Views)