12-14-2006 12:28 AM - edited 12-14-2006 12:28 AM
帖子被Andrew_Marc在12-14-2006 12:34 AM时编辑过了
帖子被Andrew_Marc在12-14-2006 12:34 AM时编辑过了
帖子被Andrew_Marc在12-14-2006 12:34 AM时编辑过了
12-14-2006 12:40 AM
Hi,
If I understood you correctly, then use a Precondition on you MessagePopup step
such as RunState.Caller.Locals.UUT.SerialNumber != ""
This will skip the step if you dont enter a serial number.
Regards
Ray Farmer
12-14-2006 12:48 AM
Thank you first !
Another question :
1.) How to get the UUT SerialNumber and display in the message popup text box ??
2.) How do I skip the "Enter UUT SerialNumber" Dialog box ??
Waiting for your reply !
Pls. advise ! Thanks once again !
12-14-2006 01:13 AM
Hi,
1. use RunState.Caller.Locals.UUT.SerialNumber in your Message
eg "The Serial Number is " + RunState.Caller.Locals.UUT.SerialNumber + "\n"
2. The Enter serial number dialog is only displayed if you run the entry point "Test UUTs". If you use "Single Pass" then the dialog is not displayed mainly because the PreUUT callback sequence is not called. So I guess that's one way, Use "Single Pass".
Regards
Ray Farmer
12-14-2006 01:55 AM
03-19-2008 02:09 PM
03-20-2008 08:52 AM
03-20-2008 12:17 PM
Hi Norbert,
I'm having a chicken or the egg first issue! First: I tried to use the same vi that polls the serial port to get the serial number to ask the operator to scan the UUT. once I scan, the vi gets the serial number. This is fine but the popup window is my problem:
1- the operator doesn't see the SN in the window.
2- I have to use the mouse to hit OK to close it!
Using TestStand:
I have similar problems:
1- the popup window, although, it responds to the Enter key, Still this step is ahead of the vi that gets the SN! That means that the operator must scan, hit ok without seeing what he did scan for Test stand to continue with the next step which is the vi to get the SN!
Is ther a way to configure the TestStand popup window so it closes after scanning (Some event or something..) so the operator doesn't see an empty window once he scan the UUT?
Or is there a way to run to steps simultaniously in test stand so by the time the opertor scan the UUT, the other step (the vi to get the SN), gets the SN and I use the SN variable to close the window or to display the SN?
Appreciate your help on this
Thanks
Bahaa
03-20-2008 01:02 PM
You should post your code so someone can see what you've written. It should be quite simple to display the serial number. This is assuming that the pop-up is the VI that is also reading the serial port.
Can I ask why you are using a scanner connected to the serial port instead of the keyboard wedge or USB type? With the wedge/USB scanners, you can configure them to append a termination character (i.e. CR) and you just have to use the Key Navigation feature to toggle the Ok button.
03-20-2008 01:28 PM