Calling DOS executable from TestStand

I have read the forum under TestStand.  I have version 3.0-- I am unable to get a DOS executable tool to work when I call it.  I can create a seperate seq file and call Notepad fine but when in that seperate and unique seq file I put the call to my tool and try and pipe (>) the results to a screen it doesn't work-I've tried what seems like every option for threading etc .  So I even put my DOS program under a directory and naming structure that conforms to the old 8.3 DOS standard.  I try to pipe(>) information to a text file and it doesn't work.  It also doesn't wait the 30 seconds that I tell it to either despite trying every option etc.  I've done everything I've seen in the help but have had no luck.  Do I need to create a VB or C++ DLL wrapper, if I do then what challenges do I face?  I am close to telling my manager that TestStand is not a tool that we can use.
Thanks
JL

I got it working.  Thanks for you input.  I believe I simply was missing a command on the command line (it takes about 5 parameters).  It was falling through and I wasn't able to catch what was going on.  I thought it was a thread issue within teststand that I needed to set.  I also didn't realize the default location that it executes from any my paths were explicit.  I also wasn't clear on some other details but have now figured them out pretty much.
Thanks again
Jim
~~~~~~~~~~~
Are you using the call executable step type? If so please provide more informations about how you have it configured, if not please explain what you are doing. By DOS executeable do you mean an old 8-bit DOS program (what version of windows are you running this on?)? Or do you mean a windows console application? Are you getting any error messages? How are you verifying that your executeable isn't being called? Or is the problem just with the IO redirection?
-Doug

Similar Messages

  • Calling labview executable from teststand

    I have a labview VI that I build into an exe, and I'd like to call it from my teststand sequence in the setup - other test steps need to use its capabilities in the remainder of the sequence (main).  If it were just a VI, then no problem, the inputs would be visible to me, and I could pass them in.  Since it's an executable, though, my step is of type "Call Executable", but I don't see anywhere that it allows me to pass in the inputs it needs.  Thoughts?
    Solved!
    Go to Solution.

    What version of TestStand are you using?  With TestStand 4.0 for the 'Call Executable' step there is a line called
    Argument Expression:
    Enter your parameters to pass into your LabVIEW executable.  You will have to know which ones to pass in and in what order. I believe you can seperate the arguments by spaces.  In my attachment, I pass in one parameter to a LabVIEW executable.
    Remember, though you have to set the Build properties in LabVIEW to allow it to Pass command parameters to the application.
    Thanks,
    PH
    Attachments:
    Call Executable.JPG ‏48 KB

  • How TO CALL c++ EXECUTABLE FROM XI(VERY iMPORTANT)

    hI ALL
    pLEASE DO GIVE SUGGESTIONS AND DOCCUMENTATION LINKS  THAT <b>HOW TO CALL c++ EXECUTABLE FROM XI</b> .THIS IS VERY IMPORTANT AND YOUR HELP WILL BE REWARDED.
    WITH REGARDS
    SUBRATO KUNDU

    Hi Subrato,
    AFAIK you can call C / C++ methods in Java using Java Native  Interface (JNI).
    Please refer the following links for how to do the same.
    <a href="http://www.nag.com/IndustryArticles/CallingCLibraryRoutinesfromJava.pdf">For C:</a>
    <a href="http://www.javaworld.com/javaworld/javatips/jw-javatip17.html">For C++:</a>
    Regards,
    Ananth

  • How do I call Vee functions from TestStand ?

    I wish to call Vee functions from TestStand steps.
    I am using Vee 6.01 and TestStand 2.0.

    Hi Gerry,
    Sorry about that. Below is a sequence file created in 2.0.1f1. Please copy the contents of the zip file (previous attachment) into the folder \Examples\VEE\Using ActiveX (VEE 6.0). Please create this directory if it does not exist. The next thing you will need to do, is register the TestStand VEE server located in \Examples\VEE\Using ActiveX (VEE 6.0)\VEE_StepType.dll. To do this:
    1) Select Start>>Run.
    2) Type regsvr32 "C:\TestStand\Examples\VEE\Using ActiveX (VEE 6.0)\VEE_StepType.dll"
    You should get a message saying that the registration was successful. You should now be able to run the example. Please let me know if you encounter any further problems. Thanks!
    Attachments:
    Computer.seq ‏66 KB

  • Calling LrTasks.execute from within a plug in manager control

    I'm working on a Lightroom post-processing-filter plug in which has most of the functionality inside an executable that resides inside the plug in folder.
    The executable is responsible for doing the actual photo processing but is also responsible for obtaining and verifying that there is a valid license. This means that I need to let the user eneter an activation code, pass that to the executable which will talk to our server and get a license.
    I would like to handle that activation part from the plug-in manager dialog so I've added a top section (see following code) with a text field and a button and I've added code to call the executable when the button is pressed, but the executalbe is never called.
    Is what I'm trying to do impossible? Any workarounds?
    Thanks in advance!
    Eyal
    function PluginManager.sectionsForTopOfDialog( f, p )
              p.my_result = 0
    return {
              -- section for the top of the dialog
                        bind_to_object = p,
                        title = "MyPlug",
                        f:row {
                                  spacing = f:control_spacing(),
                                  f:static_text {
                                            title = LrView.bind( "my_result")
                                  f:push_button {
                                            width = 150,
                                            title = 'Run Exe',
                                            enabled = true,
                                            action = function()
                                                      command = '"' .. LrPathUtils.child(LrPathUtils.child( _PLUGIN.path, "mac" ), "MyTool" ) .. '" ' .. '-action check"'
                                                      quotedCommand = command  
                                                      p.my_result = LrTasks.execute( quotedCommand )
                                            end,
    end

    Thanks Rob,
    I'm afraid it didn't work for me. The code inside postAsyncTaskWithContext is not executed, as far as I could see. I didn't see any diagnostic messages.
    local LrView = import "LrView"
    local LrHttp = import "LrHttp"
    local bind = import "LrBinding"
    local app = import 'LrApplication'
    local LrPathUtils = import 'LrPathUtils'
    local LrTasks = import "LrTasks"
    local LrDialogs = import 'LrDialogs'
    local LrRecursionGuard = import 'LrRecursionGuard'
    PluginManager = {}
    function PluginManager.sectionsForTopOfDialog( f, p )
              p.my_result = 0
              local buttonGuard
    return {
              -- section for the top of the dialog
                        bind_to_object = p,
                        title = "MyPlug",
                        f:row {
                                  spacing = f:control_spacing(),
                                  f:static_text {
                                            title = LrView.bind( "my_result")
                                  f:push_button {
                                            width = 150,
                                            title = 'Do Something',
                                            enabled = true,
                                            action = function(button)
                                                      LrFunctionContext.postAsyncTaskWithContext(button.title,function (context)
                                                                p.my_result = 3
                                                      end)
                                            end,
    end

  • Calling external executables from .jsx

    Hi
    I'm looking to do some Perforce (revision control) work from inside a Photoshop .jsx. There is a Perforce plugin for Photoshop but it does not seem to interface with the Photoshop CS2 Automation system in any way. My question is, does the Photoshop JS interface provide me some way to call other executables?
    Thanks
    Alex Mouton

    [email protected] wrote:
    > Hi
    >
    > My question is, does the Photoshop JS interface provide me some way to call other executables?
    There is no binary interface for this.
    However, the File.execute api will let you execute whatever app you want. If you
    need to pass parameter or get results back, it gets a little complicated but it
    is doable. Check over at the scripting forum.
    >
    > Thanks
    > Alex Mouton

  • Is their a possibility to call SDK functions from TestStand directly?

    Hello!
    I want to call a function from the Windows SDK.
    Is this possible?
    Regards,
    Brosig
    Using TestStand 3.5 and Windows XP

    Brosig,
    sadly i dont know what the error with the pdb-file could be. but as far
    as i see from the description to the function found here, there should
    be no such dependency.
    please take a look into the "requirements"-section of the link. it
    seems that kernel32.dll is sufficient for usage of the function. and
    for myself, i never had such problems when using the kernel32.dll.....
    one problem could be the type of the parameter you are using. i know
    that there are sometimes odd issues on SDK when the parameters do not
    fit exactly the needed type.  so make sure that all strings are
    null-terminated and the buffers you pass are preallocated!
    Norbert B.
    Edit: forgot the link.....
    Message Edited by Norbert B on 12-22-2005 09:31 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Calling a executable from local system

    Hi All,
    Can we call a executable file stored on our "local" system? I know this goes against the 3 tier architecure but still lemme know.
    regards
    Puru

    hi
    good
    go through this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2d5a358411d1829f0000e829fbfe/content.htm
    thanks
    mrutyun^

  • Calling an executable from a java program

    How can I call a compiled program from a java program. I have a fortran program, which I would like to call for execution from within my java program. My OS is linux.
    Thanks,
    An

    Not quite sure in the case of fortran program, but one thing can be done, call ur fortran program from a batch (.bat file) and call this .bat file from java ;
    try {
    Process p = Runtime.getRuntime().exec("run.bat");
    p.waitFor();
    catch( Exception e ) {
    }

  • Calling DOS command from a webpage?

    How would I go about doing this? I want a webpage that when an image is clicked this DOS command is called:
    rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen Image_Location\image.jpgThis command opens the image in Windows Picture and Fax Viewer. I'm not worried about portability since this is only going to be on my home network. I figure I'll probably need Java or something to do this, but I've no clue where to start looking. Help is appreciated!

    How would I go about doing this? I want a webpage
    that when an image is clicked this DOS command is
    called:First of all, this is not a Java-related question. It is an HTML and browser capabilities question.
    Second of all, in general this is not possible. If it were, imagine the security issues allowing a web page to arbitrarily allow executing anything on the client victim's machine. At best the user has to configure his browser to "trust" content from the site in question. Since you as the application provider can't force this configuration to happen automatically, you're out of luck unless you are in complete control over the clients (such as if they are all within the corporate intranet only).

  • Calling an Executable that Requires DOS from Webpage

    Could anyone helpout with this. I am trying to call an executable from a webpage. The purpose is to collect some data, store them in some strings then based on that data call the DOS executable and fill in the switches. For example the executable is clemail.exe and the switches are -to [person to] -from [person from] -subject [subjectline] etc... The DOS line looks like this:
    clemail.exe -to [email protected] -from [email protected] -subject email sender -body This exe enables you to send an email from the DOS command line.
    Any suggestion would be appreciated.
    Thanks,
    George

    Could anyone helpout with this. I am trying to call an executable from a webpage. The purpose is to collect some data, store them in some strings then based on that data call the DOS executable and fill in the switches. For example the executable is clemail.exe and the switches are -to [person to] -from [person from] -subject [subjectline] etc... The DOS line looks like this:
    clemail.exe -to [email protected] -from [email protected] -subject email sender -body This exe enables you to send an email from the DOS command line.
    Any suggestion would be appreciated.
    Thanks,
    George
    U can do that using
    Runtime.getRuntime().exec ("clemail.exe -to [email protected] -from [email protected] -subject email sender -body ");
    remember to put the clemail in path or give the entire path.

  • User event from TestStand to Labview

    Hello all,
       I have some question regarding Labview-TestStand
       We have a large application written in Labview, user interface separated from the actual
    core using  User Events. Now we consider to automate some repeated actions with slightly
    different parameters. Is the TestStand sutable option for thi case? Can it send the "User event" to
    Labview?
     Thanks
    Michael.
    LV 8.2 at Windows & Linux

    Hi mishklyar,
    tbob makes a good point, and I will try to elaborate a little bit. TestStand is test executive software. It works by executing a set of predefined steps in sequence. These steps can be LabVIEW code, C code, etc. You can pass parameters into the LabVIEW code that you call, but you cannot directly send "user events" the same way that user events are created in LabVIEW by interacting with front panel controls. The traditional design with TestStand is to create a LabVIEW code module that does a particular thing, and have other modules (VIs) that do other things. Then, call each module from TestStand as needed. As the name implies, TestStand is often used for testing products, but could be used for other purposes as well. If your application could be modified to fit this model, then TestStand could probably be used. However, you would probably want to architect your LabVIEW application differently than it is right now.
    Best Regards,
    John M
    National Instruments
    Applications Engineer

  • How do I Launch a Microsoft WORD Document using AciveX from testStand

    Hello All:
    I would like to launch a Word document from within Teststand. I would also like to have the ability to search the document for particular sections of the document. I can not find any sequence file examples that even comes close to demonstrating any of this.
    Thanks...

    Hello Craig,
    I have attached an example that will demonstrate this for you. You may need to change the Word Server to match the version of Word that you have installed. This can be done by right clicking on each ActiveX step and select Specify Module. Under Automation Server, scroll down the list to Microsoft Word... and select it.
    This is primarily an example to demostrate calling Microsoft Word from TestStand. If you require additional functionality from the Microsoft Word ActiveX server then you should refer to the API reference help for Microsoft Word.
    Hope this helps!
    Bob
    Attachments:
    TSWord.zip ‏7 KB

  • Executing an executable from a servlet or a JSP

    Is it possible to call an executable from a servlet. Say I have a client server application and I want to start the client application from a servlet. What is the best way to do that?
    I know normal Java applications can use the Runtime to run an executable. Can a servlet do the same? What are the security implications, considering that the servlet will be accessed from a browser?
    Thanks for your help.

    A servlet is executed on the server, not the client. The client receives a response from the servlet which is usually plain text formatted as HTML and/or javascript.
    So can a servlet use the Runtime class? Sure, but on the SERVER, not on the client. Hence, the executable will need to be on the webserver, not on the client machine and it will execute on the webserver, not on the client.
    Maybe, your HTML formatted response can include an <applet> tag to trigger the browser to download an applet that may have access to call an executable. Maybe a trusted applet?

  • Call TCL script from TestStend or CVI

    Hi
    I would like to call TCL script from TestStand or CVI.
    It’s possible ? and what do I need for it ?
    T.U

    Hi,
    here is a link to an example
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/e1d9dbb13c6119f786256a3000696642?OpenDocument
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for