09-03-2009 10:00 AM
I'm sure I've done this before and cannot remember how I did it.
I even searched the forum for posts but could not find any.
I have a popup message that asks if a certain LED was lit.
There are two buttons "YES" & "NO".
I want to know which button was selected in order to assign a Pass/Fail result for the LED Test.
How do I accomplish this?
R
Solved! Go to Solution.
09-03-2009 10:20 AM
Step.Result.ButtonHit
It will 1 or 2 or more if you have more than 2 buttons
Omar
09-03-2009 11:23 AM
Hi Omar!
Well done you are right.
I just want to attach for your "Zealous" friend a link to an example
http://forums.ni.com/ni/board/message?board.id=330&message.id=19906&query.id=464727#M19906
Thanks
Juergen
09-03-2009 11:48 AM - edited 09-03-2009 11:49 AM
Thanks guys 🙂
Yes... it triggered some of my memory cells..
It's the lack of cafeine 😉 (I have to blame it on something) .
Juergen,
Which version of TS were you using, as I could not open the sequence file with TS3.1
However, it is okay, since I'll find my way the the info provided.
R
(strangely enough, I can pick the correct solution, but cannot give kudos... 😮 I'll log in tonight from another PC)
09-03-2009 12:36 PM - edited 09-03-2009 12:37 PM
It does not appear to be a feature that was available in TS3.1 😞
And the error message from TS while trying to open the sequence file.
I created a dll in CVI that passes the selected button as a result.
09-03-2009 04:20 PM
Ray,
I believe the property has existed going back to version one. Are you sure you are looking at the properties of the actual popup step?
09-03-2009 04:42 PM
Pass or Fail on which button was selected. How do you accomplish this?
The popup step does not by default Pass or Fail.
Are you trying to read in a which button in a step after the popup? Then you will need to read it from the result list.
Locals.ResultList[?].ButtonHit
But I would try configuring the Status Expression of the actual popup step that you ask it the LED was lit to something like
1==Step.Result.ButtonHit?"Passed":"Failed"
09-04-2009 07:25 AM
Just found it. Thanks guys. This is good to know in the future.
RayR