0

MET/CAL procedure accessing MET/TRACK information

 

One functionality of MET/CAL procedures that is often overlooked is the ability to extract information from MET/TRACK. This can be useful to set the direction of a procedure based on information retreived from the database. Below is an example of a sub procedure that can be called prior to every procedure to ensure the operator has selected the correct UUT. If the operator has made a mistake they can stop the procedure right there. It can also be used to perform basic comparisons of values set for various fields in the database. For more information, see the help file on the MATH function.

 

  1.008  MATH         @ASSET=INV(UUT(), 4201)

  1.009  MATH         @MANUF=INV(UUT(), 4202)

  1.010  MATH         @MODEL=INV(UUT(), 4203)

  1.011  MATH         @DESC=INV(UUT(), 4204)

 

  1.012  DISP         VERIFY UUT SELECTED:

  1.012  DISP         ====================

  1.012  DISP         [V @ASSET]

  1.012  DISP         [V @MANUF]

  1.012  DISP         [V @MODEL]

  1.012  DISP         [V @DESC]

 

  1.013  IF               ZCMPI(INV(UUT(), 4299), "A") != 1

  1.014  DISP         Note: This unit is not listed as an active unit. 

  1.014  DISP         Please change its state to an "A" on the MET/TRACK

  1.014  DISP         inventory record prior to returning the instrument.

  1.015  ENDIF

3 comments

Date Votes
0
Avatar
Luc Claeys

This is very useful since Asset# are not unique.

Would it be possible to delay the appearance of the advance button so the Technician is forced to look at the window?

 

0
Avatar
Chad D.

Hi Luc, asset numbers are unique to MET/CAL.  I think Pat’s example is very useful, and can be taken even farther when used with a procedure that can remotely query the UUT’s identification.  This eliminates the need for operator intervention since you could parse the UUT response and MET/CAL can automatically compare it to the UUT Inventory table information.

To answer your question about forcing the operator to look at the window, I have modified Pat’s example by replacing the DISP FSC prompt with an OPBR FSC that uses the [NO] special construction.  I also added inline comments explaining each section:

# Retreive the pertinent UUT information from the MET/BASE inventory table. 1.001 MATH Asset = INV(UUT(), 4201) 1.002 MATH Manufacturer = INV(UUT(), 4202) 1.003 MATH Model = INV(UUT(), 4203) 1.004 MATH Description = INV(UUT(), 4204) 1.005 MATH Status = INV(UUT(), 4299) # Prompt the operator to confirm a match. # # The "-z" argument causes MET/CAL to assign the value zero (0) to MEM1 # instead of negative one (-1) when the operator chooses "No" in response # to the OPBR prompt. This eliminates the need for binary operators # (>, <, ==, etc.) in the following IF statement. # # The [NO] special construction changes the default button in the OPBR prompt # dialog from "Yes" to "No". This has the effect of forcing the operator to # consciously select "Yes". 1.006 OPBR -z Does the information below match the UUT?[NO] 1.006 OPBR ==================== 1.006 OPBR [V Asset] 1.006 OPBR [V Manufacturer] 1.006 OPBR [V Model] 1.006 OPBR [V Description] 1.007 IF NOT(MEM1) 1.008 DISP The UUT information does not match the asset number 1.008 DISP provided. This procedure will now terminate. 1.008 DISP 1.008 DISP Please start the procedure again to enter a different 1.008 DISP asset number. 1.009 END 1.010 ENDIF # Also check for active status, and prompt with instructions if necessary. 1.011 IF NOT(ZCMPI(Status, "A")) 1.012 DISP Note: This unit is not listed as an active unit. 1.012 DISP Please change its state to an "A" on the MET/TRACK 1.012 DISP inventory record prior to returning the instrument. 1.013 ENDIF 1.014 END
0
Avatar
William (Bill) Spath

Luc,

   To directly answer your question from earlier "Would it be possible to delay the appearance of the advance button so the Technician is forced to look at the window?"

YES this is very possible.

Example below

1.001 DISP VERIFY UUT SELECTED:

1.001 DISP ====================

1.001 DISP [V @ASSET]

1.001 DISP [V @MANUF]

1.001 DISP [V @MODEL]

1.001 DISP [V @DESC] [D5000]

 

Doing this will Delay for 5000 milliseconds (5 seconds) before the Advance and Terminate buttons come up on the screen.

 

Please sign in to leave a comment.