NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get the UUT SerialNumber??

Deal all :
 
I am total newbie on the TestStand software(Version 2.0) , don't kid me .Smiley Sad
 
Just as everybody know that , when I launch a new sequence file , and insert a message popup with "Enabled Reponse Text Box" that will display the UUT SerialNumber from the UUT Information Dialog Box , if the UUT SerialNumber is empty , then will not execute the message popup, otherwise , will display the message popup , how to do it ??  Pls. advise !
 
 
In addition , how to stop the UUT Information Dialog Box to display when begin to execute the sequence file ??
 
 
Could anyone help me out of that ??
 
 
Thank you in advance !
 
Any help would be appreciate!

帖子被Andrew_Marc在12-14-2006 12:34 AM时编辑过了

帖子被Andrew_Marc在12-14-2006 12:34 AM时编辑过了

帖子被Andrew_Marc在12-14-2006 12:34 AM时编辑过了

0 Kudos
Message 1 of 13
(13,383 Views)

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

Regards
Ray Farmer
0 Kudos
Message 2 of 13
(13,376 Views)

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 !

0 Kudos
Message 3 of 13
(13,375 Views)

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

Regards
Ray Farmer
Message 4 of 13
(13,373 Views)
Thank you , Ray Farmer !   Smiley Happy
 
You're the specialist on this .    I will try it again later .
 
Merry Christams !
 
0 Kudos
Message 5 of 13
(13,368 Views)
Hello,
First time to use this resources!
My question:
 
I use a serial port scanner to scan a serial number. I learnt that TestStand does not have a function to deal with scanners. So I used PreUUT callback step. I built a vi to read the Serial number from the serial port and saved it in a variable "Serial". The problem is:
How do I get the pop up widow to show the serial number? I get the serial number after scanning and hitting OK buttun, so the operator can't see the serial number gets updated with the new serial number!
I hope my message reaches some one has experience with this issue and I hope my question makes sense.
Thanks
Bahaa
0 Kudos
Message 6 of 13
(12,940 Views)
Bahaa,

as i understand it, you already get the serialnumber from the scanner like intended. I asume that your VI pass this serial to TestStand as parameter. If you like the serialnumber to be shown within a popup, consider:
- this will slowdown the execution, potentially no option for automated tests.
- who should create the popup? the VI itself? A message popup in TestStand? A display within the User Interface?
- isn't it sufficient if the serial is included in the report?

Well, if you decide it as VI popup, its just a LabVIEW thing. If you want to use a TestStand Message Popup, you should display the serialnumber in this dialoge with something like:
"Serialnumber: "+Locals.MySerialnumber.
If still in PreUUT, it would be better to use Parameters.UUT.Serialnumber....
If it should be displayed in the UI, please take a look into the available help and examples of "customizing UIs".

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 7 of 13
(12,917 Views)

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

0 Kudos
Message 8 of 13
(12,906 Views)

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.

0 Kudos
Message 9 of 13
(12,897 Views)
Attached is the vi that get the SN and also open the popup window. I disconnected the error path so the vi gets the sn after scanning regardless of the status of the popup window. (I mean, I don't wait for the OK button to begin polling the serial port.
 
I'm using a serial scanner because the HW is done that way and I'm stuck with it. The vi works but I can't control the popup window!
 
But what is the keyboard wedge?
 
Thanks for your response
Bahaa
0 Kudos
Message 10 of 13
(12,894 Views)