In VB how do I pass my low and high limit results from a TestStand Step into the ResultList and how do I retrieve them from the same?

I am retrieving high and low limits from step results in VB code that looks something like this:
' (This occurs while processing a UIMsg_Trace event)
Set step = context.Sequence.GetStep(previousStepIndex, context.StepGroup)
'(etc.)
' Get step limits for results
Set oStepProperty = step.AsPropertyObject
If oStepProperty.Exists("limits", 0&) Then
dblLimitHigh = step.limits.high
dblLimitLow = step.limits.low
'(etc.)
So far, so good. I can see these results in
VB debug mode.
Immediately after this is where I try to put the limits into the results list:
'Add Limits to results
call mCurrentExecution.AddExtraResult("Step.Limits.High", "UpperLimit")
call mCurrentExecution.AddExtraResult("Step.Limits.Low", "LowerLimit")
(No apparent errors here while executing)
But in another section of code when I try to extract the limits, I get some of the results, but I do not get any limits results.
That section of code occurs while processing a UIMsg_EndExecution event and looks something like this:
(misc declarations)
'Get the size of the ResultList array
Call oResultList.GetDimensions("", 0, sDummy, sDummy, iElements, eType)
'Step through the ResultList array
For iItem = 0 To iElements - 1
Dim oResult As PropertyObject
Set oResult = oResultList.GetPropertyObject("[" & CStr(iItem) & "]", 0)
sMsg = "StepName = " & oResult.GetValString("TS.StepName", 0) & _
", Status = " & oResult.GetValString("Status", 0)
If oResult.Exists("limits", 0&) Then
Debug.Print "HighLimit: " & CStr(oResult.GetValNumber("Step.Limits.High", 0))
Debug.Print "LowLimit: " & CStr(oResult.GetValNumber("Step.Limits.Low", 0))
End If
'(handle the results)
Next iItem
I can get the step name, I can get the status, but I can't get the limits. The "if" statement above which checks for "limits" never becomes true, because, apparently the limit results never made it to the results array.
So, my question again is how can I pass the low and high limit results to the results list, and how can I retrieve the same from the results list?
Thanks,
Griff

Griff,
Hmmmm...
I use this feature all the time and it works for me. The only real
difference between the code you posted and what I do is that I don't
retrieve a property object for each TestStand object, instead I pass the
entire sequence context (of the process model) then retrieve a property
object for the entire sequence context and use the full TestStand object
path to reference sub-properties. For example, to access a step's
ResultList property called "foo" I would use the path:
"Locals.ResultList[0].TS.SequenceCall.ResultList[].Foo"
My guess is the problem has something to do with the object from which
you're retrieving the property object and/or the path used to obtain
sub-properties from the object. You should be able to break-point in the
TestStand sequence editor immediately after the test step in question
executes, then see the extra results in the step's ResultList using the
context viewer.
For example, see the attached sequence file. The first step adds the extra
result "Step.Limits" as "Limits", the second step is a Numeric Limit (which
will have the step property of "Limits") test and the third step pops up a
dialog if the Limits property is found in the Numeric Limit test's
ResultList. In the Sequence Editor, try executing with the first step
enalbled then again with the first step skipped and breakpoint on the third
step. Use the context viewer to observe where the Limits property is added.
That might help you narrow in on how to specify the property path to
retrieve the value.
If in your code, you see the extra results in the context viewer, then the
problem lies in how you're trying to retrieve the property. If the extra
results aren't there, then something is wrong in how you're specifying them,
most likely a problem with the AddExtraResult call itself.
One other thing to check... its hard to tell from the code you posted... but
make sure you're calling AddExtraResult on the correct execution object and
that you're calling AddExtraResult ~before~ executing the step you want the
result to show up for. Another programmer here made the mistake of assuming
he could call AddExtraResult ~after~ the step executed and TestStand would
"back fill" previously executed steps. Thats not the case. Also, another
mistake he made was expecting the extra results to appear for steps that did
not contain the original step properties. For example, a string comparison
step doesn't have a "Step.Limits.High" property, so if this property is
called out explicitly in AddExtraResult, then the extra result won't appear
in the string comparison's ResultList entry. Thats why you should simply
specify "Step.Limits" to AddExtraResul so the Limits container (whose
contents vary depending on the step type) will get copied to the ResultList
regardless of the step type.
I call AddExtraResult at the beginning of my process model, not in a UI
message handler, so there may be some gotcha from calling it that way. If
all else fails, try adding the AddExtraResult near the beginning of your
process model and see if the extra results appear in each step's ResultList.
Good luck,
Bob Rafuse
Etec Inc.
[Attachment DebugExtraResults.seq, see below]
Attachments:
DebugExtraResults.seq ‏20 KB

Similar Messages

  • I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    From the Finder menu select 'Secure Empty Trash'. If this or the suggestion above doesn't resolve the problem take a look at the various suggestions in this link:
    http://www.thexlab.com/faqs/trash.html

  • I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount

    I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount?

    In Outlook, export your contacts to a .pst or .csv file. Keep the exported file
    How to export contacts from Outlook for Windows.

  • HT201365 I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?

    I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?

    Double click home button, then swipe up on app picture (not the icon itself)

  • Can u tell me how to remove the documents in the Rection section after I had moved them to the respective folders. Thanks

    Can u tell me how to remove or delete the documents which are remain in the Recent section after I have moved them to the respective follders. Thanks.

    The same question by the same user.
    Please see the other post for the reply.
    After the latest update, documents from adobe reader moved to respective folders remain the the Recent. Why? Please advise

  • All photos in portrait format are displayed blurred in the preview mode "fill" of the library. In all other modes e.g. "fit"or "1:2" the photos are sharp. How can I change this, so that the photos are still sharp when displaying them in the mode "fill"?

    All photos in portrait format are displayed blurred in the preview mode "fill" of the library. In all other modes e.g. "fit"or "1:2" the photos are sharp. How can I change this, so that the photos are still sharp when displaying them in the mode "fill"? My Lightroom release is 5.7.1.
    Thanking you in anticipation!

    I'd like to get all these '-1 suffix' files together with their associated Develop adjustments into one folder (if they aren't already) so I can see them in Grid view in the Library module, which I use as my basic starting point for everything else at this early stage of my Lightroom 'career'.
    To see what folder these are stored in, right-click on a photo and select "Go to Folder in Library".
    Advice: if you are going to use Lightroom effectively, you probably want to stop using folders as your method to create a grouping of photos that are already in Lightroom; there are plenty of built-in tools, such as keywords, collections, color labels, etc.
    I don't understand why the search on the entire catalog picked up apparently the same two file versions but also got the Develop adjustments when going to the relevant Folder didn't show the adjustment black squares against each image in Grid view nor were they there when the images were opened in the Develop module.  Perhaps if I understood this, I'd be a bit more confident of moving forward myself.
    These are most likely different versions of the same photo, in different folders. Lightroom stores the edits in its own catalog, and so it knows that one folder's photos have edits, and the other folder's photos do not have edits. Please understand that Lightroom is a database, it knows where the photos are at the time you import them (or add them to the catalog by synchronize), and then if you move things around in your operating system, Lightroom does not know anything about that and problems begin. Thus the advice to organize using Lightroom tools and methods and not operating system tools and methods.

  • I'm losing attachments from email how do I retrieve  them from cloud

    Im losing attachments from email @me.com how do I retrieve them from icloud?
    CHeers Mitchell

    Tap Settings > iCloud
    Switch Mail off then back on.
    Give iCloud a few minutes to re sync your Mail.

  • Does anyone know how to delete songs that came with the iPhone 6 in the music?? i tried deleting them from iTunes but i couldn't.

    does anyone know how to delete songs that came with the iPhone 6 in the music?? i tried deleting them from iTunes but i couldn't.

    I know you already solved this but for future reference, there is also another setting to only keep songs downloaded to your device visible in music.
    Go to Settings --> Music --> Show All Music and make sure it is turned off

  • How do you unlock ipads if ur forgotten ur password. i have plugged it into my comp and it says cant connect ipad is locked

    how do you unlock ipads if ur forgotten ur password. i have plugged it into my comp and it says cant connect ipad is locked

    Try and force the iPad into Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: Data will be lost. You may have to repeat the above many times.

  • Hi I lost all my contacts etc on my Iphone 4 how can I retrieve them from Icloud?, Hi I lost all my contacts etc on my Iphone 4 how can I retrieve them from Icloud?

    Hi
    I lost all my contacts etc on my Iphone 4, how can I retrieve them from Icloud, and how can I check the content of my Icloud backup copy?

    Welcome to the Apple Community.
    Your back up via iCloud is only for use for restoring your phone after wiping it. You can't inspect or utilise specific parts of the back up.

  • I use internode and imap. When the ipad deletes emails it also removes them from the mac. How can I reverse this so the mac is the master and the ipad is the slave?ipa

    I use internode and imap. When the ipad deletes emails it also removes them from the mac. How can I reverse this so the mac is the master and the ipad is the slave?

    Thanks for the info. - I now know that deletion works both ways!! - (unlike POP where emails deleted from the ipad also deleted them from the mac even before I could read them,  whereas emails deleted from the mac were not removed from the ipad!!! - ie. the ipad was the master over the mac - the slave).  Prior to changing to imap I used to transfer all nongarbage emails from inbox to mailboxes before my husband could ask if he could delete emails on his ipad. I have noticed however if you do this in imap, they are removed from the inbox on the ipad as well (this did not happen with POP). So we still have to check but the number is less so we like imap better than POP.
    Thank again

  • How to by pass downloading lower versions of Java Plugin ?

    I have developed an applet which uses Java plug-in version 1.3.1. One of my friends is using 1.3.1.0.1a. I guess that this is the latest version. But program downloads 1.3.1 Java plug-in. How to bypass downloading lower versions of Java Plug-in if higher version is already installed on client machine ?
    Can anyone of you help me in this regard ?
    Thanks,
    Murali

    OK, I am still getting duplicate JRE/Plug-ins installed side by side after trying this fix. Here are the steps I took (windows 2000, ie6):
    1. uninstalled JRE 1.3.1
    2. manually installed JRE 1.3.0 from sun site, verified it was installed and corresponding plug-in appears in control panel.
    2. modified applet startup page to contain "1.3" as suggested:
    PARAM NAME="type" VALUE="application/x-java-applet;version=1.3"
    (left html-generator-created page containing object tag pointing to 1.3.1, as follows:)
    if (_ie == true) document.writeln('<OBJECT classid="clsid:CAFEEFAC-0013-0001-0000-ABCDEFFEDCBA" WIDTH = 750 HEIGHT = 450 codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0"><NOEMBED><XMP>');
    3. ran applet page. it proposed downloading 1.3.1.
    4. responded 'no' to install. applet page opens blank.
    5. closed and retried applet page, responding 'yes' to 1.3.1 install. that install runs fine, applet starts, but both 1.3.1 and 1.3 JREs and plugins are present on the workstation.
    6. uninstalled 1.3 JRE, leaving 1.3.1 JRE, retried applet page. small black box appears in applet's place, and something appears to be downloading very very slowly.
    7. uninstalled 1.3.1 JRE, retried applet page, allowed normal plugin download install, applet worked fine.
    I have not yet tried specifying an earlier JRE in the tag, and having a later JRE already on the workstation, although I would not be surprised to see duplicate JREs installed in this case as well..
    We have had sporadic reports of people having workstations that simply would not run the applet when multiple JREs were present after the autodownload forced by this applet page. Also, IS departments are not going to like having standard environments updated whenever Sun wants, much less having defective configurations created. There really needs to be a way to prevent this problem.
    Note: I did not modify the classID/codepath part of the html-generator page with the above suggestion about MIME type, since I did not see how it could be done.
    Any ideas?
    Also, a comment was made that the html-generator becomes obsolete in 1.4 plugin. When will this be, and does this change modify the way the OBJECT tag is written, so that this problem doesn't keep occuring?
    Thanks,
    Kevin

  • 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 do I upload to Facebook in High Resolution using my iPhone. Do I need an app? Which ones are best for the job? (I know how to do it on a PC :) )

    How do I upload photos to Facebook in High Resolution using my iPhone. Do I need an app? Which ones are best for the job? (I know how to do it on a PC )

    100pat wrote:
    Thanks, I can do it fine from my Windows desktop PC, I just want to know how to do it from an iPhone4
    Like I said before ask facebook or look at their support site to see if that is even a feature.

  • HT2736 how can my family use the itunes gift online token I sent them from france TO the UK?

    I live in France and my family in the UK. So what better (ha ha ha) than to send them all an itunes token for the new year?
    Apparently, they can't use the tokens in the uk and I can't gat a refund. Nor can I change my account to the UK because my bank is in France.
    What an utterly huge waste of my precious little time and money.
    I am VERY dissappointed with apple/itunes and have received NO helpful information despite 3 emailes to customer support.
    I am furious. I am disabled, jobless and living on the breadline. My money is extremely precious to me and I resent the greed and the total lack of support shown by APPLE. 20 pounds might not seem a lot but it is ALL I had to give my family and it means A LOT to me.
    I also feel very very CHEATED by the impression that ITUNES are an international music buying service, when clearly they are not.
    There was NO warning about this when I bought the tokens of on the GIFT token page.
    and by the way, how many times does it take to sign in to apple on a daily basis? answer = too bloody many!

    You can't use those cards. Sorry.
    (96020)

Maybe you are looking for

  • I want to set up a separate itunes account from my kids but share all the music I have bought - how can I do this?

    I am trying to set up a different itunes account from my kids so I don't have to share contacts, calendar, etc. but I still want to maintain access to all the music I have purchased.  Is this possible?

  • Change Profit Center in Cost Center

    Hi We have created new profit center and we want to assign this new profit center for the cost center which has already been assigned with some other profit center. I am geeting the warning message as follows: Field changes to field Profit Center lea

  • Send a form by mail

    Hi there. We need our user to enter some information and then click on an button to send them to the right person. I know it's possible with an html form that pass parameters to a cgi script that mails them to someone. I could publish this html form

  • Why a background fullscreen slideshow covers everything else?

    Ciao, I'm building a folio with InDesign CC 2014 on a Mac. I've created pages with the Slideshow overlay in full screen on an iPad, then I've added another layer with the text: this should be a text with a swipe-to-slideshow under it. Why does the sl

  • IMessage on iPhone will not accept my Apple ID

    I am trying to sign into iMessage on my phone with my Apple ID, it will not let me. It shows the iMessage box in Settings as "on", but underneath it reads 'Waiting for Activation'.... waiting for what?? there's no where to sign in and when I do, it s