Class Production
Inheritance
Inherited Members
Namespace: Virinco.WATS.Teststand.MES
Assembly: WATS_Teststand_Support.dll
Syntax
public static class Production
Methods
GetUnitInfo(String, ref String, out String, out String, SequenceContext, String)
Get Unit information
Declaration
public static UnitInfo GetUnitInfo(string SerialNumber, ref string PartNumber, out string Revision, out string BatchNumber, SequenceContext SeqContext, string culture = "en")
Parameters
Type | Name | Description |
---|---|---|
System.String | SerialNumber | Input the units serial number |
System.String | PartNumber | Optionally, input the units part number |
System.String | Revision | Returns Unit Revision |
System.String | BatchNumber | Returns Unit Batch Number |
NationalInstruments.TestStand.Interop.API.SequenceContext | SeqContext | TS “ThisContext” ref |
System.String | culture | Language Culture Name (e.g. “zh-CN”) (Translation Module) |
Returns
Type | Description |
---|---|
UnitInfo | UnitInfo object of identified unit |
IdentifyUUT(out String, ref String, out String, out String, ref Config.WATS_OperationType, Boolean, Boolean, out Boolean, Boolean, SequenceContext, String, Boolean, String, Boolean, StatusEnum)
Dialog box allowing the operator to type/scan a serial number. The function will search MES for the unique Unit and display information and return values. (Function require IsSerialnumberUnique = True)
Declaration
public static UnitInfo IdentifyUUT(out string SerialNumber, ref string PartNumber, out string Revision, out string BatchNumber, ref Config.WATS_OperationType SelectedTestOperation, bool IncludeTestOperation, bool SelectTestOperation, out bool Continue, bool DisplayTreeView, SequenceContext SeqContext, string CustomText = "", bool AlwaysOnTop = true, string culture = "en", bool UseWorkflow = true, StatusEnum workflowDefinitionStatus = StatusEnum.Released)
Parameters
Type | Name | Description |
---|---|---|
System.String | SerialNumber | Input the units serial number |
System.String | PartNumber | Optionally, input the units part number |
System.String | Revision | Returns Unit Revision |
System.String | BatchNumber | Returns Unit Batch Number |
Config.WATS_OperationType | SelectedTestOperation | Output if SelectTestOperation = True, Input to display Selected test operation |
System.Boolean | IncludeTestOperation | If True, a text box/drop down list is displayed. |
System.Boolean | SelectTestOperation | If True, operator can select test operation from a drop down list |
System.Boolean | Continue | Stop or Continue execution |
System.Boolean | DisplayTreeView | If True, the GUI will display a TreeView with Units “Consist of” information when you clik search. |
NationalInstruments.TestStand.Interop.API.SequenceContext | SeqContext | TS “ThisContext” ref |
System.String | CustomText | Text will be displayed in the dialog window |
System.Boolean | AlwaysOnTop | Dialog window always on top |
System.String | culture | Language Culture Name (e.g. “zh-CN”) (Translation Module) |
System.Boolean | UseWorkflow | If True, the function executes a “Validate” query on the Unit. If the Validate reports False, the OK/Start button is disabled. |
Virinco.WATS.Service.MES.Contract.StatusEnum | workflowDefinitionStatus | WorkflowDefinitionStatus |
Returns
Type | Description |
---|---|
UnitInfo | UnitInfo object of identified unit |
isConnected(out Boolean)
Check connection to WATS MES Server
Declaration
public static bool isConnected(out bool isConnected)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isConnected | True if the Client can access the WATS MES Server |
Returns
Type | Description |
---|---|
System.Boolean | True if the Client can access the WATS MES Server |