How deploy Dll's from TestStand

Hi
I have an appliction in which i have developed two DLL's.
Now i want to use that Test Stand and Deploy the Two dll
into some destination folder.
How can i buid an installer  using the test stand
Deploy option.
Can any one Guide me
Regards
rags

Rags,
Are you familiar with the Deployment Utility?
Are you using the Dll's as code modules?
If you only want to distribute the Dll's follow the following steps:
1. Create a workspace. (File->New Workspace File).
2. Insert a new project into the workspace.
3. Add the dll's to the project (Add Files).
4. Save the workspace.
5. Launch the deployment utility. (Tools->Deploy TestStand system)
6. On the system source tab check the 'Deploy System from TestStand workspace file' box.
7. Browse for the workspace you create in step 1.
8. Go to the Distributed Files tab.
9. You will get a prompt asking whether you want to analyze your source. Click on Yes.
10. You can alternate between the view source and view destination option.
11. Select one of your dll's and chage installation directory as desired.
12. Go to the Installer options tab and change the default installation base directory as needed.
13. Build the installer.
To learn more about the deployment utility refer to chapter 14 of the Testand reference manual.
Hope it helps. 
Antonio Lie.

Similar Messages

  • How to display non modal dialog box in a Dll call from TestStand implemented in visual c

    Dear Jason F.
    Applications Engineer
    National Instruments
    Hello
    I did the same way you told me
    the non modal dialog appeared and
    system hangs and
    giving the error message
    ""SeqEdit.exe-Application Error
    The instruction at �0x047fc5b0� referenced memory at �0x047fc5b0�. The memory could not be �read� ""
    please solve my problem
    and thanks for yours early response
    you can email me at
    [email protected]

    Hi Mkehret,
    Does your dialog have ActiveX controls on it? If your DLL dialog uses ActiveX controls and is not programmed in a certain manner it can hang because of a conflict in the threading model used by the TestStand Engine that is calling into your DLL and the model that is required by the MFC ActiveX Container. If you are using ActiveX controls in your dialog, you need to make special considerations for the threading model MFC dialogs that use ActiveX controls need in order to work properly. The example under \Examples\MFCActiveXContainerDlg illustrates how to appropriately handle this situation as well as explaining why it is necessary.
    Note: The above example displays the dialog as modal, but this is irrelevant to the problem I am describing.
    Again for information on properly creating a dialog class object and displaying it as non-modal refer to the information on MSDN that I referred you to in this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E98A0000&USEARCHCONTEXT_CATEGORY_0=_8_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_8_&UCATEGORY_S=0
    If your dialog does not use ActiveX controls or after trying the programming method illustrated in the "MFCActiveXContainerDlg" example TestStand still hangs when calling your DLL, try calling your DLL from another environment just to make sure whether the DLL works at all. If the DLL works properly when called by another environment (e.g. VB, VC++, LabVIEW, or CVI), please submit a MINIMAL and REPRODUCEABLE example source project for your DLL for us to look at (please exclude all unnecessary code not required to reproduce the specific problem of displaying the dialog, and include all files necessary to build your dll with any
    specific instructions needed to do so).
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How to create a .DLL file from a .C file ?

    Hi everybody
    I'm looking for a method how to create a .DLL file from a .C file .That Dll file will be used to perform a board to measure voice quality accoding to the international standard named PESQ (perceptual evaluation of speech qualty) P.862.
    Can anyone help to start dealing with Dlls and give some advices to avoid errors ?
    thx
    Attachments:
    source.zip ‏37 KB

    Hi sinaps,
    You mention that you want to create a DLL from a .C file. Just to clarify, are you using C (.c file) or C++ (.cpp) to write your code?
    Also, if you are using C++, are you using Visual Studio? (The reason I ask is because this forum is geared towards Measurement Studio, which is an add on to Microsoft Visual Studio).
    That being said,
    If you are using C: National Instruments provides an ANSI C Application Development Environment called LabWindows/CVI which makes building dlls a snap. It has templates for DLLs and you can build them either as stdcall or cdecl dlls.
    Developer Zone Tutorial: Building a DLL with LabWindows/CVI 8.5 for use with LabVIEW 8.5
    If you are using Visual C++: Look at the link that Al provided earlier.
    MSDN: Walkthrough: Creating and Using a Dynamic Link Library
    If you aren't using CVI or Visual Studio, then really the best bet is to do a google search for "Create C DLL" or post or a forum for the appropriate environment that you are using.
    Thanks!
    Message Edited by Jervin_J on 03-14-2009 02:02 PM
    Jervin Justin
    NI TestStand Product Manager

  • How to create dll file from c code to use in compactrio 9004 RT controller

    Hi.
    I am using Compactrio 9004 Real time controller and i am new to this. I have a C code and i want to use this with the RT controller.I red that that can be done by creating a dll file and can be called in labview.Can any body expalin how to create a DLL from the c code and be used with this RT controlelr?
    Regards,
    Vishnu

    vishnu123 wrote:
    Hi,
    Earlier in this forum itself in cRIO 900x controllers will run Pharlap and run C/C++ code compiled into .dll files.Can you please tell how to transfer the created DLL to RT controller memory throght FTP?
    Thanks and regards,
    Vishnu
    There is another KB article about this for Pharlap based controllers. And you are right the earlier CompactRIO controllers were Pharlap based. Basically for a deployed application to work, you need to put the DLL through FTP in "/ni-rt/system". If you deploy it directly from the project everything will be loaded into memory through the project environment itself including directly dependable DLLs, (but of course won't survive a power cycle).
    I hope you are aware that while Windows DLLs can work on Pharlap OS they by no means will do so always. The Pharlap OS has not a fully featured Windows API. Also you need to be careful which version of Visual C you are going to use depending on the Pharlap OS version, since the VC runtime DLLs already present on the controller will need to be the same as the ones your Visual C environment likes to link in. Recent Pharlap OS versions use the msvcr71.dll. It's very possible that those runtime libraries can't just simply be copied from a normal Windows installation but might have been recompiled by NI specifically for their controller targets.
    So to avoid problems it's a good idea to make sure your DLL uses the same runtime library DLL or make your DLL to include the static MS runtime.
    Rolf Kalbermatter
    Message Edited by rolfk on 02-05-2008 09:51 AM
    Message Edited by rolfk on 02-05-2008 09:53 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I convert a Database Handle from TestStand to LabVIEW?

    I want to use a Database Handle (already created in TestStand by an Open Database step) in a LabVIEW-VI (called from TestStand) to connect it with the "Connection Reference" input of the "Easy SQL.vi"? If I use a directly connection via the "TestStand - Get Property Value (Number).vi" I get back the error message 4101 in LabVIEW. How can I convert the Database Handle?
    Test Engineering
    digades GmbH
    www.digades.com

    The TestStand database step types use the CVI SQL Toolkit to talk to databases. The handle that you are referencing is an internal memory location and not a actual handle that you can directly use. Currently as implemented the handle that is stored in a numeric TestStand property for the connection and the SQL statement are the handle values returned from the CVI SQL Toolkit. So for the connection handle, you could call the CVI SQL Toolkit function
    DBGetConnectionAttribute (
    int Connection_Handle,
    tDBConnectionAttr Attribute,
    void *Value);
    and get the CVI CAObjHandle reference. With this you could then call the CVI ActiveX function
    CA_GetInterfaceFromObjHandle(
    CAObjHandle Object_Handle,
    const IID *Interface_Id,
    int Force_AddRef,
    void *Inte
    rface_Ptr,
    int *Did_AddRef);
    to get the actual ActiveX interface reference. This would have to be converted into a LabVIEW reference.
    You may want to consider just using LabVIEW to open a new parallel reference only using the toolkit.
    Scott Richardson
    National Instruments

  • How to move the code and deploy the code from Dev environment to SIT.

    Hi,
    I have a requirement.
    I want to move the components and deploy the code from dev Environment to SIT environment using Ant Script for AIA.
    Before doing this is any pre-requisites required?
    Can you please help on this,how to do?
    Thanks in advance.

    Further to add to Anish Statement follow the steps to easily migrate the code to different environment.
    Steps:
    First log on to the EM Console and export the Composite Flow as a SAR file to a location.
    In Jdeveloper create a project using the same name of a SAR file like - ProcessSalesorderFlow
    import the project using the option import the composite using a SAR File.
    After import , then click on the composite and then generate the config plan.
    In config plan add all the url changes using the search and replace Tags.
    And in case if you have a JCA Adapters the same has to be taken care in SIT environment why because during deployment a lookup happens and deployment fails if it dont find the JNDI Name.
    Take the SAR file adn config plan seperately from JDeveloper.
    Now open em console again and then deploy it using the config file and SAR file.
    Thanks,
    Venugopal SSS RAJA

  • How to discard skipped test results in XML report generated from TestStand

    Hello,
    I'm generating XML report from TestStand. I have more than 100 test cases & user has the flexibility to select the test cases to execute or to skip.
    Problem statement:
    1. In Configure\report options there is filter expression to filter test results to be logged. However, this filter is disabled for XML report.
    2. Is there a way to compress XML file using either encryption or any other methods?
    I understand that there would be two methods ideally for my problem statement #1 above:
    A. To have a workaround in reportgen_xml.seq to pragmatically log only executed test cases and discard skipped test results.
    B. Modify stylesheet supplied by NI to discard skipped test results.
    For problem statement #2 above:
    I am able to encrypt the data before logging it to XML. But I don't know how to modify the stylesheet to decrypt the same using either public/ private encryption keys. Can anyone bring in more ideas here !!!
    My preference would be to implement using #A above to reduce the XML file size which is ~4 MB will all test results (skipped + executed). If this is not possible my last option would be to implement using #B above
    I would appreciate if someone can help me for my problem statement? I'm using TestStand 2010
    Solved!
    Go to Solution.

    I have another solution and that is to actual discard the result before you get to the report stage.
    You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
    Check out this link.
    Regards
    Ray Farmer

  • 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

  • RE: How do I access deployed TOOL libraries from mycode?

    Hi Martin,
    sorry for the late answer but I hope it is still helpful.
    First: In the workspace you make your distribution from, check whether
    you really have library icons.
    Second: Make the distribution and run it from the partition workshop.
    Startup should fail when you do not have the libraries installed. If you
    install them later and you can run that distribution then, you can be
    sure that you use your library.
    Third: Sometimes it is difficult to import the library pex-file into
    your workspace when there are already plans with that name. To overwrite
    them you can use a traceflag (cfg:c4:14:14:1). But take care! this will
    overwrite!!! Do not overwrite them before you put your libraries sources
    into another repos. If you did it by accident, at least do not integrate
    until you saved the original code.
    Hope this helps. If you have more question please feel free to contact
    me.
    Uli
    Ulrich Beutenmüller
    TechnoData GmbH
    Germany
    -----Original Message-----
    From: Martin G Nystrom [SMTP:[email protected]]
    Sent: Thursday, October 15, 1998 12:56 PM
    To: [email protected]
    Subject: Re: How do I access deployed TOOL libraries from my
    code?
    Excellent! Now can I be sure that my client application is using the
    deployed
    library, not bundling its own when I distribute the application?
    -Martin
    Karoly <[email protected]> on 10/14/98 05:55:43 PM
    To: Martin G Nystrom/AM/LLY
    cc:
    Subject: Re: How do I access deployed TOOL libraries from my code?
    Martin,
    Here is how it works:
    When you create a library distribution, part of the result is a
    'Library
    Definition' pex file (located under the 'appdist') like this:
    C:\forte\appdist\EnvName\LibName\cl0\generic\LibName\LibName.pex
    You would import this pex file into a workspace, after which it
    would
    appear
    as any other Forte library.
    Once integrated, the library can used by other plans as a supplier
    (remember
    to 'install' the library from E-Console).
    Hope this helps,
    Karoly Kojnok
    Martin G Nystrom wrote:
    We have a lot of plans that contain "business objects" that ourclient
    applications share. I'd like to deploy these plans as TOOLlibraries (not
    compiled) and then have my deployed applications use them. Myquestion is:
    How do I access the library?
    Some possible answers:
    1) Just include it as a supplier plan, it will automatically use thedeployed
    TOOL library
    2) You have to programmatically load it using task.part.findLibrary
    3) The help says I can "import it into my repository" -- how do I dothat?
    -Martin
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Excellent! Now can I be sure that my client application is using the deployed
    library, not bundling its own when I distribute the application?
    -Martin
    Karoly <[email protected]> on 10/14/98 05:55:43 PM
    To: Martin G Nystrom/AM/LLY
    cc:
    Subject: Re: How do I access deployed TOOL libraries from my code?
    Martin,
    Here is how it works:
    When you create a library distribution, part of the result is a 'Library
    Definition' pex file (located under the 'appdist') like this:
    C:\forte\appdist\EnvName\LibName\cl0\generic\LibName\LibName.pex
    You would import this pex file into a workspace, after which it would
    appear
    as any other Forte library.
    Once integrated, the library can used by other plans as a supplier
    (remember
    to 'install' the library from E-Console).
    Hope this helps,
    Karoly Kojnok
    Martin G Nystrom wrote:
    We have a lot of plans that contain "business objects" that our client
    applications share. I'd like to deploy these plans as TOOL libraries (not
    compiled) and then have my deployed applications use them. My question is:
    How do I access the library?
    Some possible answers:
    1) Just include it as a supplier plan, it will automatically use thedeployed
    TOOL library
    2) You have to programmatically load it using task.part.findLibrary
    3) The help says I can "import it into my repository" -- how do I do that?
    -Martin
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • How to export deployed SOA process from 10.1.3.4 and to use in JDeveloper

    I have a situation where I need to export deployed SOA process from 10.1.3.4 in order to make some changes since the source code is not available. If I export process from BPEL console in 10.1.3.4, I cannot use that in JDeveloper. Will anyone suggest me how to export the deployed process from 10.1.3.4 and then to import in JDeveloper 10.1.3.4. thanks!
    Regards,
    Suneel Jakka

    As far as i remember, i think you have option to export the deployed project as .zip file.
    When you deploy using jdev / ant script, the compiled code will be exported as .jar file into the server and in the server context path, the .jar file will be extracted.
    When you export from the server, it will zip the extracted content from the context path.
    So you need to create a empty project with that name and manually copy paste the project folders into your jdeveloper work space, then compile.
    Hope this helps !!
    *7) Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.*
    Thanks,
    Vijay

  • Writed a dll for save string in teststand,get a error from teststand

    I'm writed a dll for save string in teststand, the dll can execute by itself well,but when loading by teststand, it always error heppen,I attached all resource here ,please kindly help me on this,thank you in advance.
    帖子被alexzheng在06-15-2006 03:19 AM时编辑过了
    Attachments:
    dll.zip ‏32 KB

    HI,
    I have resolved the problem, I have wrong define in the write function use : writetextfile(CString filename,CString text,int length)
    but the error happen when I transfer those string from teststand to dll,it generation a system level error and automatic close teststand software occur,
    after I change the define for :writetextfile(char *filename,char *text,int length) ,it is Ok now.
    帖子被alexzheng在06-15-2006 06:44 PM时编辑过了
    Attachments:
    err1.jpg ‏21 KB
    err1.jpg ‏21 KB

  • Using cvirte.dll from teststand

    I am trying to use cvirte.dll from teststand to automatically print test result reports. I am starting with the example sequence PrintEntireReportWhenFinishedTesting.seq that I found on the NI website. I want to change the print font attribute. The dll doesn't include prototype information so I need information on the parameters for the SetPrintAttributeEx function. Specifically what number refers to the ATTR_PRINT_FONT_NAME attribute and what are acceptable values for the value of this parameter.
    Attachments:
    PrintEntireReportWhenFinishedTesting.seq ‏37 KB

    Wendell,
    I believe this question was also posted in the TestStand category. Since this is more of a TestStand question, it was seen and already answered. Please see Using cvirte.dll from teststand.
    Thanks!
    Shannon R
    Applications Engineer
    National Instruments

  • 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

  • How to get hostname from targetlist in custom deployment procedure?

    When I make a simple procedure with a phase that will loop through a procedure hostname list
    and a hostcmd or directive inside that will use the hostname ex change a configuration file. How to get hostname from the hostname targetlist?
    I would rather not use $(hostname) or similar function if I can get the hostname from the target list.
    Edited by: user476601 on 2012-09-06 05:59

    I have tried that and cannot get it to work.
    I have tried to make a procedure with:
    parameter
    - parallel fase
    - step directive with hostname parm based on simple sh script (echo $hostname)
    - map hostname setvalue %TargetName%
    In a hostcmd step you cannot access %TargetName% directly
    it doesn't work. Please come with an example if you have tried it.
    /René

  • How can I create a Teststand (1.0.3 or 2.0) distribution without having all of the VIs (6.0.2 or 6.1) in the same directory?

    How would I create a Teststand distribution of LabVIEW VIs and maintain the test VI directory structure that I want?
    I know that I have to use the application builder to build the custom operator interface, configure it as an ActiveX server, and launch the Teststand engine installation.
    The only problem that I have is using the VI packager which puts all of the test code and sequences in a single directory.
    This gets quite messy. There are just over 1000 files in the neatly orgainzed directory structure that I have now. (this includes support files, dll's and such)
    I have read brief appnotes on configuring the ini file(s) to use
    the vi search path that I want, but have not been able to get this to work. Maybe I'm not updating the correct ini? or have to include each subdirectory?
    I have currently upgraded from LabVIEW 6.0.2 to 6.1
    I am currently using Teststand 1.0.3
    I have not upgraded to Teststand 2.0 yet because I have not decided if I want to build at this revision or go through the extra work to mass compile Teststand at LabVIEW 6.1, install the LabVIEW 6i VI Packager Fix, and update the new Teststand LV operator interface with my changes.
    At present, I'm not getting the results I want and am quickly running out of time. I have to deliver the project by the 14th of July 2002.
    Sorry for the long question and thanks for you help.

    Hi,
    I dont think the problem is really related to using the VI Packager but more to how the OI interface applications relates to labVIEW File constants.
    If you are using the LabVIEW as the ActiveX Server then there should be no problems. But if you are using the Runtime LabVIEW server such as 'TestStandLVRTS' then the file constant would return different paths.
    eg for the Default Path you would get 'C:\TestStand\Components\User\RuntimeServers\LabVIEW' instead of 'c:\Program Files\National Instruments\LabVIEW'.
    Attacted is an example to show how to change these paths when using your runtime server. Unzip this into your teststand examples folder
    Put the INI file in the location of the \user\runtimeservers\labview folder.
    Change the labview adapter t
    o use TestStandLVRTS.exe. You can run the example sequence from either the OI or seqeditor.
    I hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    UsingLVOI.zip ‏20 KB

Maybe you are looking for