Running executable as a service, the front panel doesn't display properly upon the second logon.

I am running a LabView executable as a service.  When I logon the first time, I see the front panel correctly.  When I logoff, the service still runs properly.  If I logon a second time, the frontpanel never fills in.  (I see the desktop through the front panel).  The service still runs, but when I click on any menu, the computer freezes.  Any suggestions?  (Other than not logging on twice)

Hi chach,
I hate to say it, but I'm surprised it even runs once.  If you check out:
this link
It says the following:
"The service must run without a user interface."
As the article mentions, you could still have a separate front panel that communicates with the service, but the service itself probably doesn't have an accessible front panel.
Joe Z.

Similar Messages

  • Panel doesn't display properly until I resize the frame

    Hiya folks,
    I'm currently trying to write a simple piece of music notation software. This is my first time using swing beyond a relatively simple JApplet and some dialog stuff. Anywho, I ran into a pretty discouraging issue early on. So far I've got a frame with a menu bar and a toolbar on the bottom border. The toolbar contains a button which should draw a new staff panel containing 11 panels (potentially more) within it, alternating between lines and spaces. Sort of like this:
    import javax.swing.*;
    import java.awt.*;
    public class Staff extends JPanel {
       private static JPanel nsp1,nsp3,nsp5,nsp7,nsp9,nsp11;
       private static JPanel nsp2,nsp4,nsp6,nsp8,nsp10;
       private ImageIcon image= new ImageIcon(this.getClass().getResource( "icons/treble clef.gif"));
        public Staff(){
        setLayout(new GridLayout(11,1));
        add(nsp1= new NoteSpace());
        add(nsp2= new LineSpace());
        add(nsp3= new NoteSpace());
        add(nsp4= new LineSpace());
        add(nsp5= new NoteSpace());
        add(nsp6= new LineSpace());
        add(nsp7= new NoteSpace());
        add(nsp8= new LineSpace());
        add(nsp9= new NoteSpace());
        add(nsp10= new LineSpace());
        add(nsp11= new NoteSpace());
    static class NoteSpace extends JPanel{
        public NoteSpace(){
        setPreferredSize(new Dimension(this.getWidth(),2));
    static class LineSpace extends JPanel{
          public LineSpace(){
          setPreferredSize(new Dimension(this.getWidth(),1));
          public void paint(Graphics g) {
              super.paint(g);
              g.drawLine(0, (int) super.getHeight()/2, (int)super.getWidth(), (int)super.getHeight()/2);
    }Anyway, this panel displays as a tiny box wherein nothing is visible until I resize the frame. Really frustrating. And I have have no idea what the problem might be. Here's the actionlistener:
    jbtcleff.addActionListener(new ActionListener (){
            public void actionPerformed (ActionEvent e){
                staff.setBounds(50,panel.getHeight()/2,panel.getWidth()-50,panel.getHeight()/2);
                panel.add(staff);
                staff.repaint();
            });...which is located in a custom jtoolbar class within the Main class, an extension of JFrame:
    public class Main extends JFrame{
       JMenuBar jmb=new CustomMenuBar();
       JToolBar jtb= new CustomToolBars("ToolBar");
       static boolean isStaff=false;
       static boolean isNote=false;
       static JPanel panel = new JPanel();
       private static Staff staff= new Staff();
        private static Toolkit toolkit= Toolkit.getDefaultToolkit();
       private static Image image=toolkit.getImage("C:/Users/tim/Documents/NetBeansProjects/ISP/src/MusicGUI/icons/treble clef.jpg");
        private static Cursor noteCursor = toolkit.createCustomCursor(image,new Point(0,0),"Image"); 
       public Main (String m) {   
            super(m);
            setJMenuBar(jmb);    
            getContentPane().add(jtb,BorderLayout.SOUTH);       
            panel.setLayout(new CardLayout(60,60));
            getContentPane().add(panel);
    public static void main (String[]args){
            JFrame frame= new Main("Music");
            frame.setSize(800,400);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
            frame.setIconImage(image);
           Sorry for all the code. I'm desperate.
    Thanks!

    Oh my... have you been through the Swing tutorial?
    Let's look at some of your code,
    static class NoteSpace extends JPanel{
        public NoteSpace(){
        setPreferredSize(new Dimension(this.getWidth(),2));
    static class LineSpace extends JPanel{
          public LineSpace(){
          setPreferredSize(new Dimension(this.getWidth(),1));
          public void paint(Graphics g) {
              super.paint(g);
              g.drawLine(0, (int) super.getHeight()/2, (int)super.getWidth(), (int)super.getHeight()/2);
    }Here, NoteSpace and LineSpace are being set to a preferred size of 0x2 pixels, and 0x1 pixels respectfully. If you want them at 0 width, how do you expect them to show? In particular, NoteSpace isn't doing anything special. It's just a panel. Why an inner class? Lastly you should not override paint() for SWING. That's AWT stuff. For Swing, you override paintComponent(Graphics g) .
    Then we have this
    jbtcleff.addActionListener(new ActionListener (){
            public void actionPerformed (ActionEvent e){
                staff.setBounds(50,panel.getHeight()/2,panel.getWidth()-50,panel.getHeight()/2);
                panel.add(staff);
                staff.repaint();
            });I'm not sure what the variable jbtcleff is, but it seems you are adding your Staff panel to "panel" every time a button is pressed.... why? Why not just add it once (outside the action listener) and be done with it. Your panel object has a CardLayout, so I assume you meant to create a new+ staff panel everytime a button is pressed, and then add it to the card layout panel. Even so, setBounds(...) does not seem pertinant to this goal. (In fact, in most situtations the use of setBounds(...) is the antithesis of using layout managers).
    The problem you mentioned though seems to be related to the use of a JPanel (your Staff class) that adds zero-width compontents to a grid array.

  • HAVE SOUND- FRONT PANEL DOESN'T WO

    hmmm, okay. Last night I installed the "Beta" driver and the EAX driver. I now have sound but my front panel doesn;t work. For some reason XP doesn't see the panels devices properly and lists all of them on the panel board as UNKNOWN devices. Is there some other driver set I need to install the front panel?

    Hello tonitpp:
    Unfortunately, the "Run VI" method only executes the vi and it will not open the front panel.
    If you want to open the front panel, use the "Open FP" method, which is also located on the same class.
    I hope this helps.

  • Running executable files - which is the best way?

    Is it best to operate three of the same re-entrant vi files from three independently running executable files or is it best to run all three of the same vi files from a single instance of labview?
    I have a re-entrant vi that I created with NI Developer Suite 2006, V8.2.  I saved that vi as three different named vi files for the purpose of creating an executable file from each of them.  These executable files control three identical devices via three serial ports from a USB to serial port hub.  The executable files are run simultaneously on one laptop and they do operate for the most part as expected.  There is a concern about 1 possible IRQ conflict (best guess is that two of the three com ports might be using the same IRQ; com5, com6 and com7 are being used) because one of the three com ports didn't appear to be passing commands as expected like the other two ports did when I first started running the vi.  I'm using a separate port monitoring program to view the transfer of commands to and from the device conected to the serial port to show me the command code being generated to the device and received from the device to validate the proper operation of the executable vi and to time stamp the transfers.
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com

    Megan,
    Thanks for the reply!  First I want to answer your questions.  I do have three independent executables operating simultaneously and each one has been assigned it's own Com port.  The text file is intended to time stamp the ADC reading every two hours.  Each UUT has it's own file that documents the ADC value independently.  I do this to validate the operability of the UUT during the test and doing so also shows me when the UUT fails to operate.  However this problem that I'm havinig with the VI has been providing me with misleading results about the durability of the UUT and I can't figure out why it happens after 12 hours.
    The UUT is  working okay.  I checked Friday it and reset the program and the power to it and it's been running ever since through the weekend.  However the one problem that remains consistent is that after 12 hours the readings for the ADC, which is what I use to verify that the unit is transmitting RF into a dummy load while in factory test mode, just start showing up as 0 when they should be in the high 100's.  One of the UUTs has an RF power meter connected to it's RF antenna and it's been working as expected when I start the test I have a software engineer running the exact same test on the same type of UUT using an entirely different software tool and it's not having any of these symtoms after running for days on end, uninterrupted.  Unfortunately I can't use that software tool for my work because I can't control it with Labview...yet.
    I'd be happy to email you a copy of the VI that I created directly if you think that you can look over it to see if there are any design problems that I need to repair.
    I've attached a compressed file containing a bitmap of the control panels that I use during my test and I've included two NI spy files for you to see what's happening while my VIs are running and the 3 text files that recorded all of the ADC readings from the UUT over the weekend.  I hope you have the time to look at them because  can use the help.
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com
    Attachments:
    FTM Control 123.zip ‏467 KB

  • Front panel doesn't show

    Hi,
    I have a vi (1) that calls a subvi (2) when I press a button. This subvi (2) calls the vi (1) again when I press another button. I have a event structure for this button (button of the subvi (2) ) where I set to false FP Open property for the vi (1) and then I call by reference this vi (1) and I do an invoke node (run) to show the front panel of it but it doesn't work. Why?
    I post a image.
    Thanks,
    ToNi
    Attachments:
    blocks.JPG ‏41 KB

    Hello tonitpp:
    Unfortunately, the "Run VI" method only executes the vi and it will not open the front panel.
    If you want to open the front panel, use the "Open FP" method, which is also located on the same class.
    I hope this helps.

  • Problem about asynchronous call: subVI front panel doesn't pop up when called.

    Dear All,
    I'm new to LabVIEW, and this is the first time I try to use the asynchronous call.
    I'm using LabVIEW 2011.
    I want to build a directory for several VIs, and it should allow users to open more than one of the VIs at the same time by pushing the buttons. Before building this directory, I simply tried to use asynchronous call to call a VI form another VI, but found a big problem.
    I followed the steps in the help file, created a strictly typed reference, set the option to x80 because I don't need the return. When I run it for the first time, it worked fine: the subVI popped up and run. Then I closed the subVI. But for the sencond time and on, when I run the caller VI, the subVI didn't pop up, instead it seemed to run silently on background because when I manually opened it from the file I found it running. Besides, I didn't find any option like "show front panel when called" of the asynchronous call.
    The caller VI and subVI are attached. The address of subVI in caller VI should be changed accordingly.
    What should I do to make it work properly? Thanks very much for  any idea!
    Solved!
    Go to Solution.
    Attachments:
    asynchronous_call.vi ‏8 KB
    boolean.vi ‏7 KB

    Jeff·Þ·Bohrer wrote:
    A better approach is to set the vi properties programaticly like this:
    Jeff, you will be happy to know that I used this tactic in full force on a project recently (lots of dialogs in this program).  Not sure how many LabVIEW reboots it has saved me from.  Reuse VIs made it even easier to do.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Front panel doesn't print

    I am trying to print my VI. I can see the front panel in Print Preview. When it prints the front panel page is blank. Anybody else run into this problem and how did you fix it.
    Thanks
    Chris Gallo

    Are you using any decorations on the front panel?  Perhaps drawing a border around the panel? 
    (Reason I ask is that I once had a border decoration print over the controls it was supposed to be behind.  I'm not sure what happened, since I could access the controls while running the VI, but for some reason, when I went to print, it thought it was in front of the controls.  After selecting the border and sending it to the back again, it fixed the problem.)
    Message Edited by Mythilt on 08-05-2008 10:00 AM
    Jon D
    Certified LabVIEW Developer.

  • My front panel doesn't show

    Hi,
    I have a vi (1) that calls a subvi (2) when I press a button. This subvi (2) calls the vi (1) again when I press another button. I have a event structure for this button (button of the subvi (2) ) where I set to false FP Open property for the vi (1) and then I call by reference this vi (1) and I do an invoke node (run) to show the front panel of it but it doesn't work. Why?
    I post an image.
    Thanks,
    ToNi
    Attachments:
    blocks.JPG ‏41 KB

    Hi ToNi
    I attach you another 2 simple solutions. One with the FP.State property and the other using the close function of the vi reference.
    The problem using the close function is, that the first vi doesn't open in running mode. Using the function "Open FP" the vi opens, but I can't run it.
    This problem is avoidable using the FP.State property.
    To run the vi's, vi1.vi and vi2.vi of the close directory must be copied to c: or you have to change the absolute paths in the vi's.
    I hope this is what you are looking for and it helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    Hide.zip ‏35 KB

  • LV8.0 Auto-print front panel doesn't work

    On the front panel in VI Properties/Print Options the 'Automatically print front panel every time VI completes execution' is cleared when you exit the VI Properties dialog and return to it.  Consequently, you can't get the front panel to print by checking this option. 
    Brent

    Bshu,
    You're absolutely right. That functionality is faulty. A work around may be to use the operate>>print at completion function. FYI: if you enable this property, the  VI Properties/Print Options the 'Automatically print front panel every time VI completes execution' turns black. R&D is aware of both of these problems. Thank you for you're very valuable feedback and post to let us know if there's anything else we can help out with.
    Best Regards,
    Chris C
    Applications Engineering
    National Instruments
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

  • DW properties panel won't display properly ?

    Title pretty much says it. Ever sence i got DW the properties panel dozen't display all the its items. I have uploaded a screenshot of it. I have dual monitors and have tried adjusting the resoulution up and down on both of them I run one at 1400x900 widescreen and the other at 1280 x 1024 both 19 in monitors adjusting resolution on iether dosen't make a difference. Another thing I thought it might be is my system font size its set to medium 125% I haven't tried adjusting that because thats right where I want it.We choulden't have to adjust our computers to the software, it should be the other way around. One more thing dose anyone know how to adjust the font sise in bridge ? the folders panel font is real small.

    See
    CS4 Property inspector fields truncated (Windows)
    http://forums.adobe.com/thread/446724

  • I downloaded Acrobat in August, and would like to use it on my laptop as my secondary device. I understand that one user may use 2 devices under 1 license, as long as not run simultaneously. How is the second download completed?  (Dummy instructions pleas

    This is the only information I've found about using a second device from Adobe:
    Can I use my software on two computers? 
    If you own, or are the primary user of, a single-user or volume license Adobe product that is installed on a computer at work, you can also install and use the software on one secondary computer of the same platform at home or on a portable computer. However, you may not run the software simultaneously on both the primary and secondary computers.  No more than one user can use a single-user license Adobe product.  Note: AVL customers have to buy two different licenses to use both operating systems, even if they have two different computers. They can only use the same license on another computer (not simultaneously) with the same platform at home.
    This is actually for my boss so any timely help is appreciated!

    Hi rebecca,
    You can download Acrobat from: Download Acrobat products | Standard, Pro | XI, X
    and use the purchased serial number to activate the software.
    Regards,
    Rave

  • Front Row doesn't work properly in OSX 10.5

    I'm having a problem with Front Row not working properly in OSX 10.5
    iPhoto transitions aren't working properly in the slide shows, My monitor keeps turning off,
    I have a KDS 17" LCD monitor.
    Also iMovie will show movies with big blank gaps in the video,
    Yet iPhoto and iMovie will run fine using OSX 10.4.10
    The other iApps of iLife 08 appear to be alright so far.
    Is there a fix coming?
    Dave

    Figured it out...
    The "Front Row" settings were set for a screensaver, That's why the monitor kept blanking out,
    I've turned off the screensaver in the settings and "Front Row" works fine now.
    There is no screensaver image chosen, That's why the screen kept going blank or even off.
    Hope this helps others.
    Dave

  • Links Panel doesn't display actual ICC Profile

    Hello. My Link Panel displays "ICC Profile: Document CMYK" on any cmyk image I place, no matter what profile the image bears, and no matter if in Colour Settings the Colour Management Policies is set to Preserve Embedded Profiles or Off. Even if within InDesign I convert it to something completely different, I still get the same information. I'm pretty sure that's not what's supposed to happen, but I'm completely blank on this. Could anyone help me out, please? Thanks a lot.

    Which file format do you use for the placed image? EPS?

  • Google homepage doesn't display properly on only 1 computer. I turned off addons and upgraded from 3.6 to 7 but the problem persists

    All other websites appear properly, it is only the google homepage. The top and bottom banners appear with just a white band in teh middle. No widgets (mail, weather, stocks, etc) appear. It is only on one computer running XP. I have 2 other computers running XP and one running Linux and they work and display fine.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • The App Switcher of Mac OS X Lion doesn't display properly after waking up from sleep

    Hey guys,
    I have a MacBook Pro15 inch Core2Duo 2.66GHz running Mac OS X 10.7.2.
    When my Mac woke up from sleep, sometime the Application Switcher doesn't show the iconc properly like this.
    Other time, it shows the dark icon.
    The color profile setting seems to be messed up. But it only affects certain apps.
    Some of my affected apps are
    Application Switcher
    like attached image
    Icons got darker
    TweetDeckThe app becomes darker overall
    Gaicho Software's XRGThe supposed-to-be orange indicater became red
    Is there any solution to this?
    Thanks in advanced!

    Yes, change your display / colour profile to a different (or the default) profile. Has worked for myself, and many others on other forums.
    Hope that helps...
    D.

Maybe you are looking for

  • Error installing BOBJ 3.1 SP2 on AIX

    Hi, Has anyone tried installing BOE 3.1 SP2 on AIX successfully? I get an error.. [error] Errcode 1: gzip -dc "/temp_cds3/PATCHES_DOWNLOADED/BOBJ_ENT_SP2/pkg/jdk00000.tar.gz" | /bin/tar xvfb - 1 I checked the pkg directory and can't find the file jdk

  • How to open a R3 Transaction screen in VC

    Hi There, Can anyone tell me how to model VC in such a way that I can open up a R3 transaction screen for the VC. I have done this in the course but a an reproduce the example with a other TXcode. i put this code in my inputfield url: "pcd!3aportal_c

  • Function modules for Appraisals

    hello Friends, Is there any function module to get the appraisal details of an Employee.Its very urgent. Thanks in advance, regards, Ashok.

  • Cannot sync existing MobileMe galleries with Entourage instead of iPhoto

    Hi. I just purchased Aperture 3 and I am in the middle of totally replacing iPhoto with Aperture, or at least trying to. I have a bunch of MobileMe gallery albums currently synced with iPhoto and would like to sync them with Aperture. I do not want t

  • Default table scripts in ORACLE 9i

    Hi, Is there an sql script which is available to create and populate the default tables in the SCOTT user. At the moment it has the EMP, DEPT, SALGRADE tables. But there is an another version of these tables and data: EMPLOYEES DEPARTMENTS JOB_GRADES