Accessing the elements in the Runstate.S​equence.Ma​in array

I want to change the "Record Result" property of a step on the fly. I thought I could use the function TS_SetValPropertyBoolean for this. As a lookup string I used "Runstate.Sequence.Main[i].RecordResult" but this caused a run-time error. I found that there is a step property RecordResult from Programmer's Help. Runstate.Sequence.Main is an array of containers and the elements of the array are the steps of the main sequence. TestStand prefers to use ...Main["Step Name"] but since I have hundered of steps to manipulate I prefered to use the indices in a loop instead of writing a line of code for each step.
How can I do this operation in a "compact" way? I just want to turn on/off the result recording of some steps
at run-time.
I think I made my problem clear.
Any comments, suggestions welcome.
Thanks in advance..
Eren

Hi Eren,
you've got the right idea, you just need to evaluate the string you're passing.
You can actually do it in a statement -
Evaluate("RunState.Sequence.Main["+Str(Locals.Step​Index)+"].TS.NoResult")
You could even set this step to loop, and use the Runstate.Loopindex instead of Locals.StepIndex as above - the Locals.StepIndex is just a variable I created for demonstration, and I fixed it to a value of the index of the step I wanted to turn result collection off for. - NOTE set this to a TRUE to run OFF result collection for the step.
Since in your example, the "i" is embedded in a string, TestStand can't work out what it evaluates to.
If you wanted to do this from say CVI, then format the string you're using to do the same function as calling Eval
uate in TestStand, i.e.
Fmt(lookupString,"Runstate.Sequence.Main%[%d%].TS.​NoResult",i); (think I got the square brackets specified correctly.)
Hope this helps
Sacha
// it takes almost no time to rate an answer

Similar Messages

  • How do I access the results of a multi dimensional array.

    I created an array from a recordset using the following code copied from a post by David Powers
    $results = array();
    do {
      $results[] = $row_recordsetName;
    } while ($row_recordsetName = mysql_fetch_assoc($recordsetName));
    My recordset has two fields in the $results array, index and name, and the array also seems to generateanother index called whichit uses to reference the rows- in this case, [0] to [2]
    When printed using the print_r function, it shows results like the following:
    Array[0] => Array([index]=>:2[name]=>Microsoft)
    => [1] => Array([index]=>:5[name]=>Facebook)  *
    => [2] => Array([index]=>:6[name]=>Adobe)
    I have another recordset  called employers that has a pointer into the array which holds the same value as the Array[index].
    In this recordset is a row with  a pointer value of 5, and I want to access and print out the Array[ name] whose value =  "Facebook"  from the example array element above*, where Array[index] = 5.
    How would I do it?
    To put it in simulatede SQL, how do I select  $results[name] from $results where $results[index] = $row_employerset[pointer]   and print it?

    Looks like the Forum people at Adobe are experimenting with tags linked to posts.
    Mouseover the tags and you can see how they're used in the URL querystring (the bit after the question mark) in the browser status bar.
    Tags are a common tool in CMSes and forums to assist with filing and retrieving posts and related records. Check any Wordpress blog.
    There is a dedicated Adobe forum for discussing the formatting of the forums
    http://forums.adobe.com/community/general/forum_comments

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • Help,Intermittent problems accessing the Editor in Elements 10

    Sometimes when I try to access the Editor,either  from the Organizer or directly, it will let me in and I can then edit several images, without any problems. Then without warning it fails, and I cannot access the Editor in any of the editing Modes. The only way I have been able to to overcome the problem is to come out of Elements and  Reboot my PC, then re enter Elements and start afresh.
    I am using a Sony Vaio PC with wndows7 Home Premium, and AVG security. I have also fairly recently installed a Bambo Pen and Touch tablet, but I think the problem stems back from before that installation.
    I am not very "computer literate" but any help or suggestions will be much appreciated.
    John.

    Try this:
    Bypass the Unwelcome Screen by creating Desktop shortcuts for the Organizer and the Editor, and restarting your computer.
    The Editor's executable is:
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    The Organizer's executable is:
    "C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe"
    The Unwelcome Screen leaves a zombie process running which prevents the actual program from launching again.
    Ken

  • I have just purchased Photoshop Elements 13. Why am I unable to access the program?

    I have just purchased Photoshop Elements 13. I think it was installed. The title shows in my 'Downloads File'. I have tried double clicking on 'install' in the downloads file. All I get is a page of data that doesn't seem to do anything. When I purchased Photoshop Elements 12 there was no problem. The apps appeared on my monitor and I went to work. What appears on my monitor for Photoshop 13 is a file picure. When I click on it I go to the Downloads File. Can anyone help me?

    I am unable to access the Photoshop Elements 13 program.

  • How to access the JAXB generated methods of Complex element

    Hi all,
    I am generating the java classes from the a XSD file which contains the Complex element , which again contains the simple elements. JAXB is generating the interface and public static class for the inner Complex element. But i not able to create the object of this inner class using the Object factory class. Then without object how can i access the setter and getter methods contained in this complex element.
    My XSD file looks like -
    <xs:element name="SSDecisionActivity">
    <xs:complexType >
    <xs:sequence>
    <xs:element name="Id" type="xs:ID"/>
    xs:element name="ConditionFlow">
         <xs:complexType>
         <xs:sequence>
         <xs:element name="Condition" type="xs:string"/>
         <xs:element name="DecisionCriteria" type="xs:string" minOccurs="2" maxOccurs="unbounded"/>
    How shall i access the methods from the ConditionFlow (Complex element) like setCondition(....),getCondition().
    If anybody knows plz tell me the way.
    Ravi

    I'm a bit confused about this design approach.
    [Bindable] public var storyList:IdmlStory = null; 
    The reason why the above line fails to compile in StoryList.mxml is that a variable of the same name already exists. You have specified a List with an id of storyList. The translation process will yield:
    var storyList:List = new List();
    and then fill in the properties.

  • How do I access the Photoshop Elements editor inn Premier Elements 12?

    I am unable to access the editor tools for editing photos in Premier elements 12.

    Hi,
    I think that you may have tried signing in to photoshop.com which no longer exists.
    Please see if this document helps.
    http://barbarabrundage.com/2013/09/16/pse-8-9-10-cant-sign-in-error-404/
    Brian

  • How to Access the Dynamically created form element

    Hi friends,
    I have generated a dynamic form in flex using xml and i want to save the all the elements of the form with there label and entered data in the formItem.
    so i m getting how to save the data.
    anybody have idea about this?????
    Thanking you
    Gajanan

    Thanks for your reply.
    as u said i have done this
    for each(var formItem:FormItem in form.getChildren()){
                            formItem.label //The FormItem's label's text
                            formItem.getChildAt(0) //The first child - TextInput, ComboBox or whatever you got
                            Alert.show(formItem.getChildAt(0).toString());
                            return;
    my first child formitem is TextInput and i entered some value in tat textInput but i m printing this i m getting the "dynamicform.ApplicationSkin3._ApplicationSkin_Group1.contentGroup.grp.Form0.FormItem15.txt studentfname"  i m getting this output
    i want to access the entered value of in the textInput.
    Thanks,
    gajanan

  • The screen of my photoshop elements 12 moved too far up in my mac and i cannot bring it down... any ideas? I cannot access the first ⅓ of the screen...

    I need help. My PE had been working properly and now I cannot access the top ⅓ of the screen. How can I fix this?

    Quit the organizer and then go to your username>library>Application Support>Adobe>Elements Organizer>12.0>Organizer  and delete status.dat. That library is hidden. To see it, click the Go menu in the Finder and hold down the Option key and it will appear below the little house for your user account.

  • Premiere elements crashes when trying to access the edit tab features

    Hi.   I've just loaded premiere elements and started up a new project.  I was then browsing through the software to get an idea what it was about.  When I clicked on the orange edit tab this gives access to the effects,transitions,titles,themes and clip art screens but when I click on the transitions icon the programme crashes.  Everything else seems o.k.  I've also tried accessing the transitions through Window - Transitions but it crashes. I suspected that it might just be that the programme hadn't installed properly so I uninstalled and reinstalled it.  Still same problem.  I've a computer with core duo processor, 4Gb ram and 3Tb of hard disk with ample free space.  Anybody had similar problems?

    Thanks for the replies.  I have an nvidia card so will try some of the suggestions and see if I have any luck.
    Will let you know.
    Thanks again
    Richard

  • How to access the element s in a hashMap with order

    Does anybody know how to access the elements in a hashMap with order.
    I know set is a collection that doesn't gaurantee the order so the iterator of keySet will not gaurantee the order.
    Is there any way to solve this?
    Thanks

    If you mean the order in which the key/value pairs where added to the
    map, have a look at the LinkedHashMap class. If you mean 'natural'
    order, you shouldn't be using a HashMap at all then; have a look at the
    TreeMap class instead.
    kind regards,
    Jos

  • How to access the element of one mxml to another mxml?

    Hi,
    I have a component named storylist as below in StoryList.mxml
    <mx:List id="storyList" width="100%" dataProvider="{this.currentDoc.stories}" height="100%" variableRowHeight="true" selectable="false" borderStyle="none"
    itemRenderer="com.xxx.yyy.core.views.renderers.StoryRenderer">
    </mx:List>
    I want to access the storylist in another mxml CoreCanvas.mxml
    private function onOpenFile (doc:IdmlDocument):void {
    logger.info("onOpenFile");
    this.editor.currentDoc = doc;
    this.editor.storyList.dataProvider = this.editor.currentDoc.stories;
    but when  i declared as a bindable variable in StoryList.mxml --> [Bindable] public varstoryList:IdmlStory = null;
    it gives an error
    Description Resource Path Location Type
    1151: A conflict exists with definition storyList in namespace internal. StoryList.mxml/WebEditorCore/src/com/xxx/yyy/core/views/editor line 10 Flex Problem
    how can i access storylist in the other mxml file?
    Message was edited by: Jochem van Dieten

    I'm a bit confused about this design approach.
    [Bindable] public var storyList:IdmlStory = null; 
    The reason why the above line fails to compile in StoryList.mxml is that a variable of the same name already exists. You have specified a List with an id of storyList. The translation process will yield:
    var storyList:List = new List();
    and then fill in the properties.

  • Access the Name and Value of a StationGlo​bals container programati​cally

    Hello,
    I am having some trouble trying to programmatically write the contents of a container into my HTML report header. The container contains a series of strings and numbers. These are saved into StaionGlobals.
    Note that I am performing all of these operations in a statment step inside the sequence editor of TestStand
    I used the following method to access the correct property, which sits inside a for loop. Now this seems to work fine as Locals.PropertyObj contains the element which I wish to access. In the following Locals.PropertyObj is an object. TestSetup is the name of my setup information container
    Locals.PropertyObj = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)
    I can access the Name of the parameter simply by using the following code (where Locals.Name is a string):
    Locals.Name = StationGlobals.GetNthSubPropertyName("TestSetup", StationGlobals.ForIterator, 0)
    However when I try to access the actual value of the parameter I get an error or the wrong information. The following line gives me back the value "PropertyObject, IID = {8D87....}" which is not the value I am trying to get to.
    Locals.Val = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)
    I must be doing something wrong, and have tried various methods to do this but cannot get my head around the problem. I tried to use the following also, but it resulted in an error:
    Locals.PropertyObj.AsPropertyObject.GetFormattedValue((Locals.PropertyObj.AsPropertyObject).Name, 0, "", False, "")
    Note that the following line works fine:
    (Locals.PropertyObj.AsPropertyObject).Name
    Also can you tell me why the lookup string needs to be defined in Locals.PropertyObj.AsPropertyObject.GetValueString​(), is there a way to not require the lookup string as you are already have the correct property, and just the value is needed to be gotten.
    One last thing, in Evaluate() how do I make it work with dots, for example the following line  (another attempt to get the value) did not work due to the presence of the . character 
    Evaluate("StationGlobals.TestSetup." + (Locals.PropertyObj.AsPropertyObject).Name)
    Many thanks in advance of your response,
    Ben Lawler
    ps. hope that I am not being stupid and missed something very obvious

    Ben,
    Just a few comments;
    [Locals.PropertyObj = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
    This should give you a PropertyObject for the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
    [Locals.Name = StationGlobals.GetNthSubPropertyName("TestSetup", StationGlobals.ForIterator, 0)]
    This should give you the name of the 1st subProperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
    [Locals.Val = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
    This is going to return the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0 as a PropertyObject reference
    and Locals.Val should be an ActiveX Reference type which I am guessing it isn't.
    [Locals.PropertyObj.AsPropertyObject.GetFormattedV​alue((Locals.PropertyObj.AsPropertyObject).Name, 0, "", False, "")]
    I think this should be Locals.PropertyObj.GetFormattedValue("", 0, "", False, ""), you dont need to specify the lookup string because you have obtained a reference to the actual sub-PropertyObject.
    and therefore
    Locals.Val = Locals.PropertyObj.GetFormattedValue("", 0, "", False, "")
    should give you the value of the 1st subproperty of StationGlobals.TestSetup if Locals.PropertyObj was obtained as above.
    I will try to check out your sequencefile later when I have access to TestStand 4.x.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Is there a way to pass or access the FileGlobal​s of the main sequence from an ActiveX subsequenc​e that runs in parallel?

    I developed an elborate avionics Test Bench using the data types and FileGlobals to define all of my instruments and signals. The instruments have some minor changes between Test Bench's and the signals change between projects. The actual LabVIEW VI's were written so that they would be generic, in nature, and rely on spreadsheets to determine what inputs and expected outputs are to be tested and use the FileGlobals to determine how to process each signal from this extensive data structure. This methodology has worked well so far. Now I have the need to read some of the signals being output by the black box and compute a signal as input. The black box it very particular about the timing related to how fast this input changes in response to the outputs.
    Anyway, I was able to develop another sub-sequence within the main sequence and have it run as a parallel process. The problem that I have is that this extensive FileGlobals data structure is shown in the sub-sequence, but all of the data is zero or blank. What I really need is the FileGlobal data in the sub-sequence to be equal to the FileGlobals data of the main sequence at the time the ActiveX sequence is started OR have some way to access the main sequence FileGlobals from the ActiveX sub-sequence. I was able to use the when doing a Action of "call method" and a moethod of "NewExecution" to start the sub-sequence. The problem is that the data passed was only the first element in the FilGlobals structure and not the entire FileGlobals.
    I have TestStand version 1.0.3 . I know, the answer is usually to upgrade, but I have my own company and am sub-contracting at this company. It took me a month to convince this company that TestStand was the way to go rather than use the old LabVIEW Test Executive that they still have. The point is that it may be difficult to get them to get a later version and at this point I do not have time to wait for a upgrade. So I need to determine an easy way to impliment this with the existing version of TestStand.
    Any pointers on how you might solve this problem would be appreciated. You can email me directly at [email protected] .
    Thank you for your help!

    William,
    As you alluded, TestStand 2.0 has better solutions to this problem than TestStand 1.0.x. These include
    1) Executing the subsequence on a different thread but under the same execution. The file globals are then common to the calling and called sequence. The improved Sequence Call step type gives you this option.
    2) There is a new sequence file property that provides that "All Executions Share the Same File Globals".
    The reason that the file globals are not shared between your 2 sequences is that they are each executed as separate executions. That is, they are each executed using the NewExecution method. With each new execution a run-time copy of the sequence is made, including the file globals.
    I am assuming that you want to execute the subsequence asynchronously (i.e. in parallel) to the MainSequence and therefore must use the NewExecution method to do so. Since you must use TestStand 1.0.3 then the best option is to pass the file globals to the new execution as sequence parameters. It sounds like you tried this but had difficulties. The steps to do this are:
    A) Create parameters in your called sequence that mirror the file globals that you want to pass from your MainSequence.
    B) Create a new data type that is a container. The subproperties of this container must mirror the parameters in your called sequence. It is important that they are in the same order as the parameters.
    C) Create an instance of this container data type as variable.
    D) Pass this variable as the parameter of the NewExecution method.
    I have attached an example of how to do this. I have 2 file globals that I want passed, Number and String. I have another file global that is an instance of the parameter container that I pass with the NewExecution method (could also have made as local variable). Any time I update the values of the container�s subproperty, the changes are available in the executing "subsequence". Therefore, I must update the value of these container subproperties every time I want to have access to new file global values. There is clearly some redundancy here in that my MainSequence must copy the Number and String values to the container subproperties. If fact, it may be better to simply delete the Number and String file globals and simply use the subproperties of the container directly.
    You probably have to play around with the example to synchronize the change of the file globals with the message popups in the subsequence. In TS 2.0 I would have synchronized them with the new synchronization step types.
    Attachments:
    passfileglobals.seq ‏37 KB

  • Can I access the same library from 2 computers?

    I just purchased and installed Photoshop Elements 10 on my main computer at home.  Awesome tool!
    I just loaded up over 25,000 pictures taken over the last 12 years and am slowly going through the task of tagging them.  My question is as follows:
    If install on a second computer, how do I access the library from the main computer?  I am thinking that I can tag come pics during my lunch hour and get through this faster at the office but how do I move the library from one computer to the next? 
    I don't think the library is actually "moveable".  Does it not just sort what is already on my main computer? 
    All suggestions welcome!

    If your photos and catalog file are on an external HD, then you would have to bring the external HD wherever you want and PSE will work, provided that the drive letters are the same on both computers. (Example, if the external HD is E:\ on your home computer, it would have to be E:\ on the other computer).
    You can move the catalog file and everything else in that folder via Windows. If you need to move the photos, this must be done in PSE (Folder Location View).

Maybe you are looking for

  • Creation of New Company in existing SAP system

    What are the major issues involved in a Business running SAP taking over a new non-SAP company and trying to merge the new enterprise into its existing system? Are there any case studies of this type of acquisition/merger available and also step by s

  • Styling text submitted to a CMS

    Hi I am designing a website with CMS for a local church. Could anyone help me with controlling the appearance of text submitted to the database using the record insert wizard. My primary problem is that any text submitted to the database does not dis

  • Import-ant question

    There's an easy answer to this, I just don't know it. import java.lang.Math; public class Jtest public static void main(String[] args) double a, b=0.0,c = 0.0; a = pow(b,c); I get an error saying the pow(double,double) is not defined for the type Jte

  • Validation Error: VLD-1111

    I'm trying to Validate a mapping between a source and staging table and recieve the following error message: "VLD-1111: The mapping cannot be generate due to operators requiring different code languages." My source table is in an Oracle 9i DB and so

  • PS is too wide (large) to display on my iMac

    I don't know what I've done, but both my my lightroom  and PS CS4 are now too large to display on my iMac.  Both vertically and horizontally.  I've been using them for a couple of years and never had this problem?  Any ideas on how to fix this?  I ha