Returning a Tcl list to TestStand

Hi,
  I wonder if anyone can help me.  I would like to return the contents of a Tcl list to TestStand.  I am not sure how to go about it.  Are Tcl lists equivalent to an array in TestStand?  Can I return the entire list or must I return each individual element?  I also noticed that the custom TclParameter type can be modified.  Should I create an array of strings to catch the list being returned from Tcl.
Any help would be appreciated.
Thanks

A Tcl list is very similar to an array in TestStand.  There are some minor differences when dealing with multi-dimensional lists (lists of lists), but the concept is pretty similar.  The Tcl Example currently on the web does not support lists and all parameters must be strings.  You would then have to parse the string returned as the list in order to make an array.
For example, if you have a Tcl list x created with": set x [1 2 3 4]".  If you set an output parameter on the step to map to the variable x to Locals.ListAsString in TestStand, it would be populated with "1 2 3 4".  You would have to then split the string based on spaces, and you could convert it into an Array in TestStand.
Do not modify the TclParameter type (unless you also want to change the source code of the rest of the step).  Changing the source code for the step type would be an advanced topic, so unless you are experienced in TestStand and the Tcl C API, I wouldn't recommend it.
Allen P.
NI

Similar Messages

  • Parsing a TCL List with java

    I am writing a new client for a client/server application. The server was written in TCL and returns responses in TCL list format, in some cases as nested lists.
    Ex: {data { bob frank ted } 6 7}
    What I would like to do is pull out the nested part of the list {bob frank ted} and turn it into a java array {bob, frank, ted} and the remaining members into a second array {data,8,7}
    I have looked at regular expressions, the stringtokenizer, and various parsing classes - is there a single clean way of doing this?
    TIA
    Darrell

    Try something like this:import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    class Main {
        public static void main(String[] args) {
            String line = "{data { bob frank ted } 6 7}";
            String inner = myGroup(line);
            String outer = line.replace(inner, "");
            System.out.println(line+"\n=\n"+inner+"\n+\n"+outer);
        static String myGroup(String s) {
            Pattern pattern = Pattern.compile("\\{([^{}]*?)\\}");
            Matcher matcher = pattern.matcher(s);
            return matcher.find() ? matcher.group() : null;
    }Or perhaps: http://tcljava.sourceforge.net/docs/website/index.html

  • How-To Display the Number of Records Returned from a List to the User?

    We currently are using lists to identify accounts that meet various criteria. Because the territories vary from 4k to 60k customers the users have stated that they don't know the size of the list and therefore don't know if they need to refine the list. Currently they are exporting to Excel to look at the row count to see if they need to further refine their searches. This takes quite a while and while shuffling through many lists is a bit painful. Isn't there a way to just show the total records returned from the list down at the bottom of the screen where it allows you to see 25/50/75/100 records at a time?
    There is probably a simple way to do this but it is a large user dissatisfier at the time because we simply don't know how to make this show up. Again we are using lists and not analytics for simple lists at this time.
    - john
    Edited by: user11286597 on Jun 19, 2009 11:02 AM

    Thanks Bobb. I can't believe that one wasn't in R1 :)
    Is there a link to the items being worked in the next release by any chance?
    - john

  • Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator

    Issue : In sharepoint 2013, I am experiening below error while using filter in the list view due to the number of items in this list exceeds the list view threshold, which is 10000 items. Tasks that cause excessive server load (such as those
    involving all list items) are currently prohibited.
    Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator
    Could you please suggest a way to avoid this issue apart from incrementing the list view threshold limit .
    Prashanth

    Reorganizing content, or creating more specific views. sharepoint is warning you that the content is structured in such a way that it can cause performance issues, which should be addressed in some way.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Firefox shows the list of my e-mails, but won't open them - returning to the listing. Other browsers fine.

    Neither 'View your entire mail list' nor clicking on any email item works - the Firefox browser returns to the list of e-mails.

    Not sure which site you're using, so this is necessarily a bit generic...
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    This will open a dialog where you can remove the cookies individually.
    Then try reloading the page. Does that help?

  • Where do we find open return sales order list

    HI gurus
    where do we find open return sales order list whihc have not yet been issued to credit note. and where do we find

    hello, friend.
    use VA05.  you can specify the document type by clicking on 'further selection criteria' on the initial screen.  you can further click 'open orders'.
    when the sales returns is displayed in the following screen, look for the status column.  if the entry is 'A', then no inbound delivery has been done yet (but you could not say if credit memo has been issued or not).  if the entry is 'B', inbound delivery has been done but not the credit memo.  if the entry is 'C', both inbound delivery and credit note have been done.
    regards.

  • Need help returning processor task list.

    I'm new to KEXT/Kernel programming and Xcode, so I'm sure these are fairly beginner questions, but I'm having some trouble.  I'm trying to return a list of processor tasks, so I can test different things such as process id's, file descriptors, etc.
    I'm not sure what functions would be useful for me.  Is there some way that I would be able to return a list of all running processor tasks and/or their information?  Would someone be able to point me in the right direction?

    Yeah, usually it helps me out quite a bit, but I've been googling for over a week, and I get a whole lot of nothing.  Everything that I've actually been able to find uses outdated headers and functions that don't exist anymore.  Maybe my google skills just aren't very good for this area, since I *am* new to this after all...
    I figured it would be much more time-efficient to just ask the dev community.  Any insight would be appreciated.

  • What is the data type of the value returned by the List box prompt in crystal

    Post Author: Mudit Kothiyal
    CA Forum: Formula
    Hi all,
    I am creating a report which has a list box prompt. When I am selecting a single value from the list box the report is working fine, but when I am selecting multiple values its not returning any data( although data is there). Does anyone know how the prompt values are passed to the report query by the crystal. I kno it passes the value to the report as an array. But how does it pass the value to the report query.
    I am using command query to fetch data from the DB.
    Crystal Report Version: Crystal Report XI R2.
    DB: Oracle 10g
    Also does anyone know how to pass the values of the list box prompt to the report query in comma seperated format.
    Thanks & regards,
    Mudit

    Post Author: rcoleman
    CA Forum: Formula
    In regards to the latter part of your question
    The following examples are applicable to Basic and Crystal syntax.
    The examples assume that list is a String array consisting of the 3 elements: "Chocolate", "Vanilla" and "Strawberry".
    Join (list)
    Returns the String "Chocolate Vanilla Strawberry".
    Join (list, "***")
    Returns the String "Chocolate**Vanilla**Strawberry".
    Not sure about the first part of your question,sorry.

  • How to access the result list in teststand after execution using labwindows​/cvi

    I am developing a user interface in labwindows/cvi that runs multiple teststand sequence files and would like to combine their reports (generated in teststand) into a single file at the end of a UUT. What is the best way to do this? At the moment, I'm trying to access the result list local variable after the execution has ended using API calls from labwindows/cvi and an end-of-execution callback event but those run-time variables do not exist anymore. How do I get a hold of the result list array at the end of an execution? I would like to grab this variable and pass it along from sequence to sequence using labwindows/cvi and not teststand itself. Is this possible? Any help would be great.
    Thanks in advance,
    Luis

    Hey Luis,
    Check out the response to this thread at the NI TestStand board here!

  • Cannot return to message list while in a message without clicking on "compose new message icon" and then cancelling it.

    After updating to 8.1 from 8 i cannot return to my message list from inside a message without clicking on the "compose new message" icon and then canceling out of that.
    Also, where it used to say return, it now says "Edit" and the word "Message" on the top of the screens is scruched together.
    Here is a link to a screenshot of my phone from the main messages listing.
    And here is a link to a screen shot of my phone from within a message.

    Hi Sir,
    Code snippet for reference:
    Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As Boolean)Handles OutlookApplication.ItemSend
    Try
       Dim SentMailItemObject As Outlook.MailItem
    SentMailItemObject = CType(Item,
    Outlook.MailItem)
    ‘Can
    we add here User property in Mail Object Reference?
     Catch ex As Exception
    MsgBox(ex.Message, MsgBoxStyle.Information)
     End Try
    End
    Sub

  • Can not user Raw value as NULL return in Select List

    Help me!
    I recently converted my application to take advantage of the sys_guid() function that oracle offers over the sequence/trigger option.
    However, I user a hierarchical set up and I need to be able to insert a RAW value of '00' if the user does not select something in a select list. When I try to do this, I get an "ORA-01465: invalid hex number" error.
    I've also tried to return 00 and HEXTORAW(0) but that didn't work either. Infact 00 return a can not insert null value. Please help as I believe the sys_guid function is the best choice if I can make it work.

    Hey Scott, my first name is Daniel.
    Here is in detail the reason for which I want to be able to work with RAW. As everyone knows, most of your tables your going to have a UID. In general this is going to be a NUMBER column into which you will insert values that populate from a trigger getting the nextval of a sequence and returning the result into the NUMBER column of the row being inserted.
    This, however, requires a trigger and a sequence. Not that that's really a bad thing, I just think it can be done better. All we are really after here is a UUID or GUID. The thing is if you used a sequence to generate this value, you don't have a good way of knowing that the number is truly unique. You'll learn this as soon as you try to merge with a table from another database or do something else of the like.
    What I prefer to do is to use Oracle's SYS_GUID function when I create a table. To use this function you create a RAW(16) DEFAULT SYS_GUID(). From that point you don't even need to reference the column on insert, unless you're inserting into * and in that case you just specify DEFAULT. The use of sys_guid means I don't need a trigger and I don't need a sequence, and the result will always be unique, regardless of the DB.
    In APEX, and elsewhere, the way you use a select list is with a display value and a return value. An example would be, emp_name as the display value and emp_id as the return value. In my case, the emp_id would be the RAW values returned by the SYS_GUID() function when the employee was created. But it's not working because of the RAW value.
    I know that APEX can enter the value in session state that is returned from a RAW column because I did a test earlier and it worked. I would have to see it in session state for debugging. *** The problem is in creating a new record. ***
    APEX really does not have to work with the RAW column because the default value has been specified. But for some reason, it does not like it anyway. I found this problem when working with parent/child relationships in my tables.
    Lets say there are three columns GUID, TITLE, and PARENT. When creating a new record, I allow the user to select its parent. If the new record IS a parent then they would leave it as the default '- Is Parent -' and the PARENT column would be left as NULL. But because the GUID is RAW to make the relationship work with the parent, the PARENT column would be RAW too and APEX gives me the errors I was telling you about before.
    Sorry for going on so long. I don't know if I even got my point across. ;) Please let me know if you need me to do something on my part to further demonstrate my point. I would be happy to set up a demo if requested.

  • Returning a numeric list

    We have an application that expects certain columns within our tables store a comma seperated list of numeric values. Our database however stores that information within lookup tables. To return that list I have opted for the below function within Oracle. My only issue though is I am hardcoding the table name(LKP_PROP_PRODSEG) and column names(PROPERTIESID and PRODSEGMENTID) for the cursor and there is more than one table so this solution of mine would mean a different function for each instance. How could I instead use function arguments for those values? Or is this the best avenue to be taking for the end goal?
    CREATE TABLE LKP_PROP_PRODSEG
    PROPERTIESID NUMBER DEFAULT 0 NOT NULL,
    PRODSEGMENTID NUMBER DEFAULT 0 NOT NULL
    INSERT INTO LKP_PROP_PRODSEG (PROPERTIESID, PRODSEGMENTID) VALUES (4, 1);
    INSERT INTO LKP_PROP_PRODSEG (PROPERTIESID, PRODSEGMENTID) VALUES (4, 2);
    INSERT INTO LKP_PROP_PRODSEG (PROPERTIESID, PRODSEGMENTID) VALUES (4, 3);
    INSERT INTO LKP_PROP_PRODSEG (PROPERTIESID, PRODSEGMENTID) VALUES (4, 4);
    CREATE OR REPLACE FUNCTION GETLKPPRODSEGLIST ( arg_propID IN NUMBER )
    RETURN VARCHAR2
    IS
    idList VARCHAR2(4000);
    CURSOR GETID IS SELECT PRODSEGMENTID FROM LKP_PROP_PRODSEG WHERE PROPERTIESID = arg_propID;
    BEGIN
    idList := null;
    FOR i IN GETID LOOP
         IF idList IS null THEN
              idList := i.PRODSEGMENTID;
         ELSE
         idList := idList || ',' || i.PRODSEGMENTID;
         END IF;
    END LOOP;
    RETURN idList;
    END;
    SELECT GETLKPPRODSEGLIST(4) FROM dual;

    Check out stragg at asktom.oracle.com.
    SELECT stragg(prodsegmentid)
      FROM lkp_prop_prodseg
    WHERE propertiesid = 4;However, it doesn't take care of the fact that you have to know what table your data is in.
    Apparently Jens and Kamal posted a bit more promptly than I did...
    Message was edited by:
    scott.swank

  • Converting Year in YYYY format for return in select list

    Using Apex 4.1.1 on Linux (Apex Listener on glassfish)
    I have a table with week ending dates and use this table for as my LOV.
    The select list comes up like 12-SEP-12 when I check the value attribute in Firebug. Problem is that this comes up as year 0012 instead of 2012 when I try to use it in my PL SQL code to save it to a table.
    Is there a way I can get the return value for the year in YYYY format for return value in select list? Have tried to_date(dt, 'DD-MON-YYYY') with no luck.
    Cheers.

    All APEX session state values are held as VARCHAR2s. Explicit conversion to and from DATE values using specified formats is recommended. Convert to VARCHAR2 in the LOV query:
    select to_char(week_ending, 'DD-MON-YYYY') l, to_char(week_ending, 'YYYY-MM-DD') v from ...and to DATE in the PL/SQL process code:
    ...to_date(:p1_week_ending, 'YYYY-MM-DD')...I'm trying to standardise on using ISO 8601 representations for non-displayed date values. These are unambiguous, sort properly using character semantics, and are compatible with other systems and technologies.

  • Import User List in TestStand 1.0

    Looking for a solution to import users list from a text file using TestStand 1.0 ?

    [Rough translation then...]
    Hi,
    There are 2 solutions with your problem
    1) Knowing that the user details are stored in the file users.ini (cf..\Teststand\Cfg), you can format your text file to match the tags used in the .ini file, and drop this in as a replacement.
    [How you're going to handle the passwords which is held in another encrypted file though is another problem!!]
    2) You can also use TestStand API which exposes the User classes, UserList. However the API one of TestStand 1.0 being less complete than that of the versions 2.x and 3.x you will unfortunately be limited in the utility you could build.
    [The main lacking thing is the ability to delete users]
    Sincere greetings
    [End translation]
    Sacha Emery
    National Ins
    truments (UK)
    // it takes almost no time to rate an answer

  • SDK 16 using new AOT on iOS issues: unresponsive on return from CameraRoll, list skins confused

    I am having issues with the "-useLegacyAOT no" (now default) and iOS apps. Under SDK 15 using "-useLegacyAOT yes" no issues. With SDK 16 the app has issues with many things, for example datagrid/list skins don't work - if you manually skin using setRendererStyle, it seems ALL the skin states are using the Selected skins, and the upSkin state uses the selectedUpSkin skin as far as I can make out (in tests this seems to be the case). Another is the app becomes unresponsive to touch on returning from cameraRoll, camera to take a picture or video to record a video - my app is full screen, when it returns from one of these, it is no longer full screen (the top info bar is visible), and I am using stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE when returning from these calls,  which worked under the legacy AOT. Since the app is unresponsive, the only option is to reboot the iphone and restart the app - not really an option.

    Just catching up with testing using the latest SDK 17 (115) and finding the following: With SDK 16/17 on iOS the app has issues with datagrid/list skins - if you manually skin using setRendererStyle, it seems ALL the skin states are using the Selected skins, and the upSkin state uses the selectedUpSkin skin as far as I can make out (in tests this seems to be the case).
    I am also noticing that sometimes on return from the camera, cameraroll, and video camera, the app will sometimes hang - not always. I am continuing to test. The hang actually closes the app quickly.

Maybe you are looking for

  • How to do reconcilization of ODS data and CUBE data

    Hi All, How to do reconciliation of ODS data and CUBE data,I know how to do reconciliation of R/3  data and BW data. Regards. hari

  • Problem on uploading blob file to database using KUBA's example

    I tried running KUBAS's example found on this thread [Solved]How to upload / download BLOB images ADF - JSF but a lot of exceptions occured... I'm using jdev 10.1.3.2.0(i put my jdev's libraries) and oracle database 10g as i wrote in the other thread

  • Report related to Handling Unit

    Hi Team, Is there any standard transaction code / Reports available in R/3 to extract the details of all  HU numbers created for list of Purchase Order, Sale order .prodution orders and Outbound Deliveries. Please help me to get this details. Cheers.

  • Standby RFS issue

    At standby database RFS is not working.Thogugh archivelog at production database are there after 4749..4750,4751,...4768. SQL> set linesize 1000 SQL> select process,client_process,status,sequence# from v$managed_standby; PROCESS                     C

  • Advise password protected local DB

    Could you please advise me some free DB that supports JDBC and could be password protected or it content could be coded.