How can I create a custom data type that is a 2D array of string by using TestStand API?

Hi all,
I'm new in TestStand:
I'm able to create a custom data type that is a 1D array of string but I cannot find the way to create a 2D array of string.
Can anyone help me?
Thank you in advance.
Federico

I made it!!
Indeed my 2D array is an item of a container:
/*  Create a new container */
RunState.Engine.NewPropertyObject(Locals.NewDataType,PropValType_Container,False,"",0)
/*  Create an array of strings as item of the container */
Locals.NewDataType.NewSubProperty("Array_2D",PropValType_String,True,"",0)
/*  Reshape the array as an empty 2D array */
Locals.NewDataType.GetPropertyObject("Array_2D",0).Type.ArrayDimensions.SetBoundsByStrings("[0][0]","[][]")
being:
NewDataType a local property (type Object)
Attachments:
AddCustomTypeAndCreateFileGlobals.seq ‏11 KB

Similar Messages

  • New Effective CAL essay: How do I create an abstract data type in CAL?

      <p><strong>How do I create an abstract data type in CAL?</strong></p>  <p> </p>  <p>An <em>abstract data type</em> is one whose internal representation can be changed without needing to modify the source code of client modules that make use of that type. For software maintainability, it is a good idea to make a type that is subject to change or enhancement into an abstract data type. Another reason to create an abstract data type is to enforce invariants for values of the type that can only be ensured by using <em>constructor functions</em> (i.e. functions that return values of that type).</p>  <p> </p>  <p>In principle it is simple to create an abstract data type in CAL. For an algebraic data type, make the type constructor public and all data constructors private. For a foreign data type, make the type constructor public and the implementation scope private. If a scope qualifier is omitted, the scope is taken to be private.</p>  <p> </p>  <p>For example, the Map algebraic data type has the public type constructor Map and the data constructors Tip and Bin are each private, so it is an abstract data type.</p>  <p> </p>  <p>/** A map from keys (of type {@code k@}) to values</p>  <p>   (of type {@code a@}). */</p>  <p><strong>data</strong> <strong>public</strong> Map k a <strong>=</strong></p>  <p>    <strong>private</strong> Tip <strong>|</strong></p>  <p>    <strong>private</strong> Bin</p>  <p>        size      <strong>::</strong> <strong>!</strong>Int</p>  <p>        key       <strong>::</strong> <strong>!</strong>k</p>  <p>        value     <strong>::</strong> a</p>  <p>        leftMap   <strong>::</strong> <strong>!(</strong>Map k a<strong>)</strong></p>  <p>        rightMap  <strong>::</strong> <strong>!(</strong>Map k a<strong>);</strong></p>  <p><strong> </strong></p>  <p><strong> </strong></p>  <p>There are a number of invariants of this type: the size field represents the number of elements in the map represented by its Bin value. The keys in leftMap are all less than key, which in turn is less than all the keys in rightMap.  In particular, non-empty Map values can only be created if the key parameter type is a member of the Ord type class.</p>  <p> </p>  <p>Values of the Map type can be created outside the Cal.Collections.Map module only by using constructor functions such as insert:</p>  <p> </p>  <p>insert <strong>::</strong> Ord k <strong>=></strong> k <strong>-></strong> a <strong>-></strong> Map k a <strong>-></strong> Map k a<strong>;</strong></p>  <p><strong>public</strong> insert <strong>!</strong>key value <strong>!</strong>map <strong>= ...</strong></p>  <p> </p>  <p>The owner of the Cal.Collections.Map module must ensure that all invariants of the Map type are satisfied, but if this is done, then it will automatically hold for clients using this function.</p>  <p> </p>  <p>Some examples of foreign abstract data types are Color, StringNoCase  and RelativeDate:</p>  <p> </p>  <p><strong>data</strong> <strong>foreign</strong> <strong>unsafe</strong> <strong>import</strong> <strong>jvm</strong> <strong>private</strong> "java.awt.Color"</p>  <p>    <strong>public</strong> Color<strong>;</strong></p>  <p><strong> </strong></p>  <p><strong>data</strong> <strong>foreign</strong> <strong>unsafe</strong> <strong>import</strong> <strong>jvm</strong> <strong>private</strong> "java.lang.String"</p>  <p>    <strong>public</strong> StringNoCase<strong>;</strong></p>  <p><strong> </strong></p>  <p><strong>data</strong> <strong>foreign</strong> <strong>unsafe</strong> <strong>import</strong> <strong>jvm</strong> <strong>private</strong> "int"</p>  <p>    <strong>public</strong> RelativeDate<strong>;</strong></p>  <p> </p>  <p>The private implementation scope for Color means that a foreign function whose type involves Color can only be declared in the Cal.Graphics.Color module where the Color type is defined. A foreign function declaration involving the Color type relies on the compiler knowing that the Color type corresponds to java.awt.Color to resolve the corresponding Java entity i.e. it must know about the implementation of the Color type. Having a private implementation scope means that the Color type can be changed to correspond to a different Java class, or indeed to be an algebraic type, without the risk of breaking client code.</p>  <p> </p>  <p>In all these three cases there are useful, and different, design reasons to adopt a private implementation scope:</p>  <p> </p>  <p>For RelativeDate, the Java implementation type int represents a coded Gregorian date value in the date scheme used by Crystal Reports. Not all int values correspond to valid dates, and the algorithm to map an int to a year/month/day equivalent is fairly complicated, taking into account things like Gregorian calendar reform. Thus, it is desirable to hide the implementation of this type.</p>  <p> </p>  <p>For StringNoCase, the implementation is more straightforward as a java.lang.String. The reason to adopt a private implementation scope is to ensure that all functions involving StringNoCase preserve the semantics of StringNoCase as representing a case-insensitive string value. Otherwise it is very easy for clients to declare a function such as:</p>  <p> </p>  <p><strong>foreign</strong> <strong>unsafe</strong> <strong>import</strong> <strong>jvm</strong> "method replace"</p>  <p>    replaceChar <strong>::</strong> StringNoCase <strong>-></strong> Char <strong>-></strong> Char <strong>-></strong> StringNoCase<strong>;</strong></p>  <p> </p>  <p>which does not handle case-insensitivity correctly, but is a perfectly valid declaration. This declaration results in a compilation error when it is placed outside the module in which StringNoCase is defined because of the private implementation scope of StringNoCase.</p>  <p> </p>  <p>For Color, the issue is somewhat more subtle. The java.awt.Color implementation type is semantically the same as the CAL Color type. The problem is that java.awt.Color is mutable (since it can be sub-classed to create a mutable type). It is preferable for a first-class CAL type to not be mutable, so we simply make the implementation scope private to ensure that this will be the case. </p>  <p> </p>  <p>A somewhat less encapsulated kind of abstract data type can be created using <em>friend modules </em>and <em>protected</em> scope. For example, if an algebraic type is public, and all its data constructors are protected, then the data constructors can be accessed in the friend modules of the module in which the type is defined. Effectively this means that the implementation of the semantics of the type stretches over the module in which the type is defined, and all of its friend modules. These must all be checked if the implementation of the type is modified. </p>  <p> </p>  <p>Given the merits of abstract data types discussed above, it is perhaps surprising that most of the core types defined in the Prelude module are not abstract data types. For example: Boolean, Char, Int, Double, String, List, Maybe, Either, Ordering, JObject, JList, and all record and tuple types are non-abstract types. </p>  <p> </p>  <p>There are different reasons for this, depending on the particular type involved. </p>  <p> </p>  <p>For example, Boolean, List, Maybe, Either and Ordering are all rather canonical algebraic data types with a long history in functional languages, with many standard functions using them. They are thus guaranteed never to change. In addition, their values have no particular design invariants that need to be enforced via constructor functions. Exposing the data constructors gives clients some additional syntactic flexibility in using values of the type. For example, they can pattern match on the values using case expressions or let patterns.</p>  <p> </p>  <p>Essentially the same explanation holds for record and tuple types. Although non-tuple record types are less canonical, they do correspond to the fundamental notion of an anonymous named-field product type. The "anonymous" here simply means that the programmer can create an entirely new record type simply by creating a value; the type does not have to be declared anywhere prior to use.</p>  <p> </p>  <p>Char, Int, Double, String, JObject and JList are foreign types where in fact part of the semantics of the type is that we want clients to know that the type is a foreign type. For example, we want clients to know that Prelude.Int is essentially the Java primitive unboxed int type, and has all the semantics you would expect of the Java int type i.e. this is quite different from RelativeDate which is using int as its implementation type in a very tactical way that we may choose to change. One can think of a public foreign type declaration with public implementation scope as simply introducing the Java type into the CAL namespace.</p>  <p> </p>  <p>One interesting point here is with CAL&#39;s naming convention for public foreign types. We prefix a type name by "J" (for "Java") for foreign types with public implementation type such that the underlying Java type is mutable. This is intended as mnemonic that the type is not a pure functional type and thus some caution needs to be taken when using it. For example, Prelude.JObject has public Java implementation type java.lang.Object.</p>  <p> </p>  <p>In the case where the underlying Java type is not mutable, we do not use the prefix, since even though the type is foreign; it is basically a first class functional type and can be freely used without concern. For example, Prelude.String has public Java implementation type java.lang.String.</p>  <p> </p>  <p>In the case where the implementation type is private, then the fact that the type is a foreign type, whether mutable or not, is an implementation detail and we do not hint at that detail via the name. Thus Color.Color has as its private Java implementation type the mutable Java type java.awt.Color. </p>  <p> </p>  <p>When creating abstract data types it is important to not inadvertently supply public API functions that conflict with the desired public semantics of the type. For example, if the type is publicly a pure-functional (i.e. immutable) type such as Color, it is important not to expose functions that mutate the internal Java representation.</p>  <p> </p>  <p>A more subtle case of inadvertently exposing the implementation of a type can occur with derived instances. For example, deriving the Prelude.Outputable and Prelude.Inputable type classes on a foreign type, whose implementation type is a mutable Java reference type, allows the client to gain access to the underlying Java value and mutate it
    (by calling Prelude.output, mutating, and then calling Prelude.input). The solution in this case is to not derive Inputable and Outputable instances, but rather to define a custom Inputable and Outputable instance that copies the underlying values.</p>

    Hi Pandra801,
    When you create a the external content type, please try to add a filter based on your select statement.
    http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-filters-finders/
    Or, try to create a stored procedure based on your select statement, then create ECT using the SQL stored procedure.
    A step by step guide in designing BCS entities by using a SQL stored procedure
    http://blogs.msdn.com/b/sharepointdev/archive/2011/02/10/173-a-step-by-step-guide-in-designing-bcs-entities-by-using-a-sql-stored-procedure.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How can I create a custom field in contacts and have it appear in ICal?

    How can I create a custom field in contacts (death date) and have it appear in calendar?
    Birthdays seems to work fine but I'd like to do the same for a custom field called Date of Death

    By default, iTunes convert files to type AAC which has an extension of .m4a
    For iTunes to recognize them as Audiobook files, the extension needs to change from .m4a to .m4b
    This can be done a number of different ways. Here are 2 (beginner and advanced)
    . simply, by renaming each file from windows explorer
    . more complex, by using Start/Run/cmd to get a "DOS" type window,
    using the command "cd" to change to the directory that your files are in
    and entering "ren *.m4a *.m4b"

  • How can i create a custom table in to my banking services server

    I am having product type and account type details for those things I need to create a table
    Product Id.                 Account Type
    DP_PYGO_P     21
    DP_BASIC     25
    DP_UNLIMIT     24
    DP_ADVANTG     17
    DP_SAV                     34
    DP_TBILL                     54
    DP_USDCHQ     19
    DP_FREEDOM     52
    For the above fields how can i create a custom table into banking services server

    Transaction SE11, maybe? I don't really see the problem, unless you have never created a transparant table before...

  • How can i create a custom control, indicator

    This is FredFred,
    How can i create a custom control switch with 3 or more options,
    OFF
    ON
    STANDBY
    Other than rocker, slide, or toggle switch, are there other switches that we can use, hence, the question of creating a custom switch.
    Also, is there a way to create an indicator with two options. Enclosed is a jpeg with an example of what i need
    Thanks in Advance
    Attachments:
    sample switches_displays.bmp ‏720 KB

    Hello.
    Boolean controls can only have 2 possible values, true or false, and there is no way to add more values to them.
    If you need more values, then you must use a numeric control (or a string, but I tend to like numerics better, although strings could be just as useful).
    There are several types of numeric controls you could use to provide 3 or more options. Attached is a VI which shows a ring, a knob, and a slide each with 3 possible values. In your code, you would then perform different actions depending on the numeric value of your control.
    Hope this helps,
    Alejandro
    Attachments:
    NumericsWith3Options.vi ‏14 KB

  • How can i create a custom object 0REQUID

    Hello all,
    I have a question. How can i create a custom object 0REQUID? Is it possible to create it without actvating BI content?
    Thanks in advance..

    Hi,
    If you want to create a new info object which is a copy of 0REQUID. then
    Go to > info object key figure / Chara catalogue> create new key figure / Chara --> enter 0REQUID in front of TEMPLATE and you will get all details of 0REQUID in your new key figure / chara.
    Hope this helps.
    Assgn pts if helpful.
    Regards
    Edited by: chintamani deshmukh on Apr 14, 2008 11:09 AM

  • How can I create a custom sized video in PP cs6?

    How can I create a custom sized video in PP cs6? I have read references to the "desktop" setting but cannot find it. I am trying to find the right settings for a 1080 px x 486 px video (which I need to qualify for hi res on Vimeo).  I need to output a 450 x 1000 px video for
    my website. Ideally, I'd like the sequence settings as well as the output settings. I am using still shots- no actual video.

    What are the exact properties of the still images, particularly the pixel dimensions and pixel aspect ratio (PAR).* The letterboxing (black bars top & bottom) is most likely a result of a mismatch in these settings. If this is the case, then the easiest fix is to make sure not only the dimensions but the PAR match.
    Say for instance your source images are 1000x1000 with a PAR of 1.0 (square pixels) and your sequence is set also set to 1000x1000 but with the PAR set to D1/DV NTSC (0.9091), the result would be letterboxing as seen here:
    *if you're not sure about the PAR of your source images, right click on one of them in the Project panel and select Properties.

  • How can i create a custom Audio Language name for video?

    I have create a dvd with menu and vidoe (Audio 1 is sing a song , and Audio 2 is only music)
    but i cant define" a audio name for andio that is mute,
    my question is How can i create a custom Audio Language name for video?"
    Anyone can help , thank you so much for reading !!

    Thanks Stan Jones,
    Anyone can tell me a soluation and some better show up method to present that the user is changing a audio track in correct name ...
    Or Encore can do a pop-up message to show the user's selection or not ?_? (i don't know)

  • How can I create a custom feature, which will automatically take a custom master page while creating a site ?

    Hello ,
    I am new in Sharepoint development . I am trying to create a Sharepoint feature to Activate master page automatically while creating the site .Below mentioned code I am using to do this . 
    But When I am creating any site under site collection .It is not applying automatically . I have to manually Activate that feature . 
    SPSite site = properties.Feature.Parent as SPSite;
    SPWeb rootWeb = site.RootWeb;
    Uri masterUri = new Uri(rootWeb.Url + "/_catalogs/masterpage/mycustom.master");
    rootWeb.MasterUrl = masterUri.AbsolutePath;
    rootWeb.CustomMasterUrl = masterUri.AbsolutePath;
    rootWeb.Update();
    How Can I create a feature that can activate the master page at same time of site creation under Site collection ,Without any manual work .. 
    Thanks in Advance .. 

    Hi,
    You can associate master page during feature activation as follows:
    http://social.technet.microsoft.com/wiki/contents/articles/19933.sharepoint-2010-set-a-custom-master-page-during-feature-activation.aspx
    Then, you can use feature stapling to apply automatically on site creation:
    http://blogs.msdn.com/b/kunal_mukherjee/archive/2011/01/11/feature-stapling-in-sharepoint-2010.aspx
    Thanks,
    Avni Bhatt

  • How do I pass a custom data type to a dll in TestStand?

    I need to add a new feature / function to an existing TestStand program.  The original program uses a custom data type for the LabVIEW VISA (serial com) reference, as shown below.  I want to use the StationGlobals.VISA_Ref in my call to the dll.
    The VI prototype is shown below.  The VISA Ref In is a basic VISA reference control (serial comm) from LabVIEW.  Nothing special.
    I am stuck at trying to figure out how to configure the VISA Ref In parameter...  I've searched this forum and the only posts which seem close to what I am attempting to do did not have any responses... I hope to be "luckier".. 
    Attachments:
    LVIOctrl.PNG ‏23 KB
    VIprototype.PNG ‏20 KB
    ConfigParm.PNG ‏37 KB

    What you are describing is similar to this, right?  http://digital.ni.com/public.nsf/allkb/22BF02003B4588808625717F003ECD67
    I tried something similar to what you described.... unfortunately, TestStand is holding on to the serial port and has not let go yet...  Which causes a run-time error within the LabVIEW code (dll) because the resource it is trying to use (COM port) is not available... 
    I will check the code and see whether they use the serial port after it gets to the new feature...  Otherwise, I may close the port, use it within LabVIEW (dll), close it and then re-open within TestStand...  That's why I wanted to pass the reference directly...  Although, the way you describe it, it may be possible to pass that same reference indirectly and get the dll to work without having to play with closing / opening references.  I'll explore that tomorrow.
    Thanks.

  • How can I create a custom repeat ("second Wednesday") in Calendar in calender

    I have some repeating events (I believe transferred from previous phone) where the "repeat" line says "Custom" and the "every second Wed." (for example" carried over and plots correctly on the iPhone calender, but I don't see any way to CREATE a custom repeat like that.  Is it possible?

    There is not a selection for every second Wednesday, but you can repeat the event every two weeks as that is a choice. Hope this helps :)

  • How can I create a custom step that does nothing but make calls to a dll

    What I'd like to end up with is a Custom step that
    1. Takes several string parameters
    2. Makes several calls to functions in a DLL
    3. Returns and stores error codes returned from the function
    I've been through the KB article "How Do I Make a Custom Step Type".
    This got me about halfway there; while helpful, it didn't provide a
    reference for some of the questions I had, specifically:
    1. What sort of sequence action type should I start with (to use as a template)?
    2. If I start with a "Call Executable", do I need to specify the module when I incorporate the step into the sequence?
    3. How does one pass parameters in and out of a custom step type?
    4. How does the step type report progress/errors to the report?
    Thanks in advance.
    Mike

    Hi,
    To interface to a DLL you will need to use either the DLL Adapter or the CVI Adapter, not the Call Executable adapter.
    Have you been through the Using LabWindowsCVI with TestStand manual. This should answer all your questions, all the chapters are relevant.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How do I create a custom screen to show after a person logs in we are using windows 7

    I have been asked to create a custom welcome screen that would load after a person logs into their computer. This screen is to have links to applications.  But I need this to show after they log in and before they see their desktop. and I
    need it to be full screen size.
    this is mandatory:
    I need this to show up AFTER people have logged in, and b4 they see their Desktop.  auto adjustment to fill the screen  and the screen will have multiple images with them being hyperlinks to the various applications. The kicker is we
    are running windows 7.  Of course one of the links will go to the desktop.(basically shut down the window screen)
    I seem to recall there is a way of doing this using group policy to trigger a screen and possible using HTA or VB6 method or a scripted page but I'm not sure how to accomplish this...
    This is coming from upper upper management  and they have it mocked up in access 2013.
    How do I do this or even accomplish this screen for windows 7.
    PS:
    I realize that windows 8/8.1 has this type of thing built in, but the company is NOT ready for windows 8/8.1

    I built a System Message HTA for my previous employer that was used in a computer lab setting. It was a nice way to inform the users about things happening in the lab, as well as a nice way to ensure people knew who to contact if there were problems.
    The HTA lived on a network UNC and each computer had a shortcut to the HTA in their All Users Startup folder (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup). While you could push the shortcut with GPP, likes the others recommended, that's
    about all you should do with Group Policy. This was neat - I had the HTA run custom .cmd files (in a hidden window) when it loaded (the Windows_onLoad subroutine) and then when it was closed by the user (button press that called an ExitProgram subroutine).
    This allow me to capture who was logged on, how long the HTA was open, and what computer they were using. In a computer lab such as that one, it was nice to have additional way to track who was using what computer and when. Good luck and let us know if there
    are any more questions - I really enjoyed that project.
    Edit: Added additional info.

  • Can you create a custom iBook widget that accesses the ipad's camera?

    I am wanting to know if anyone has created a custom iBook widget that accesses the iPad's on-board camera? I will be creating and custom coding the widget myself. Thanks any feedback is welcome.

    nbal
    Premiere Elements offers disc menus for only
    DVD-VIDEO on DVD disc
    AVCHD on DVD disc
    or
    Blu-ray disc format on Blu-ray disc.
    The only exception is the feature named webDVD which is in reality a flash file with menus. Until proven otherwise, no way to get that on the iPad 2 unless with viewing from a web browser?
    http://help.adobe.com/en_US/premiereelements/using/WSeffff8bffc802084-7cb60a1912fd358c4a5- 7ff7.html
    ATR

  • How can I create a custom formula that checks if a PC file exists? (CR10)

    Post Author: lgayosso
    CA Forum: Formula
    Hello,
    I need to create a formula that validates whether a PC file exists or not to display a message ('File Found' or 'File not found'). I created a custom formula that displays the appropriate message based on a report field composed of the FilePath + FileNameWithExtension that works correctly if the field includes a value or not (Basic Syntax below):
    If {ctDocumentImages.ImgPath} <> ""  Then    Formula = "File Found"Else    Formula = "File not found"End If
    Now I want to validate that the {ctDocumentImages.ImgPath} value corresponds to an existing file; that is, I need to check that the file specified at {ctDocumentImages.ImgPath} location truly exists to determine that the file is actually 'found'. How can I accomplish this?
    Any help is greatly appreciated,
    Lucio

    Post Author: lgayosso
    CA Forum: Formula
    [email protected]:
    ( my file connection name was CrystalReports_Reports.File Name)  I have generated a report, that shows all my rpt file names, size, last updated.... etc )
    Go to database expert, create new connection, select file system data, your starting directory will be
    genplex\E\JEMS51_Server\Imaging\Int\2007\.....  you can then report on the file names found in that directory / subdirectory, etc...  When creating the link you can select all files, or just *.rpt  for example
    Ok, so you define more than one connection on your report to be able to access the File System Object, right? The problem is that my reports are generic and meant for distribution for customers where no generic base folder will exist. The value of the starting directoy is then unknown, FilePath+Name then can be any value.
    Lucio

Maybe you are looking for

  • Copy purchase order text to production order text

    Hello, purchase order text should be copied to production order text so that the end user can see and edit the text before saving the production order. I'm trying to do it with exit PPCO0006. I can read the purchase order text with read_text but cann

  • How to recover cleared event logs in windows server 2003 ?

    Hi All, i accidentally cleared all of event logs in my server, is there any solution or other thing that can recover it ? thank you Best Regard, Lim Siaw Liang

  • Wireless Bridge Aironet 1240

    Hi all, is it possible to create a wireless bridge between 2 AP of different brands? I need to create a bridge between an Aironet 1240 and a Telecom Italia router (Alice Gate VoIP 2 Plus Wi-Fi), where the Alice Gate is the AP and the aironet works in

  • Is it possible to upload a picture from a real estate site?

    Is it possible to upload a picture from a real estate site?

  • No Workitems in UWL

    Hello friends, I have customized the ESS leaverequest using the standard WF12300111. Workitems for leave approve appear in my SAP Business Workplace, but not in the SAP NetWeaver Universal Worklist (UWL). I am using EHP4. What would be the reason? Ed