Problems In Running Executable File

I Have A LabView Program Where The Sub VI Is a VI Tempelate,(I Already Tried Using Reentrant Function Through A VI,But I Had Some Issues<Which Caused The Program To Not Work Correctly>, Hence The *VIT)
The Problem Is While Creating An Executable File 
It Just Does Not Call The SUB VI
I Tried Changing The Path Name To Inside The Application.exe But Still No Luck
I Use Labview 2012

Hello,
Everyone, I guessed we meet the same issue.
During debug mode, the main program can load vit file by vit file path, the interface and function both are ok. as soon as I build all files to exe file, the program can work well but it just means function is ok, the interface invoved vit file all couldn't be showed normally.
I copied the original vit file to build package, there isn't any problem in Runing Executable File.
This is just one way to solve this problem. I don't think it's the best way, who can provide a better idea?  which way is only to include vit file as other vi during build exe package, and anyone don't easy change original vit file, thanks!
Champion

Similar Messages

  • Can't run executable file by LV7.1

    Dear all,
    I am surprised I can't build and run executable file by LV7.1.
    I used to write some vi with LV7.1, and built the executable file according to these vi. It was no problem to build and run this executable file that time. Now I can open these vi well with LV7.1, bu I can't run this executable file well, it will prompt a error, please refer to the attachment. I try to build a executable file according to a simple vi, and then I can't run this exe file well any more.
    Can you help me to solve this problem? Thank you in advance.
    Evan
    Solved!
    Go to Solution.
    Attachments:
    Error prompt.jpg ‏2305 KB

    @Christian: That's not correct.
    One reason for this to happen is if LV 7.1.1 is installed and then you install an application including run-time engine built in 7.1. This corrupts the run-time engine.
    See here: http://digital.ni.com/public.nsf/allkb/680E61A4D02158A186256F7A0073C228
    Daniel

  • 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

  • What software do I need to run executables files

    Hi
    I have application where I acquire data from sensors using stain gauge and thermocouple modules with 6225M DAQ card. Also I am writing some data that i get from a joy stick to a serial port in the same application. In order to run executable file of this application what software do I need?  I installed labview runtime engine in the target machine but it didn't run my program. Do I need to install any drivers for the DAQ card?  i am using labview 8.6.

    Of course you need to install the DAQmx driver. If you have LabVIEW 8.x, when you create the installer, you have the option to install different versions of the driver ranging from a full install to a minimal one. If you have tasks saved in MAX, you would want to install MAX and export your current config. Then select to have the installer import the config on the pc with the exe.

  • Bought from a friend,  have apple account how do I run executable files  when I cannot  find the administrator sign in . I mean where in system file do i open administrator log in?

    Am wanting to run executable files  where in system is the administrator sign in?

    If you are talking about .exe files, macs can't run those. Look for a .dmg version.

  • Error while running executable file through java in WinNT

    I would like to run an executable file with Java.
    - If I try with notepad or paint, i.e. Windows Applications,
      I have no problem.
    - I also can run Non-Windows-Own Applications, except one.
      I get an error message, if I want to run this program through Java.
    I have tried following commands to run an executable file.
    Runtime.getRuntime().exec("cmd.exe /c "+command);
    Runtime.getRuntime().exec("cmd.exe /c start "+command);
    Runtime.getRuntime().exec("cmd.exe /c start /wait "+command);
    Runtime.getRuntime().exec("cmd.exe /k start "+command);
    command : the path to the executable file
    I can run the application directly, if I click the icon on desktop,
    but not through Java.
    here is the error message I get
    screenshot : http://www.aykut.de/error_message.jpg
    Text : "Security Check failure"
            The Logon System has been tampered with.
            The Administrator will need to re-install.
    my Idea :
    The application is "old".
    I think it was written for Win 3.1.
    Therefore I don't know if there is any other
    possibilty to run a "DOS Exe File" through Java.

    I have just figured out how it works,
    if somebody else here in forum have this problem,
    here is the solution :
    String path = "F:\...\...\Application.exe";
    String envDir = path.substring(0, path.lastIndexOf("\\"));
    String[] command = {"cmd.exe", "/c", "start", "/wait", "/D"+envDir, path};
    Process process = Runtime.getRuntime().exec(command);
    "start /Dpath" => path: environment directory F:\...\...\
    "start /wait" => wait until Application.exe terminates
    if you use Win95 or Win98 use command.com instead of cmd.exe
    Aykut

  • Problems with installer/executable files

    I created an installer with an executable file so I can run my program on another computer that does not have labview. I went ahead and installed all the drivers on the target computer and I installed 8.2.1 Runtime Engine as well as NI-VISA Runtime engine. My program tests circuit boards which are connected to the the various modules and the target computer will be used on the manufacturing floor allowing employees to test circuit boards but not being able to mess up my program which is why I figured the stand alone is the way to go. The main problem I am coming across right now is that when the DAQ modules arent even connected to the usb port of the computer the executable is still running and saying the test passed which is very bad in the case on the manufacturing floor because boards could be sent out that have failures. I dont understand why when the DAQ isnt hooked to the computer the exe still runs when I feel like it shouldnt. Is there some function I can put in my program to make sure there is a signal being sent to the computer whether it is connected or not?? The actual program wont run if its not connected because it does not detect the modules which is good. What also confuses me is that when the DAQ modules are connected to the developer computer and the executable runs the circuit board test fails, BUT if the DAQ modules are connected to the target computer and the executable runs the circuit board test passes like before when the modules arent even connected...it makes me think there is something else I need to install on the target computer...

    What you have set up only detects unit under test errors. There could be logic/programming errors or external hardware errors. The subVIs are not working if there is no hardware. They are returning an error and the Boolean state of the read should be ignored. The subVIs will always return something, even if it's a default value.
    Shown below is some of simple optiopns you have for error handling. Look through the shipping examples. You will see a lot in them as well.
    Message Edited by Dennis Knutson on 04-08-2009 12:38 PM
    Attachments:
    Error Handling Options.PNG ‏6 KB

  • How to run executable files via ProcessBuilder existing in another drive??

    hi,
    I was using Runtime Class to execute other programs through my application but as I'm using j2se 5 I want to make use of ProcessBuilder Class and utilize its some added features. I wanted it to run my .bat file located in some other folder than the current class file it is showing me IOException. I'm running a class file that is in the folder D:\CyberStation\classes\build\ and I want to execute the .bat file located in D:\CyberChat\build\. Any suggestion is appreciated...
    regards,
    Jay

    The following code was for the .bat file located in the same directory where I am running my .class file:
    ProcessBuilder pb=new ProcessBuilder("cmd.exe","/C","registry.bat");
    Process p=pb.start();Now what I wonder is what are the things that I need to change to make it capable of running .bat or any other executable file in some other directory. I tried:
    ProcessBuilder pb=new ProcessBuilder("cmd.exe","registry.bat");
    File basedir=new File(File_name.class.getResource(File_name.class.getName()+".class").getFile()).getParentFile().getParentFile().getParentFile().getParentFile();
    pb.directory(basedir+"CyberChat\build");
    Process p=pb.start();but didn't success.

  • Can't run executable file

    Hello,
    I'm using a PowerBook G4 with OS 10.3.9. I want to run an executable file. However, whenever I attempt this, I'm denied permission to do so. I'm the administrator. I've reset the permissions on the file I'm trying to run, on Terminal itself and wherever else I can think of. What else do I need to do?

    In addition, if it is a name.exe, see my FAQ*:
    http://www.macmaps.com/macosxnative.html#WINTEL
    - * Links to my pages may give me compensation.

  • Running executable file in target machine

    I have labview 7.1 professional version. I have created a executable file for target machine. When the executable file run at target machine, it needs all drivers and run time engine.
    I have installed drivers in target machine but not run time engine.
    Do I have to create a installer file which includes run time engine? If I only have *.exe file instead of installer file, how can I install run time engine?
    Do I have to put all subvi in the same directory as the one when the program was developed?
    Thanks.

    I believe that you can install the runtime engine with your original professional version CD. Just choose the custom install and uncheck everything except the runtime engine. If you use the application builder, it automatically puts subvi's where they belong. I've never tried it manually, but I suspect that they need to be in the same directory structure as the one where it was developed.
    - tbob
    Inventor of the WORM Global

  • Problem wiht Running Batch File using Runtime.exec()

    I am writting one program which will create a jar file using a windows Batch file.
    The main program is in the folder "d:\CmdExec.java".
    The other one to which a jar file to be created is in the folder "e:\folder\HelloWorld.class"
    The contents inside the "e:\folder" are
    e:\folder\HelloWorld.class
    e:\folder\mainClass.txt
    e:\folder\run.bat
    The mainClass.txt contains "Main-Class: HelloWorld"
    The Run.bat file contains "jar cmf mainClass.txt HelloWorld.jar *.class"
    The coding for CmdExec.java is as follows
    import java.io.*;
    import java.awt.Desktop;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
    Desktop desktop = null;
    if (Desktop.isDesktopSupported()) {
    desktop = Desktop.getDesktop();
    desktop.open(new File("e:\\folder\\run.bat"));
    catch (Exception err) {
    err.printStackTrace();
    When i double click the file e:\folder\Run.bat, it will create a jar file for HelloWorld.class.
    But, i want to create that jar file using the java program CmdExec.java.
    When i run CmdExec.java, the batch file is opened. But it shows error as "Can't find the specified file"
    But when i copy the following files to "d:\",
    e:\folder\HelloWorld.class
    e:\folder\mainClass.txt
    the jar file is created using the CmdExec.java.
    But,
    e:\folder\HelloWorld.class
    e:\folder\mainClass.txt
    these files should be in the folder"e:\folder" only.
    Can anyone Help me this Problem?
    Or Anyother way for creating a jar file for one program by using another program?
    Help me soon.............

    Try this. It's not running a bat file. You can say it almost is a bat file.
    import java.io.*;
    import java.util.Scanner;
    public class CmdExec {
        public static void main(String argv[]) {
            try {
                Process p = Runtime.getRuntime().exec("jar cmf mainClass.txt HelloWorld.jar *.class");
                Scanner s1=new Scanner(new InputStreamReader(p.getInputStream()));
                while(s1.hasNextLine())
                    System.out.println(s1.nextLine());
                p.waitFor();
                System.out.println(p.exitValue());
                if(p.exitValue()==0)
                    System.out.println("Okay");
                else
                    System.out.println("Error");
            catch (Exception ex) {
                ex.printStackTrace();
    }Run it in the same folder as mainClass.txt
    Edited by: ColacX on Aug 1, 2008 10:35 AM

  • Problem to run executable in windows 7 64.

    I developed an application using labview 8.5. Created an executable from it.
    In windows XP i installed the labview runtime engine 8.5 and visa runtime and my EXE worked fine.
    Tried the same on windows 7 64 and my application hangs the PC, tried the latest visa runtime with no success.
    I basically uses a serial port (com 1) to comunicate witha device.
    Tried to run it as windows xp compatible, same problem.
    Any ideas?

    Thanks for the reply.
    Here is my setup:
    the runtime for labview  -  LabVIEW85RuntimeEngineFull.exe
    the visa runtime - visa501runtime.exe
    and windows 7 64
    The application was developed on labview 8.5
    According to this URL (http://zone.ni.com/devzone/cda/tut/p/id/10383), the minimum versios of VISA is 4.6.
    And checking your FAQ link i got this:
    Q. Can I run an executable built with LabVIEW 32-bit on a 64-bit PC?
    A. Windows can run 32-bit executables on a 64-bit PC. Therefore, the LabVIEW 32-bit Development System, Run-Time Engine, and executables can be run on Windows 64-bit.
    I can send the file, its a stand alone executable, just click and run, no installation required.

  • Problem in running animation file during forms runtime can any body help

    Hi,
    I did a small project using forms 6I . When I run my project the first cansvas named “Welcome Screen” will be displayed. I.e this is the first canvas displayed. Now my problem is : In that “ WelcomeScreen” canvas I placed a OLE object and inserted a Powerpoint presentation file i.e .propic.ppt file. I setted custom animation setting for all object in that presentation slide. Now my requirement is to animate that file with formruntime i.e once I run the project opening canvas should be displayed and all the objects in the OLE i.e. ppt file within runtime. That is menu attached should be displayed as it is and presentation should be animated. After that I go to data entry module by selecting appropriate menu item from the menu. For this problem what I tried is I imported OLE Control from tools menu in formbuilder and make the OLE properties that is path of the ppt file and Activation property is set to “doubleclik” . When I runned my project after these settings, if I double click then it is showing “slide”without animation and my main windows and all other windows disappearing”. When I click end show in slide then it is returning to my formsruntime module. This is not the requirement, all that i want is my runtimewindows should be displayed within which the presenation file must be animated. Is it possible to do so, if so please suggest the way to improve the visual quality of my project.
    Thanks in advance for helping,
    Prasanth A.S.

    Actually, the .class files must be in a directory named MyPack, and the directory 'above' MyPack must be in the Classpath when compiling.
    http://java.sun.com/docs/books/tutorial/java/interpack/packages.html

  • Problem in running JAR file

    Creating a mobile game using J2ME. The JAR file created by Netbeans IDE when bein run on mobile gives an error: JAR and JAD file did not match.
    Manifest file:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.2
    Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
    MIDlet-1: Maze, Maze.png, Maze
    MIDlet-Vendor: Unknown
    MIDlet-Name: Maze
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0
    JAD file:
    MIDlet-1: Maze, Maze.png, Maze
    MIDlet-Jar-Size: 100
    MIDlet-Jar-URL: Maze.jar
    MIDlet-Name: Maze
    MIDlet-Vendor: Unknown
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0
    Please consider the query..

    Hey I solved the problem in following order
    JLabel jbl = new JLabel(new ImageIcon(getClass().getResource("image/theme.GIF")));I have a tips to all who are absorving in this problem
    that you should check that whether the extension is in capitalletter or small letter in the jar. Follow the format in your coding
    thnx
    best regards
    tanvir

  • Modifying a running executable file

    Does Solaris allow you to modify a file that is currently
    executing.? I get a core dump when the exe is changed.
    Some Unix systems used to give "Text file busy".

    By removing the file first, I assume the file (inode)
    remains
    in use (mmaped) until closed(unmapped) when the file
    exits. Correct. You have an inode with 0 filesystem references
    (links). The kernel does not remove the inode's data
    block until the last user of that inode has released that
    inode (closed filedescriptors, or unmapped mapped all
    blocks from that inode).
    The newly copied file(same name) gets another
    inode, thereby not modifying the original.Correct.
    Does Solaris page to/from the binary file ?Yes. Read-only pages (code) for the binary and other shared
    libraries are paged in from the file/inode. Writable
    regions of the binary/shared library (initialized data
    space, bss) are read from the file/inode and my be written
    out to swap space, when the system runs out of memory.
    Does the file get copied into swap space ?Only when the system runs out of memory.
    Does it page to/from the swap space ?For writable page mappings that were previously paged out
    to swap space: yes.
    Is the performance of the file system containing the
    file an issue ? (if its paging from there)Assuming you have a really slow filesytem (overloaded disk
    for example) and you have lots of binaries on that disk
    (huge amounts of read-only pages that are paged in directly
    from the slow filesystem) and the system is low on memory
    (i.e. the pager removes/frees pages for the binaries and
    these must be reloaded from the filesystem once the code
    executes again), then yes, performance of the filesytem
    would be an issue.

Maybe you are looking for