Using LabView to run VB program with parameters

Hi,
It's my first message here so I hope I am doing things correctly. I tried to do some research before asking and I found a lot of good informations but right now, I seem to be stuck.
I am quite new to LabView, I did few VIs here and there but nothing really "serious". I am currently working on a LabView interface that deals with VB, Excel macros and Data extraction from Text file.
The VB program is in charge of a motor position, then, some Excel macros are used to do some measurement and the results are written in a text file that I use to plot some graphs.
The VB program I made give the window I put in the picture in the attached files. Basically, you have to enter some values in those TextBox then click on Move and the motor will move. When you click on the button Home, the motor moves back to the position "0", no need of the two TextBox. In my labview interface, I created two ComboBox that contain all the possible values for both of the TextBox of my VB program. What I would like to do, when I click on my "Measure" button on LabView that initiates the VB program, is that it can fill the two TextBox from VB with the data entered in my LabView ComboBox and then run the program, simulating a "click" on the Move button.
Right now, I found a VI (included in the attached files) that runs my VB program from LabView (I use it as a Sub-VI) but I still have to manually put the values in my VB program. My goal would be that when I click on my LabView button to start my measure, the motor moves but the VB program doesn't show up for the user to manually enter the values he wants.
I hope I was clear but if you need any clarification.
I did the the VB program myself.
I can also link the LabView interface I already created if need be.
Thanks for your help,
Baptiste
Attachments:
Moteur.png ‏5 KB
lancerEXE.vi ‏9 KB

First, thank you for your answers.
I know that I don't need to use VB or LabView. I just want for myself to be able to use LabView to manage a program in VB, one in VBA and use data from a text file. I know I could write everything in VBA and that would get the job done. The thing is I want to get away from VBA and Excel as much as I can. In the future, the plan would be to re-write my VBA program with LabView but as of now, I just want to use LabView to manage everything. I know I don't really need it but I want to learn how to do it and have something that works.
So I would like to know if there is way to do what I wish to do, running my VB program with parameters coming from LabView.
Thanks

Similar Messages

  • How to run the program with variant automatically

    Hi experts,
    I want to know how can I run the program with a variant automatically without defining any transactions or jobs. I want my program to run with a variant automatically, when I press F8.

    Try doing this way...
    First Create a Sel Screen varient, 'ZTEST123' in this case
    Report ZTEST.
    parameters:
      w_kunnr type kna1-kunnr,
      w_flag type c no-display.
    start-of-selection.
    if w_flag eq ' '.
      submit ZTEST USING SELECTION-SET 'ZTEST123' with w_flag eq 'X'.
    endif.
    end-of-selection.
      write:  w_kunnr.
    Thanks.

  • How to Install crystal run time programs with out designer.

    Can anyone suggest me  how to install crystal run time program with out installing entire designer software.
    Is it coming along with CR software package, which we have to do custom install or is it coming as a different package.  
    Currently my client is using only the run time programs to trigger crystal  report from VB app but developers have installed entire software for development.  We need to figure out how this install can be done, as it was done long time before and folks who have done it left the company.  
    Any suggestion on this would be of great help to me.

    See this wiki:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0
    Ludek

  • What is the best spec to run multiple programs with photographs?  Includes:  Lightroom, PhotoMechanic, and Internet DAM system?

    What is the best spec to run multiple programs with numerous photographs?  Includes:  Lightroom, PhotoMechanic, and Internet DAM system?
    For a Macbook Pro.  What's the least amount I need to process, upload, download images using these 3 programs?
    Thank you.
    pt

    That's a nice system Kevin, and it will work very nicely with Photoshop.  I do take it that you have 16Gb RAM in Total?
    250Gb SSD is a good size, but you can still run short, and that will affect Windows performance.  When you get your system, instal WinDirStat which gives you a graphic display of everything on your drive, like below. Clicking on any of the large areas will tell you what and where they are, so you can think about moving cache folders etc. to one of the HDDs.
    Leave the Pagefile.sys on the boot drive.  Think about disabling Hyphenate as it takes a ton of space, and too often crashes on wake up.
    My Documents
    Desktop
    Downloads
    Look at Bridge cache
    iTunes backup
    Other stuff like that.
    Think about another 500Gb drive just for Photoshop Scratch.  Drives are cheap as chips nowadays
    Do yourself a favour, and invest $100 in Shadow Protect (or similar if there is such a thing) SP saves incremental backups every 15 minutes (you can set the interval, but it has no impact on performance with a system like yours).  If you have a problem you can mount the back up at any of those 15 minute points, and open files from it.  You can also make a bootable DVD image of your C drive, and be back up and running five minutes after disaster strikes.
    Optimize Performance in Photoshop
    Photoshop CC and CC 2014 GPU FAQ
    For more ideas, swing by the Premiere Pro Hardware forum.  Those guys are serious good at this stuff, and you'll find links tips and ideas.
    Happy computing, and have fun with your Creative Cloud® apps.

  • Run a program with system exec.vi

    hi
    I've got a problem with system exec.
    When I launch a simple program like :  c:\windows\notepad.exe it works very well.
    But when I launch a program with parameters, it doesn't.
    here is the command line:   c:\bmd.exe a.bmd a.txt ffffffff ffffffff  
    When I put this command line in a cmd windows it works perfectly. It don't understand...
    Any idea?
    Attachments:
    Sans titre1.JPG ‏22 KB

    Hi Julesjay,
    I found out that if the command string didn't include the path of the executable (start) the program would fail (at least with matlab executables) So make sure the path of the exe is included in the command string.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Can't run java program with GUI

    My computer can run java program properly.
    However, for those program with GUI (using swing),
    my computer is unable to display the GUI.
    What's wrong with it? Is there any PATH I need to set before running GUI program?
    Thanks
    icedgold

    Cut, copy, paste then compile and run this;-import java.awt.*;
    import javax.swing.*;
    public class MyJFrame extends JFrame {
      public MyJFrame() {
          super("My first JFrame");
          Container c  = getContentPane();
          JPanel panel = new JPanel();
          panel.setBackground(Color.white);//  (new Color(255, 255, 255));
          JLabel jl = new JLabel("Yes it works");
          panel.add(jl);     
          c.add(panel);
      public static void main(String[] args) {
        MyJFrame frame = new MyJFrame();
        frame.setSize(180,120);
        frame.setLocation(200, 300);
        frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
        frame.setVisible(true);
    }

  • Xcode is not wanting to run a program with "3.1" included in filename

    I have been having a strange problem with Xcode lately. The other day I was writing a program as a Cocoa Application Project and I named the file prog3.1. This was a simple command-line program that would just display some values that had been stored in variables; it's being used as an example to teach somebody Objective-C. Unfortunately, whenever I try to build and run the program I will not recieve any of the printed text or the confirmation that the program has exited successfully. The screen says that the build was successful but that's it.
    I've tried using different code that I know for sure compiles and runs correctly but if it is stored in the prog3.1 file it will not output anything. I have also discovered that using 3.1 in any project name will result in this strange behavior. I can get the code to run in a file of another name, but I'm afraid that the person learning this would become too confused as to why it needs to be done this way.
    Is this an unknown bug? Does anybody have a suggestion as to how I can remedy this?
    iBook G4 Mac OS X (10.4.6) 933Mhz G4, 640mb RAM, Airport

    Hi Joe,
    The period character is used by Mac OS X to separate the file name from the file extension. It seems likely that the system cannot tell what type of file you are using because it thinks '.1' is the extension.
    Perhaps '3-1' or something similar will keep things clear for your student.
    PowerMac G5 1.6Ghz   Mac OS X (10.4.6)   4 gig RAM & NVidia 6800 Ultra

  • How to Run std program with a specific variant for specific user?

    Hi guys
    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how?
    one options we thought about was to create a transaction in SE93 and define the program to run with a predefined varaint and assign the new custom tcode to the user profile. But we have many different users and we will end up with creating many transactions which we would like to avoid. Is there any other option to control the std program such that each user can run the program only with a pre-defined varaint and the one which only the user is suppoed to run. thanks in advance.

    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how
    you can do this..
    You can create a Custom table
    userid     keyfield
    program  keyfield
    variant    keyfield
    programdesc
    Make the table Maintaintable(usnig table maintenance )
    Now create another Program
    It takes input of the Program name( using selection screen)
    LOGIC
    in side that place a logic ,
    Based on the user name  and program name Get the variant name from above table
    Now Submit the program with the variant you have selected above.
    Use Variant Addition when you use SUBMIT
    So now program executed based on user variant.
    Now you create a Transaction for this program.
    When use Runs the Transaction , user needs to input the Program name which he wants to execute.
    and Output will be shown based on the variants
    Regards
    Vijay Babu Dudla

  • Compile and run a program with Terminal

    Hello, I used TextWrangler to create a .c file on my desktop. I want to compile and run the program using Terminal. However, I am new to programming and I am not sure how to achieve this. I have Xcode with Command Line Tools downloaded. I have the file "6_19.c" on my desktop currently. Any help would be appreciated.

    Your Desktop probably isn't in your execution path, so you might want to start by moving "6_19.c" from your Desktop to your Home folder. After that, in Terminal, just do
    gcc -o 6_19 6_19.c
    The general format is
    gcc -o <name you want the compiled program to have> <name of the source>.c
    Do not put any .extension on the end of the name you want the compiled program to have. Also note that after "gcc" there's a space, then a dash and the next character is a lower case letter 'o', not a numerical zero. There's a space between the name of the compiled program and the name of the source.
    To run the program, at your terminal prompt type
    ./6_19
    The general format is dot forward slash <name of the compiled program>
    There's no spaces at all.
    Good luck.

  • How to use the Eudora e-mail program with new ports

    For those of you that still use Eudora as your mail program. Here is how I made the required changes for the new port settings
    1) Open Eudora and from the "Tools" drop down menu select "Personalities"
    2) In the "Personalities" pane - right click the account you want to change and select "Properties"
    3) In the "Generic Properties" pane change the following
       a) Change the SMTP server to    smtp.verizon.net      and leave the "Authentication Allowed" box checked
       b) In the"Secure Sockets When Sending" selection box pick "Required,Alternate Port" . This both turns on SSL
           and makes the port  number 465 as required by Verizon
    4) Click the "Incoming Mail" tab at the top and then make the following changes
       a) Change the POP server to     pop.verizon.net
       b) In the"Secure Sockets When Sending"  selection box pick "Required,Alternate Port" . This both turns on SSL
            and makes this port  number 995 as required by Verizon
    Thats it . It should work for you now. You need to do this for each "Personality" (Sub account) you have

    Eudora users may also need to make changes to Eudora's Options (Tools > Options) "Getting Started", "Checking Mail" and "Sending Mail" in addition to the changes for each Eudora Personality. I outlined those changes in the "Eudora & server changes" thread--note there is a typo ("smpt" rather than "smtp") in the first post (couldn't edit that post to make the correction) in the thread so make sure to check the entire thread as a later post shows the correct entry.
    I had problems with Eudora sending mail (I didn't have problem with incoming mail because I don't use Verizon's servers for that) until I made changes to both Personality accounts and to the Option/suboptions noted above.
    Did you get things to work properly without having to make changes in Options?

  • In SQLScript, how to use EXEC to call another procedure with parameters in procedure?

    Hi experts,
    In SQLScript, How to use EXEC to call another procedure with input and output parameters in procedure?thanks very much

    Hi Sagar,
    thank you! I generate another procedure with an input parameter and an output parameter in a procedure. Then i need to call the generated procedure using EXEC. Here is my code:
    create procedure ftest1(out sum_num bigint)
    as
    begin
    declare fa_output bigint;
    declare v_sql_drop varchar(200);
    declare v_sql varchar(500);
    declare cursor c_cursor1 for select num from TABLE1;
    --v_sql_drop := 'drop procedure fe';
    --exec v_sql_drop;
    v_sql := 'create procedure fe(in i_num bigint,out o_num bigint) as begin';
    v_sql := :v_sql || ' o_num := :i_num * 2 + :i_num * :i_num;';
    v_sql := :v_sql || ' end';
    exec v_sql;
    open c_cursor1;
    for c_item as c_cursor1 do
    exec 'call fe(c_item.num,o_num=>fa_output)';
    if sum_num is null then
    sum_num := fa_output;
    else
    sum_num := :sum_num + fa_output;
    end if;
    end for;
    close c_cursor1;
    end;
    The underline code is using exec to call the generated procedure. But this method cannot work. Any suggestion? thanks again!

  • Using Runtime.getRuntime().exec(DOS Program) with Windows 2000.

    I am trying to spawn a DOS Program from within Java.
    On Win95/98/ME, I use
    Process     p = Runtime.getRuntime().exec("START /w command.com con /c myDOSProgram.exe");
    This works on these platforms. On Win 2000, I use
    Process     p = Runtime.getRuntime().exec("START /w cmd.exe con /c myDOSProgram.exe");
    It does not work at all.
    I have tried all combinations of using START, cmd.exe, con /c, etc.
    I can spawn a Windows App using
    Process     p = Runtime.getRuntime().exec("windows.exe");
    And it works fine.
    What does it take to spawn a DOS program from Java on the Windows 2000 op sys?

    Hi. I recently wrote a java GUI that calls a DOS program with mixed success. Here's the code I used to make the call:String osName = System.getProperty("os.name" );
    String[] cmd = new String[4];
    if( osName.equals( "Windows 2000" ) || osName.equals( "Windows NT" ) )
         cmd[0] = "cmd.exe";
         cmd[1] = "/C" ;
         cmd[2] = "VBDoc.exe";
         cmd[3] = fileName;
    else if( osName.equals( "Windows 95" ) || osName.equals( "Windows 98" ) )
         cmd[0] = "command.com" ;
         cmd[1] = "/C" ;
         cmd[2] = "VBDoc.exe";
         cmd[3] = fileName;
    else
         System.out.println(osName);
    Process proc = runtime.exec(cmd);Check out this article, it gives a good explanation of how to use the exec() call:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Hope this helps!

  • How to run Struts program with the help of tomcat

    Hello Everybody
    This is Adesh.I am a newcomer of java and facing a problem with struts, so if any one know how to set the path of struts and how to run struts program, so plz inform me.
    THX in Advance.............................................

    struts-config.xml
    <struts-config>
    <action-mappings>
         <action path  = "/welcome"
                    type  = "Welcome"
                    scope="session">
                <forward name="success" path=".welcome"/>
                <forward name="failure" path=".base.error"/>
         </action>
    </action-mappings>
        <plug-in className="org.apache.struts.tiles.TilesPlugin">
            <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
            <set-property property="definitions-debug" value="1"/>
            <set-property property="definitions-parser-details" value="0"/>
            <set-property property="definitions-parser-validate" value="true"/>
        </plug-in>
    </struts-config>tiles-defs.xml
    <tiles-definitions>
         <definition name = ".base" path = "/include/template.jsp">
              <put name = "title" value = "${title}"/>
              <put name = "header" value = "/include/top.jsp"/>
              <put name = "body" value = "${body}"/>
              <put name = "footer" value = "/include/footer.jsp"/>
         </definition>
    </tiles-definitions>web.xml
    <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
    <init-param>
                <param-name>definitions-config</param-name>
                <param-value>/WEB-INF/tiles-defs.xml</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
    <servlet>
            <servlet-name>init</servlet-name>
            <servlet-class>Init</servlet-class>
            <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
      <jsp-config>
        <taglib>
            <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/wall.tld</taglib-uri>
            <taglib-location>/WEB-INF/wall.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/c.tld</taglib-uri>
            <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fn.tld</taglib-uri>
            <taglib-location>/WEB-INF/fn.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fmt.tld</taglib-uri>
            <taglib-location>/WEB-INF/fmt.tld</taglib-location>
        </taglib>
    </jsp-config>
        <resource-ref>
            <description>DB Connection</description>
            <res-ref-name>jdbc/SQLServerDB</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    </web-app>This should help....

  • Help! Running Fortran program with Xcode

    Hi all,
    I am developing a Fortran code for a class project, I understand Matlab, but very little of advanced programming like Fortran or C++, but have to learn some for my class (note: it is not a programming class). The professor gave us a code to run and modify it, the code is supposed to work (and in fact it is working on windows computers). I didn't know how to run Fortran on a mac so I followed the instructions given in these links:
    http://www.macresearch.org/xcodegfortran_contest_winner_damienbobillot
    http://lists.apple.com/archives/fortran-dev/2006/Mar/msg00011.html
    I installed Xcode 2.4, and gfortran. After I made my Project on Xcode (following the links above), I clicked Build and it was successful, but after I clicked Build and Go I got the following error:
    Warning:Array reference at (1) is out of bounds
    Command/usr/local/bin/gfortran failed with exit code 1
    I don't know what does that mean. Can anyone help me with this?
    I would like some easy-to-follow instructions to run a Fortran program with Xcode, starting from the basics.
    It is hard to find an easy compiler for mac, PC people have qFortran (for free at at school) and things like that where you just have to click compile and that is it.
    Thanks!
    lbml

    I'd need to see your code to give details, but the error you got says you declared an array with a certain number of elements and then you tried to talk to the array outside those elements.
    For example you say:
    integer myArray(5)
    and then try to index either myArray(0) or myArray (6).
    Does that make sense. I have never tried to get fortran working with Xcode, but I did get Pascal working, so it is probably better is someone else helps you, but I will try if no one steps up.

  • Create Host Concurrent Program with parameters

    Hi All,
    I have created a host concurrent program in Oracle APPS with one parameter. My shell script in unix is this :
    cd $1
    mv _oracle.txt Especificacion.txt
    it is in $AC_TOP/bin directory.
    When I execute the host concurrent program with oracle APPS with one parameters that is the path that I want to send it to shell script this error occurs.
    /hogr-949-000/oracle/prodappl/ac/11.5.0/bin/xx_opm_cambio_nomarch_iweb: cd: bad argument count
    mv: cannot rename _oracle.txt to Especificacion.txt:
    No such file or directory
    /hogr-949-000/oracle/prodappl/ac/11.5.0/bin/xx_opm_cambio_nomarch_iweb
    Program exited with status 1
    I have read many papers in metalink and I understand that at first parameter it includes many details programs such as, user id, concurrent program name, etc etc, and not only the value that I want to send.
    So I know the problem, but my question is, how can I resolve it ?. I'm not a unix expert.
    Please,
    Thanks in advance
    Mariano.-

    It doesn't work. But I finally find the solution. The point is this...
    p1=`echo $1|cut -f9 -d " "|cut -f2 -d '"'`
    In f1, f2, f3, etc you receive the information of the concurrent, and in f9 receive the first value of your parameter that you create in de concurrent program.
    Regards,
    Mariano.-

Maybe you are looking for

  • Can Log Into ICloud with Apple ID - but wrong Apple ID is shown in Account Settings

    So no problem logging into my wife's ICloud account with her regular AppleID and password. Once within her ICloud account, when you click on her name ("profile icon") in upper right corner - her Apple ID in the bottom field is not her Apple ID. My as

  • Data Recovery software recommendations?

    I want to try to recover any or all of data lost on my iMac in Fire Vault. Would you recommend Data Recovery II, Disk Warrior, Stellar Phoenix, or something else? Pros, Cons? Thanks!

  • Variable url in external library linkage?

    I'm setting up a template that needs to import artwork for buttons. There are three different button sets to choose from. Each button set has 12 different movie clips in it, but not all of them are used in the same place at the same time. A shared li

  • Parallel Transporter

    I used the transporter and ran into the BSOD with WinXP starting only in Safe Mode... after three transfer (the last one wireless through airport... awesome!), I figured out the problem and want to share it, since it seems pretty common by looking at

  • Adobe Elements 11 Editor: The MARQUEE for the brush tips often disappears!

    Adobe Elements 11 Editor: The MARQUEE for the brush tips aften disappears! The only solution that I have found is to shut the computer down then start up again. Is there a fix for this problem without shutting everything down?