Show / Hide Table of Contents

Class Software

Inheritance
System.Object
Software
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Virinco.WATS.Teststand.MES
Assembly: WATS_Teststand_Support.dll
Syntax
public static class Software

Methods

DeleteAllPackages(Boolean, String)

Method to clean file distribution root folder

Declaration
public static void DeleteAllPackages(bool PromptOperator = true, string culture = "en")
Parameters
Type Name Description
System.Boolean PromptOperator

Display a OK/Cancel dialog

System.String culture

Translation code

DeleteRevokedPackages(Boolean, String)

Method to clean file distribution root folder

Declaration
public static void DeleteRevokedPackages(bool PromptOperator = true, string culture = "en")
Parameters
Type Name Description
System.Boolean PromptOperator

Display a OK/Cancel dialog

System.String culture

Translation code

GetAvailablePackages(out Boolean, String)

Check server for new version of installed packages

Declaration
public static Package[] GetAvailablePackages(out bool PackagesAvailable, string culture = "en")
Parameters
Type Name Description
System.Boolean PackagesAvailable

boolean value if new packages exists

System.String culture
Returns
Type Description
Virinco.WATS.Service.MES.Contract.Package[]

Array of available packages

GetPackageByName(String, Boolean, Boolean, Boolean, Boolean, out Boolean, out Boolean, out String, out String[], out Boolean, SequenceContext, StatusEnum, String, String, Boolean)

Get Packages with a given name.

Declaration
public static Package GetPackageByName(string PackageName, bool Install, bool DisplayProgress, bool PromptOperator, bool WaitForExecution, out bool PackageFound, out bool TopLevelSequenceFound, out string SelectedTopLevelSequence, out string[] TopLevelSequences, out bool Continue, SequenceContext SeqContext, StatusEnum PackageStatus = StatusEnum.Released, string CustomText = "", string culture = "en", bool AlwaysOnTop = true)
Parameters
Type Name Description
System.String PackageName

Package name to get

System.Boolean Install

Install package?

System.Boolean DisplayProgress

Display progressbar when getting files

System.Boolean PromptOperator

Prompt operator if multiple toplevel sequences exists?

System.Boolean WaitForExecution

Wait for for executed files to finsish

System.Boolean PackageFound

Boolean value indicating if a package was found or not

System.Boolean TopLevelSequenceFound

If one or more files marked as top level sequences was found in the package

System.String SelectedTopLevelSequence

Path to selected TopLevelSequence file

System.String[] TopLevelSequences

Array of files beeing tagged as toplevel sequences

System.Boolean Continue

Stop or continue execution

NationalInstruments.TestStand.Interop.API.SequenceContext SeqContext
Virinco.WATS.Service.MES.Contract.StatusEnum PackageStatus

Status of package to get

System.String CustomText
System.String culture
System.Boolean AlwaysOnTop
Returns
Type Description
Virinco.WATS.Service.MES.Contract.Package

GetPackagesByTag(String[], String[], Boolean, Boolean, Boolean, Boolean, out Boolean, out Boolean, out String, out String[], out Boolean, SequenceContext, StatusEnum, String, String, Boolean)

Get Packages by array of tags.

Declaration
public static Package[] GetPackagesByTag(string[] tagNames, string[] tagValues, bool Install, bool DisplayProgress, bool PromptOperator, bool WaitForExecution, out bool PackageFound, out bool TopLevelSequenceFound, out string SelectedTopLevelSequence, out string[] TopLevelSequences, out bool Continue, SequenceContext SeqContext, StatusEnum PackageStatus = StatusEnum.Released, string CustomText = "", string culture = "en", bool AlwaysOnTop = true)
Parameters
Type Name Description
System.String[] tagNames

Array of tags to match (the tag value should be located on identical index in the tagValues array)

System.String[] tagValues

Array of tagvalues to match (the tag name should be placed on the identical index in the tagNames array)

System.Boolean Install

Install package?

System.Boolean DisplayProgress

Display progressbar when getting files

System.Boolean PromptOperator

Prompt operator if multiple toplevel sequences exists?

System.Boolean WaitForExecution

Wait for for executed files to finsish

System.Boolean PackageFound

Boolean value indicating if a package was found or not

System.Boolean TopLevelSequenceFound

If one or more files marked as top level sequences was found in the package

System.String SelectedTopLevelSequence

Path to selected TopLevelSequence file

System.String[] TopLevelSequences

Array of files beeing tagged as toplevel sequences

System.Boolean Continue

Stop or continue execution

NationalInstruments.TestStand.Interop.API.SequenceContext SeqContext
Virinco.WATS.Service.MES.Contract.StatusEnum PackageStatus

Status of package to get

System.String CustomText
System.String culture
System.Boolean AlwaysOnTop
Returns
Type Description
Virinco.WATS.Service.MES.Contract.Package[]

GetRevokedPackages(String[], String[], out Package, out Boolean, out String, out String[], out Boolean, SequenceContext)

Returns all versions of revoked packages with matching tags.

Declaration
public static Package[] GetRevokedPackages(string[] tagNames, string[] tagValues, out Package SelectedPackage, out bool TopLevelSequenceFound, out string SelectedTopLevelSequence, out string[] TopLevelSequences, out bool Continue, SequenceContext SeqContext)
Parameters
Type Name Description
System.String[] tagNames

Tags to match

System.String[] tagValues

Tagvalues to match

Virinco.WATS.Service.MES.Contract.Package SelectedPackage

Selected Package

System.Boolean TopLevelSequenceFound

If a top level sequence is found or not

System.String SelectedTopLevelSequence

Path to top level sequence

System.String[] TopLevelSequences

Array of toplevel sequence files

System.Boolean Continue

If execution should continue or not

NationalInstruments.TestStand.Interop.API.SequenceContext SeqContext
Returns
Type Description
Virinco.WATS.Service.MES.Contract.Package[]

Array of revoked packages

isConnected(out Boolean)

Boolean value indicating connection to MES

Declaration
public static bool isConnected(out bool isConnected)
Parameters
Type Name Description
System.Boolean isConnected
Returns
Type Description
System.Boolean
In This Article
Back to top View how-to articles, videos and more at support.virinco.com Send comments on this topic to support@virinco.com