Table of Contents

Method MatrixSetInputLockMode

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

MatrixSetInputLockMode(int, string, bool)

Locks or unlocks the specified matrix input.

public virtual void MatrixSetInputLockMode(int pid, string inputLabel, bool mode)

Parameters

pid int

The ID of the matrix parameter.

inputLabel string

The label of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode(1000, "Input 1", true);

Exceptions

DataMinerException

The matrix parameter was not found.
-or-
There is no input with the specified label.

MatrixSetInputLockMode(int, int, bool)

Locks or unlocks the specified matrix input.

public virtual void MatrixSetInputLockMode(int pid, int index, bool mode)

Parameters

pid int

The ID of the matrix parameter.

index int

The index of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode(1000, 1, true);

Remarks

index must be in the range 1..nrOfInputs.

Exceptions

DataMinerException

The matrix parameter was not found.
-or-
index is not in the range 1..nrOfInputs.

MatrixSetInputLockMode(string, int, bool)

Locks or unlocks the specified matrix input.

note

Please use an overload that takes the parameter ID instead to prevent issues in case the parameter Description changes.

[Obsolete("Use overloads with parameter ID instead of name.")]
public virtual void MatrixSetInputLockMode(string parameterName, int index, bool mode)

Parameters

parameterName string

The name of the matrix parameter.

index int

The index of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode("Example matrix", 1, true);

Remarks

index must be in the range 1..nrOfInputs.

Exceptions

DataMinerException

The matrix parameter was not found.
-or-
index is not in the range 1..nrOfInputs.

MatrixSetInputLockMode(string, string, bool)

Locks or unlocks the specified matrix input.

note

Please use an overload that takes the parameter ID instead to prevent issues in case the parameter Description changes.

[Obsolete("Use overloads with parameter ID instead of name.")]
public virtual void MatrixSetInputLockMode(string parameterName, string inputLabel, bool mode)

Parameters

parameterName string

The name of the matrix parameter.

inputLabel string

The label of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode("Example matrix", "Input 2", true);

Remarks

The specified value for the parameterName argument should be the value of the Description tag of the parameter and not the value of the Name tag.

Exceptions

DataMinerException

The matrix parameter was not found.
-or-
There is no input with the specified label.