How do I run a thread without its panel.

I have created a vi in my application that I run as a thread. I run the thread by using an invoke node.
When I am testing under LabView everything is fine but when I create the executable I have found problems.
As I am starting the thread with an invoke node, the vi does not show in the application builder unless I add it as a top level vi. When I add it as a top level vi, the panel is shown when I run the application.
I don't want to show the panel because firstly theres nothing on it anyway and secondly it looks untidy.
Dave.

Brian
I tried that already with no effect. I have attached an example of my problem. This shows a meter on the front panel. A vi running as a thread writes a value to a global every 20ms and this is then read by the front panel and written to the meter.
Dave.
Attachments:
Thread_test.zip ‏18 KB

Similar Messages

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • How can i run external application without specifying the full path?

    for example, ms word executable file is winword.exe, but in java i am using the following command:
    Runtime.getRuntime().exec("\"C:\\Program Files\\Microsoft Office\\Office10\\winword.exe\");
    the thing is, i dont know where ms word is installed on every machine, so rather than making an assumption, do you know how i can run ms word without specifying the full path?
    thanks

    1) You could ask the user to tell you where it's at (and remember for next time)
    2) You could do a file search for it (and remember it for next time)

  • How can I put another image without its associated sound on an audio (without its image) ?

    IMovie 11 : how can I put one image without its associated sound on an audio (without its image) ? thanks

    Hi
    As iMovie doesn't orient after Time - but only after Video/Photo clips is this not so easy to do.
    I use black photos as Dummy clips - and put them into a new project first
    then I add the Music I want
    Then I drop the Video-clip (that I realy want) ontop of the black dummy photo - Where it's supposed to be - THEN IF advanced tools are selected (in iMovie preferences) there will be a Drop-Down menu and here I can select to do a Cutaway - and select not to add the audio from it (or in wave-form just silence it out)
    Yours Bengt W

  • How can I run ni488216.exe without any prompts during installation?

    How can I run ni488216.exe without any prompts during installation (Silent mode)?

    Typically you can do a silent install of the NI-488.2 software by running:
    setup.exe /S LV_INSTALL path=
    Regards,
    Greg Caesar
    National Instruments
    Applications Engineer

  • On the mac mini 2011 how can I run windows 7 without the optical drive, On the mac mini 2011 how can I run windows 7 without the optical drive

    On the mac mini 2011 how can I run windows 7pm bootcamp without an optical drive.  I watch lots of football on sop cast and other such windows based programmes but can't work out how to do it.

    Actually Windows can be installed and booted from an external drive if the drive is connected eSATA (external SATA), since the drive is treated as if it's an internal HDD. I used the same method previously to dual-boot from 2 different HDD instead of partitioning.
    Most PC motherboards come with them as standard so it's pretty much plug and play but I don't recall seeing a recent Mac with eSATA connectivity though, so that might not be an option for you.

  • How to pass a numeric value without its format to a subsequence?

    I have a sequence with a numeric parameter that is interpreted as a 16-bit bit mask. The numeric format of the parameter of that sequence is therefore "%#.16b".
    I also have a Sequence Call step in a second sequence (in the same file) that calls this first sequence. That second sequence passes literal values for that bit mask in the Sequence Call. My specific problem at this point is that, while debugging, I don't see the parameters in the numeric format I explicitly specified for them, but rather in one of three possible formats:
    - Literal values seem to come with a "system"-wide (maybe sequence-file-specific?) default format, which is decimal instead of binary.
    - Variable values (e.g. from the Locals) have their specific (and also explicitly defined) numeric format, which can be anything instead of binary.
    - If I don't pass a value but use the parameter default, this default is shown in the parameter's actual numeric format, binary. This is the only case that works as intended.
    How do I get the parameters to *always* keep the numeric format I specified for that sequence?
    The attached file tries to reproduce the problem and the intended result using only Sequence Calls and Message Popups. My version is TestStand 3.1f1.

    I just want to debug my subsequence and see its parameter represented as "0b0000000000011010" when I supply a literal value of 26.
    Ok, I try to be more explicit and show my problem using your suggestion: (The resulting sequence file is attached.)
    - Create a new sequence file.
    - Insert a new sequence "Sequence".
    - In "Sequence", create a parameter "Parameter" of type "Number".
    - Change the numeric format of "Parameter" to Binary with a minimum of 16 digits and *without radix*, ie. "%.16b". (In the other sequence file I used "%#.16b".)
    -> Intention: I want to see the supplied parameter value in this numeric format when debugging or converting to a string using Str().
    - Still in "Sequence", create a local "Local" of type "Number".
    - Change the numeric format of "Local" to the same as above, "%.16b".
    -> Intention: I want to demonstrate your way here, which actually works (I can use it as the "reference string" of the yet-to-be-defined message box), but does in an indirect way what I want to do directly using only sequence parameters.
    - Insert a "Statement" step in "Sequence".
    - Of "Statement", "Edit Expression" and use "Locals.Local = Parameters.Parameter" as the expression.
    - Insert a "Message Popup" step in "Sequence".
    - Of "Message Popup", do "Edit Message Settings", and use the following expression as the Message Expression:
    "I have this: " + Str(Parameters.Parameter) + "\n" +
    "I want this: " + Str(Locals.Local)
    - Insert a "SequenceCall" step in MainSequence.
    - Point "SequenceCall" to sequence "Sequence" of the current file and supply exactly the literal value 26 for the parameter.
    - In "MainSequence", create a local "Local" of type "Number".
    - Change the numeric format of this "Local" to something very dangerous, eg. "%9.16o".
    - Assign the exact numeric value 4616 to this "Local" variable.
    -> Intention: I want to demonstrate that there are cases where a propagation of numeric formats to subsequences can actually be more than a mere nuisance.
    - In "MainSequence", insert a second Sequence Call step, "SequenceCall_2".
    - Let "SequenceCall_2" call the same sequence "Sequence", but supply Locals.Local for the parameter.
    - Now run the sequence file in "Single Pass" mode.
    - In the first popup, you see that I get the (binary!) representation 0000000000011010 only for the local variable, but I also want it for the parameter value.
    - In the second popup, you see that I get the (octal!) representation 0000000000011010 for the parameter value, which would be correct (for what I want) if I had supplied the decimal literal 26 again. You see that the binary representation is something entirely different here!
    I hope you now get the point. Thanks for answering!
    Attachments:
    numeric-format-02c.seq ‏35 KB

  • How do I run my application without the java prefix?

    Hi, I am new to Java but have been created some cool applications that run in the terminal.
    The problem is that every time I run my program I have to type "java +<program name>+", even after I compile the program with javac.
    My question is how do I make it so I can just type "<program name>" without the prefix of "java"?

    Write a shell script that includes the command you want to run.
    Edited by: pbrockway2 on Apr 5, 2008 3:27 PM
    I guess you're using Windows (or you wouldn't be asking ;). If so, shell scripts are called "batch files". Have a read of this:
    [www.computerhope.com/batch.htm|http://www.computerhope.com/batch.htm]
    (Executable jar files are another approach, but they are quite a bit more work. If your intention is to run a particular command like
    java MyAppthen a batch file is easiest.)

  • How to close a JFrame window without its obj ??

    Hi
    I have a pure standard alone java applocation. When app was run, a GUI window/class ( JFrame class ) was launched/new to show some message. After a while, I want to close this window. If I did not pass or save this window obj, can I close this window ?? If yse how to close? In other word, it is hard for me to save or pass this window obj. But I have to close this window later on. I plan to use some static variables or method so I can call any time and try to close this window later on, but I failed. Thanks for help
    gary

    Hi
    Thanks all response. I am sorry I forgot to mention I can't use System.exit(0) because the application has not finished. But window message has finished its function and it no long be used again. In other word, I want to close window only , not whole application. If you use System.exit(0), it will close whole application. Message window can be used only during a piece of time. Thanks
    gary

  • HT3131 how can i run in clamshell without the power adapter plugged in?

    just what the question states..I dont want to have to always connect the power adapter. thanks

    thanks this works well with the power adapter pluged into the mac, but I am looking for this exact setup without the need for the power to be supplied to the mac.
    in otherwords, run it off the battery only.
    I want to think that there is either a preferences setting, or function to be able to do this.
    currently it appears that the mac will only run in the configuration with external perpherials with the power supply.

  • Macbook Pro Won't Run Past 1GHz Without Its Battery

    Hello,
    I've been using a Macbook Pro 2.16GHz for half a year. I just realized that the computer will never get beyond 1GHz, both in Windows and Mac OS (I checked with Sisoft, CPU-Z, and CoreDuoTemp) when I remove the battery and run on AC Adapter. However, when I pop the battery back in, MBP speeds up to normal speed. Is this regular? Thanks.

    Hi palmbook,
    Dont worry,this is the nature of Macbook Pros or Macbooks.When we are using our mac,the power consumption is not constant but fluctuates instead.At certain moments,the power consumption will go beyond what the AC adapter can supply...when this happens,the battery will have to provide extra power to cater those needs.
    If the battery is not present at these moments,the system will simply shut down by itself to prevent any damage to the circuits and thus losing unsaved data.This is imperative for people who are performing rendering tasks as long hours of data processing will culminate to nothing in the event of such "moments".
    To address this issue,the SMC(System Management Controller) will limit the usage of the CPU to 50% of its nominal speed if the battery is removed in order to prevent such "moments" from occuring.

  • How can I run a XControl without wire Input/Output?

    Hello!
    I'm trying to developped some XControls. I want that these XControls run automatically without to wire him an Input/ooutput. I tried to do this, but the XControl only executes once, and then never entry again. I think that it is possible to do this because the XControl input/output is not required.
    Thank you in advance.
    MFGC
    Solved!
    Go to Solution.

    Hello!
    Ok, thank you. The problem is... I want to create some controls to ease the development of SCADAs. The idea is create some XControls, and when I place them in the SCADA Front Panel create a pop-up to insert the configuration (I did this part and it works well, the information is about the dispositif to connect...). And then, I don't want to wire anything to the XControl; because this application is for other persons can to develop the SCADA without knowledge of LabVIEW. The application that I have is not a good because I haven't used correctly the XControl to try to solve this requirement. I shold think in another solution, but... maybe... I can take the input of this XControl programmatically?
    Thanks again. Cheers
    MFGC

  • How can I run DW trial without getting construction problem msg

    Tying to run Dreamweaver, but when it gets to the green DW panel, a message says 'Problem running DW, menus.xml file construction problem', it still gives the same message even when i takle the advice the message says about renaming the menus.bak to menus.xml, after deleting the original menus.xml file. can anyone help, please post your answer in the forum [personal contact information removed by moderator]

    How much free space is on the hard drive? Cleaning out temporary folders may help.

  • How can i run the procedure without passing the parameter.

    CREATE OR REPLACE PROCEDURE P1 ( (nvl(A,'dkjf') VARCHAR2)
    IS
    BEGIN
    DBMS_OUTPUT.PUT_LINE(A||',');
    END;
    it is giving me error
    i want to execute in this way exec p1;
    it should automatically take dkjf as parameter;
    help required on this.

    May be, if you are really looking for variety of solutions. I have one which i would say is a low level one
    SQL> create or replace package pk1 is
      2  a number;
      3  procedure p1;
      4  end;
      5  /
    Package created.
    SQL>
    SQL>
    SQL> create or replace package body pk1 is
      2  procedure p1 is
      3  begin
      4  dbms_output.put_line(a);
      5  end;
      6  end;
      7  /
    Package body created.
    SQL> exec pk1.a := 10;
    PL/SQL procedure successfully completed.
    SQL> exec pk1.p1;
    10
    PL/SQL procedure successfully completed.Here you execute procedure without any parameter, and getting desired output.

  • CA11: How copy a reference operation set without its materials attribution

    Hello gurus
    I have a reference operation set that has many materials attributed.
    Using transaction CA11, when I create a new reference operation using the functionality copy from the existing operation set, also the material attribution are copied in new one. How It is possible to avoid that. I would like to copy only operations not the materials attribued.
    Thank you in advance

    Was it really necessary to post the whole API description?!?
    Locale[] locales = Locale.ENGLISH();ENGLISH is not a method in class Locale, so do not add the braces "( );".
    Also, the constant ENGLISH is not an array, but just a single Locale object.
    You didn't say what your problem was. What do you want to achieve with your program and what is it that you don't understand?

Maybe you are looking for

  • Mac OSX 10.6.4 compatibility

    I have searched this and other forums to try and determine why Adobe does not offer a Reader-download for Intel OSX v 10.6.4. The most recent update is suggested for Intel OSX 10.5.6 - 10.6.3, and there the support ends, supposedly. I know Apple beli

  • BUG JSF h:dataTable with JDBC ResultSet - only last column is updated

    I tried to create updatable h:dataTable tag with three h:inputText columns with JDBC ResultSet as data source. But what ever I did I have seceded to update only the last column in h:dataTable tag. My JSF page is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HT

  • MSS: Team Explorer dynamic width

    Hi all, I am facing following problem: we have exchange the Team Viewer by the Team Explorer (EP 6.0). It is working quite fine. The only thing is the Team Explorer is not expanded to its full width when the user calls it for the first time. I have f

  • Problem using flash prof.

    Hello, I got Adobe Flash Professional CS5, but i can't use it. When i start it, there are only te borders of the different parts. There is no content in e.g. the properties part. Either it's a gray field or i see my windows background. Same is with t

  • JDialog Disable button Text field Empty

    Hi, How can I disable the send button if the JText field is empty in JDialog box. Thanks in advance Balaap