With the help of the Teststand API to create a .tpj file

Hello

I'm looking for an example on how to create a project teststand with the API file. I can not find a method or property to create it and add the project files to a workspace. I tried with PropertyObjectFile (class) without success.

Let me know if you can help.

THX

Martin.

TestStand 2010 SP1.

CE that you say make sense, I managed to make it work differently using PropertyObject.WriteFile (format) just before SaveWorkspaceAndProjectFiles.

Recap:

Creating a workspace = Engine.NewWorkspaceFile (WorkspaceFile.AsPropertyObject (PropertyObjectFile.WriteFile [in writeFormat])(PropertyObjectFile.SaveFileIfModified[Prompt])) ((PropertyObjectFile.Path[Path])

Creating a project = Engine.NewPropertyObjectFile [FileType] ((PropertyObjectFile.Path [Path]) (PropertyObjectFile.WriteFile [in writeFormat]) (PropertyObjectFile.SaveFileIfModified [prompt]

Add a project to a workspace = Rootworkspace---> WorkspaceObject.NewFile [Path]---> [obj (NewFileReference)] [Index] WorkspaceObject.insertObject and WorkspaceFile.SaveWorkspaceAndProjectFiles of WorkspaceFile.AsPropertyObjectFile (PropertyObjectFile.WriteFile [in writeFormat]).

Thank you for giving me a helping hand.

Martin

Tags: NI Software

Similar Questions

  • Stop the teststand Viewer to create a temporary file

    Hi all.

    I have a simple question.

    Can I stop the teststand to create a temporary file when I click on the Viewer to display the result of the test?

    This function leaves the trash in the test result.

    Thank you

    TP

    Hello

    I know, that has no way to avoid the creation of the temporary file.

    every time when it is called Report.Load/Save (normally in the model), the temporary file is created.

    I just did a little work around.

    It is the property GetTempFileDirectory ReportObject object.

    With it you can specify a special folder that is separate from the reports use "free".

    Now, I am able to avoide conflict with the reports-Temp.

    Hope this helps

    Jürgen

  • How to use the Teststand API DisplayEditNumericFormatDialog method

    Hello

    I have to create a report for Teststand coustom generator plugin using c#. In the Teststand API is a built-in method called 'DisplayEditNumericFormatDialog '.

    http://zone.NI.com/reference/en-XX/help/370052M-01/tsapiref/reftopics/propertyobject_displayeditnume...

    Is there a way to set the value of the sample of the window that appears if the method is called?

    I do the following things:

    private void button1_Click (object sender, EventArgs e)
    {
    mChanged = true;
    bool tempbool;

    PropertyObject tempobject = mEngine.NewPropertyObject (PropertyValueTypes.PropValType_Number, false, "", 0); creates a temporary PropertyOgject to view the EditNumericFormatWindow

    tempobject. NumericFormat = mConfig.GetValString (P_PluginSpecific_Options_NumericFormat, 0); read the digital format of the plugin options
    tempobject. DisplayEditNumericFormatDialog ("Digital Format", out (tempbool), 1); View the EditNimericFormatWindow

    If (tempobject. NumericFormat == "") mConfig.SetValString (P_PluginSpecific_Options_NumericFormat, 0, "%$.13g");
    else mConfig.SetValString (P_PluginSpecific_Options_NumericFormat, 0, tempobject.) NumericFormat);

    MessageBox.Show (tempobject. NumericFormat.ToString ());
    }

    Thanks in advance

    Hello f4bo,

    attached is a sequence that shows how this can be done.

    Locals.Local = RunState.Engine.NewPropertyObject (PropValType_Number, False, "", 0x1),.
    Locals.Local.AsPropertyObject.NumericFormat = "%b"
    Locals.Local.AsPropertyObject.SetValNumber ("", 0, 20),.
    Locals.Local.AsPropertyObject.DisplayEditNumericFormatDialog ("false title", False, 0)

  • Accessible resources within a platform with the HQ API

    Hello

    I use the HQ API to build a custom Java monitoring tool.
    So far, I can easily access agents and its related settings.

    My problem is that I don't know how to access resources related to agent: Mount of the file server, servers, services... Is it impossible with the HQ API?

    How can I do?

    If you use this, it will be very easy!

    Get all your HQ server agents: this will return a list of the agents!

    listAgent = hq.getAgentApi () .getAgents () .getAgent ();

    Get all your HQ server platform: this will return a list of Resources (platform)!

    listPlatform = hq.getResourceApi () .getResources (listAgent.get (i), true, true) .getResource ();

    Get all your HQ Server server: this will return a list of Resources (server)!

    list server = listPlatform.get (j) .getResource ();

    get all your HQ Server services: this will return a list of Resources (services)!

    listServices = listServer.get (k) .getResources ();

    with this, you can have the agent (machines) and all the resources under it!

    Hope this will help u

  • Get members of the group with the Java API in LiveCycle

    I work with the Java API in LiveCycle (LiveCycle 8.2) and I am looking


    an example of how read the members of a group.

    I am able to get a group (Type GroupImpl) using the PrincipalSearchFilter.


    But how do I get the members of this group. I checked the
    DirectoryManagerServiceClient and classes of different search filters
    without success?

    As a solution, I can retrieve all users of my application area and
    check their membership to see if they are in the group concerned. But this
    is a dirty hack, I really don't want to use.

    Any ideas?

    Hello!

    I know you mentioned that you were watching in this without success, but it should work really.

    First make a GroupMemebershipSearchFilter, defining the groupoid be the ID of the group itself.  Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter that will return a list of, as follows:

    DirectoryManager DirectoryManagerServiceClient = new DirectoryManagerServiceClient (serviceConnection.getFactory ());

    List userList = new ArrayList ();

    Try
    {
    userList = directoryManager.findGroupMembers (searchFilter);
    }
    catch (System.Exception e)
    {

    Animals mistake
    }

    return userList;

  • Hi, I'm rookiee and I just started with the first steps of creating a Web site. the katies-coffee-building file is on my desk and uplouded in the library. That has worked well. Now I'm putting the button in Photo Shop (banner), I have pull down on file/pl

    Message "Hi, I'm rookiee and I just started with the first steps of creating a Web site. the katies-coffee-building file is on my desk and uplouded in the library. That has worked well. Now, I'm putting the button in Photo Shop (banner) in. I pull down on the file Photo Shop button instead and try to select the Banner.psd file. Unfortunately all of the (active) folder is not accessible to all. One is not visibel. Please - need some help here. Thank you.

    @Ach ja, meine Muttersprache ist Deutsch

    You must use the file > Place Photoshop button (Cmd / Ctrl + B).

  • I try to install MSI 4.5 with the windowsXP-KB942288-v3 - x 86 .exe file. I get a lot of messages that Setup could not back up the registry key... 5. access is denied.

    MSI 4.5 installation problems

    I try to install MSI 4.5 with the windowsXP-KB942288-v3 - x 86 .exe file. I get a lot of messages that Setup could not back up the registry key... 5. access is denied.

    I get this for about 10 different registry keys. If I hit ignore whenever Setup ends, but he told me that he have not installed properly and windows may not work.
    Any body have ideas of how to do to solve this problem?
    Thank you

    I did some further research and came across this http://support.microsoft.com/kb/949377 while it is not the same update I tried to install it, the problem seemed similar. I tried Microsoft fix it at the bottom of the page and I tried again to install MSI 4.5. This time, it worked.

  • vCenter Service was able to start with the error failed to create the front of SINGLE sign-on: vmodl.fault.SystemError

    Hello

    Can someone guide me how to solve this error? vCenter service is not getting started, I looked in the newspapers vpxd and found the following error.

    vCenter Service was able to start with the error failed to create the front of SINGLE sign-on: vmodl.fault.SystemError

    Thank you

    John

    Hi John,.

    This is due to host on the vCenter server entries. Please try the procedure below

    Connect to the vCenter server, edit the/drivers/etc/hosts file in Notepad

    C:\Windows\System32\drivers\etc\hosts

    # 127.0.0.1 localhost

    Note: If a line does not exist in the hosts file, add it at the end of the text.

    #) to remove the comment from the line of IPv4.

    1. 127.0.0.1 localhost
      ·  Save and close the file.
    • localhost127.0.0.1.

      • GoTo services.msc and start VMware Virtual Center Services.

    Thank you

    Venance

  • How do I reselect the type to change.  I have a text template that I want to, but when I try to select it with the text tool always creates a new text layer.  How to change the type of the layer in my registered design?

    How do I reselect the type to change.  I have a text template that I want to, but when I try to select it with the text tool always creates a new text layer.  How to change the type of the layer in my registered design?

    OK, Bob. This give a try.

    First, open a new file and make sure the background is white, not on Transparent that I suspect you have currently defined.

    Then, type your copy. Your layers panel will then look like the top of this picture...:

    and when you drag the text on the image layer, it will look like the lower part of the sample above.

    You can then position the text layer with the tool move

  • Looking for advice on navigation in the TestStand API.

    I use TestStand for a few months now (self-taught using a LV architect with experience of the TS) and I think I will do certain things programmatically at run time and finished watching the massive array of properties/methods, etc. and ask yourself who are the properties/methods that will allow me to do what I have in mind.  Is there something fundamental missing in learning to understand which path to take to get down to the specific class and property/method interests me?

    For example, at the moment I am trigger some additional operations on the process model in addition to running the main client generated when you enter Test DUT. I would like to be able to programmatically from within TS itself, or more probably of LabVIEW or hide these tabs when running... I guess it's possible.  I know that executions can be set initially hidden but a search for 20 minutes of the API not immediately revealed magical items to let me do this programmatically.

    Hey, smoke,

    The ApplicationMgr TestStand is located within the TestStand UI control server. To access the Application Manager, you first need to action a step ActiveX (because it is an ActiveX control) and RunState.Engine.GetInteralOption (InternalOption_ApplicationManager), you get a Manager Application object.

    Example:

    "Select the Module tab then under Automation server" NI TestStand XXXX UI controls (Ver X.X)

    The object reference"RunState.Engine.GetInteralOption (InternalOption_ApplicationManager)

    Class object' ApplicationMgr (IApplicationMgr)

    Get the property executions

    Which returns an object reference and class performances, thus, create a variable(Local,FileGlobal,etc) of object reference to use to retrieve the properties of the Application Manager.

    Also note that to get the individual properties of your Application Manager object you won't be ActiveX measures for the properties you want.

    I hope this helps.

  • Adding properties files TDMS with the C API

    I use the free C API (dll) to write TDMS files. Everything works perfectly except the next function call.

    int __stdcall DDC_CreateFilePropertyString (file DDCFileHandle,
    const char * property.
    const char * value);

    I call the following function in advance to create the PDM file.

    int __stdcall DDC_CreateFile (const char * filePath,)
    const char * fileType.
    const char * name,
    const char * description.
    const char * title,.
    const char * author;
    DDCFileHandle * file);

    When I call the function to create the property, it returns with the error-6202 code (invalid argument). I don't think that there is an invalid argument in my appeal. Someone at - it examples of code? What I need to do something before I can create a property?

    Thanks for your help.

    Does

    DDC_CreateFilePropertyString (file, "MyProperty", "MyValue");

    work?

  • Can not do a query with the REST api

    Hello

    After discovering that the use of the standard SOAP API what is like poking yourself in the eye with a sharp stick, I try to use the REST API. At first, I tried to exercise it through the extension of POSTMAN on Chrome. But I have no joy.

    Can I use caller ID to get the URL, so I know that my authentication is OK. But all other calls give me:

    Failure of 403 XSRF Protection


    Is an example of a call, that I'm trying:

    https://secure.Eloqua.com/API/rest/1.0/data/[email protected] & Count = 1

    I can't find any reference anywhere to this error 403.

    Help!

    Thank you

    Simon

    Hi Simon,.

    Looks like you're client (web browser) might have stored credentials for Eloqua, probably in the cookies collection. If you try to delete your cookies and rerun the query API with basic authentication, it should work.

    Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • Get complete information of Contact with the REST API with Ruby

    Hello

    I'm trying to find information from a contact using the REST API from Ruby. I followed the example posted here and I was able to get good contact with Eloqua, but information are the basis and the FieldValues table is very long with fieldValues can only be and no label field.

    I don't know I asked for complete = depth, and I verified that the contact even on the side of Eloqua seen so many other areas.

    It's the URL that I use: https://secure.eloqua.com/API/REST/1.0/data/contacts?search= < emailAddress > & depth = full & count = 1

    and I don't get like this field in the fieldValues can only be: {'type': 'FieldValue', 'id': "100175"}

    With respect to the main information, they are basic.

    Is it possible to obtain all the contact fields, the same than the one I see on the site of Eloqua?

    Thank you

    Hi Theyaa,

    You can use the following endpoint to retrieve a list of all fields with their unique identifier and metadata:

    • GET /API/REST/1.0/assets/contact/fields?depth=complete&search=*&page=1&count=250

    Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • Add vNIC PortGroup scope with the REST API security group

    I created a security group within the reach of a PortGroup via the REST API. Now, I'm trying to add a vNIC, also via the REST API.

    To help illustrate, I have a JMTest1 VM with 1 vNIC connected to the PortGroup which is the scope of the security group. When I change this group the first item in the list that could be added to the security group is the first (and only) JMTest1 vNIC.

    AddvNICToSecurityGroup.PNG

    To add it via the REST API, I need to provide the following:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/ < member-moref >

    for example I need to understand what the < member-moref > for the vNIC to JMTest1 and this is what I have a problem with.

    If I add the vNIC through the user interface and then interrogate the security group it gives me below the answer:

    < securitygroup >

    < objectIdobjectId > securitygroup-xx < / objectId >

    < type >

    < typeName > SecurityGroup < / typeName >

    < / type >

    < name > JMTest7 < / name >

    < description / >

    < revision > 9 < / revision >

    < objectTypeName > SecurityGroup < / objectTypeName >

    < scope >

    < id > dvportgroup-xxxxx / < ID >

    < objectTypeName > DistributedVirtualPortgroup < / objectTypeName >

    < name > dv-xxxxx < / name >

    < / scope >

    < extendedAttributes / >

    < inheritanceAllowed > false < / inheritanceAllowed >

    < member >

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    < type >

    Vnic < typeName > < / typeName >

    < / type >

    < name > JMTest1 - NIC 1 < / name >

    < revision > 6 < / revision >

    < objectTypeName > Vnic < / objectTypeName >

    < scope >

    < id > vm-xxxxx / < ID >

    < objectTypeName > VirtualMachine < / objectTypeName >

    < name > JMTest1 < / name >

    < / scope >

    < extendedAttributes / >

    < / member >

    < / securitygroup >

    It seems that the < member-moref > for the JMTest1 vNIC is < objectId > 500758f6-b97b - a 7, 79 - 0c 04 - 996f53edf3f0.000 < / objectId >

    If I run now:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/500758f6-b97b-7a79-0c04-996f53edf3f0.000

    then the vNIC is successfully added to the security group. (yay!) So I am now left with the task of how to get

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    of a vNIC?

    I have looked at the object in the Mob vCenter and via PowerCLI, but cannot see how to derive from it.

    Anyone know the answer to that?

    The uuid vnic is created by concatenating the vm instanceUuid + '. ' + the last three digits of the vnic device key.  (The vnic is located in the area of the config.hardware.device of the virtual machine and the key will be to shape 4xxx, where xxx represents the 3 numbers you need).

  • Update the price of the products with the v3 API

    So I try to update all the prices of my product in my product catalog programmatically. I have gone through the documentation to the product price | Catalyst of business support
    and I see that there is no end point of update of the prices of the products.  I tried also just do a PUT option with an AJAX call and is not no longer works.  Can't BC really have a way to update the prices of the products via an application?  I did a lot of things with the API v3, so I assumed that any of this would be a given, but maybe I'm wrong.

    var myurl = "/ webresources/api/v3/sites/current/products / ' + myproductid + ' / price";
    var requestC = $.ajax({)
    URL: myurl
    type: "PUT."
    connection: "keep-alive"
    contentType: "application/json",
    MIME type: ' application/json ',.
    headers: {'Authorization': $.cookie ('access_token')},
    processData: false,
    data: JSON.stringify ({}
    "retailPrice': '533.00."
    'Flags': '533.00'
    })
    });

    You can't do that. The API of POSITION for the products had not been with the rest of the update of the POST API on the products. I already talked to the engineers on this subject. No update on when it will be executed has been given.

Maybe you are looking for

  • not to force quit, can not control, ctrl, esc

    Sorry not my macbook right now so I have to get the specifications on that a little later. But recently some programs block and freeze. I can't force them to leave their, I can't press command, Ctrl, esc to bring up the menu force quit. I can always

  • Satellite L650: Where to find the Vista drivers? How to increase memory GPU?

    Hello I have owned just a satellite L650. I installed windows vista.Where can I find the drivers?I downloaded Toshiba, but some drivers are missing. Can someone tell how to increase the mobility radeon HD5470 512 MB Max 1300 MB video card? Thank you

  • PDF print printer. Changed my color toners & now cannot print PDF files.

    I have a printer HP LaserJet CP1525nw color less than a year.  Have always been able to print PDF files. Changed my color toners & now cannot print PDF files. When I use the print icon, I have an option "save under" file.  Makes no difference if I sa

  • MD3200 interruptions of supply current

    Hello We had a few failures with MD3200 PSU (50 units), power supplies stop working while starting or if we get the power failure, the power supply can start working, after reviewing the questions, we discovered that when you disconnect the Raid Cont

  • Windows 7 starts with a black screen

    I am running windows 7 32-bit home premium, when I start my camera, it starts normally but when I'm in the log on screen, I just get a black screen and nothing happens, I tried to use the application and windows recovery windows problems but I have r